.github/workflows/tests.yaml in onceover-3.22.0 vs .github/workflows/tests.yaml in onceover-4.0.0
- old
+ new
@@ -1,11 +1,28 @@
name: Tests
+
on:
- - push
- - pull_request
+ pull_request: {}
+ push:
+ branches:
+ - master
+
jobs:
- full_tests:
+ rubocop:
+ env:
+ BUNDLE_WITHOUT: release
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Install Ruby ${{ matrix.ruby }}
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: "3.3"
+ bundler-cache: true
+ - name: Run Rubocop
+ run: bundle exec rake rubocop
+ test:
strategy:
fail-fast: false
matrix:
os:
- windows-latest
@@ -20,11 +37,11 @@
- puppet: "~> 8.0"
ruby: 3.2
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
env:
@@ -33,5 +50,14 @@
if: ${{ matrix.os == 'windows-latest' }}
run: Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -value 1
- env:
PUPPET_VERSION: ${{ matrix.puppet }}
run: bundle exec rake full_tests
+
+ tests:
+ needs:
+ - rubocop
+ - test
+ runs-on: ubuntu-latest
+ name: Test suite
+ steps:
+ - run: echo Test suite completed