Update actions workflows to use ubuntu-22.04 #5706
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Modules | |
on: | |
pull_request: | |
types: [opened, reopened, edited, synchronize] | |
paths: | |
- .github/workflows/modules.yaml | |
- bolt.gemspec | |
- Gemfile | |
- Puppetfile | |
- bolt-modules/** | |
- bolt_spec_spec/** | |
- lib/bolt/** | |
- modules/** | |
- rakelib/tests.rake | |
jobs: | |
linux: | |
name: Linux | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
ruby: [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: Run module tests | |
run: bundle exec rake ci:modules | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
ruby: [3.1] | |
env: | |
BOLT_WINDOWS: true | |
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: Run module tests | |
run: bundle exec rake ci:modules |