diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bb79b4b..2d5ddae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ on: jobs: unit_tests: name: Unit Tests - if: "contains(github.event.commits[0].message, '[ci skip]') == false" + if: ${{ ! contains(github.event.head_commit.message, '[ci skip]') }} strategy: fail-fast: false matrix: @@ -19,10 +19,10 @@ jobs: - macos - ubuntu ruby: - - 3.0 - - 3.1 - - 3.2 - - 3.3 + - '3.0' + - '3.1' + - '3.2' + - '3.3' allow_failures: - false env: @@ -32,7 +32,7 @@ jobs: continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Ruby uses: ruby/setup-ruby@v1 with: @@ -41,20 +41,20 @@ jobs: - name: Test run: bundle exec rake spec || $ALLOW_FAILURES + lint: name: Linting runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.2 + ruby-version: '3.2' bundler-cache: true - name: Install dependencies - run: | - bundle install + run: bundle install - name: Lint Ruby run: bundle exec standardrb - name: Lint JSON