Update docker/build-push-action action to v6 #40
Workflow file for this run
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: Unit tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
unit-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [ 2.7, 3.1, 3.2, 3.3 ] | |
runs-on: ubuntu-latest | |
name: Run specs and coverage report | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run specs | |
run: bin/rspec | |
- name: Run coverage report | |
uses: coverallsapp/github-action@v2 | |
with: | |
fail-on-error: false | |
results: | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
name: All unit tests | |
needs: [ unit-tests ] | |
steps: | |
# If any of the previous actions failed, we return a non-zero exit code | |
- run: exit 1 | |
if: >- | |
${{ | |
contains(needs.*.result, 'failure') | |
|| contains(needs.*.result, 'cancelled') | |
|| contains(needs.*.result, 'skipped') | |
}} |