-
Notifications
You must be signed in to change notification settings - Fork 225
45 lines (43 loc) · 1.14 KB
/
docker_transport.yaml
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
name: Docker transport
on:
pull_request:
types: [opened, reopened, edited, synchronize]
paths:
- .github/workflows/docker_transport.yaml
- bolt.gemspec
- Gemfile
- Puppetfile
- bolt-modules/**
- lib/bolt/**
- libexec/**
- rakelib/tests.rake
- spec/**
jobs:
docker_transport:
name: Docker Transport
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, 3.1]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Update gems
run: bundle update
- name: Cache modules
id: modules
uses: actions/cache@v1
with:
path: modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/Puppetfile') }}
- name: Install modules
if: steps.modules.outputs.cache-hit != 'true'
run: bundle exec r10k puppetfile install
- uses: ./.github/actions/sudo_setup
- name: Run tests
run: bundle exec rake ci:docker_transport