forked from puppetlabs/bolt
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 1.83 KB
/
linux.yaml
File metadata and controls
61 lines (56 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Linux
on:
push:
branches: [main]
paths-ignore: ['**.md', '**.erb', 'schemas/*']
pull_request:
types: [opened, reopened, edited, synchronize]
paths-ignore: ['**.md', '**.erb', 'schemas/*']
env:
BOLT_SUDO_USER: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
fast:
name: Fast
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Update gems
run: bundle update
- name: Pre-test setup
run: |
echo 'runner:runner' | sudo chpasswd
sudo sh -c "echo 'Defaults authenticate' >> /etc/sudoers"
sudo sh -c "echo 'runner ALL=(ALL) PASSWD:ALL' >> /etc/sudoers"
docker-compose -f spec/docker-compose.yml build --parallel ubuntu_node puppet_6_node puppet_7_node
docker-compose -f spec/docker-compose.yml up -d ubuntu_node puppet_6_node puppet_7_node
chmod 0600 spec/fixtures/keys/id_rsa
bundle exec r10k puppetfile install
- name: Run tests with minimal container infrastructure
run: bundle exec rake ci:linux:fast
slow:
name: Slow
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Update gems
run: bundle update
- name: Pre-test setup
run: |
docker-compose -f spec/docker-compose.yml build --parallel
docker-compose -f spec/docker-compose.yml up -d
bundle exec r10k puppetfile install
- name: Run tests with expensive containers
run: bundle exec rake ci:linux:slow