build: bump nokogiri from 1.6.7.2 to 1.16.5 in /spec/dummy/rails #54
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: Lint and Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-lint-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ['2.7', '3.0', '3.1'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set Ruby Version | |
run: sed -i 's/:3.1-alpine/:${{ matrix.ruby }}-alpine/' Dockerfile | |
- name: Build | |
run: docker-compose -p ci build --pull | |
env: | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
DOCKER_BUILDKIT: 1 | |
- name: Test | |
run: docker-compose -p ci run --name=test gem rake rspec:unit | |
- name: Lint | |
if: matrix.ruby == '3.1' | |
run: docker-compose -p ci run --name=lint gem rubocop . | |
- name: Archive code coverage results | |
if: matrix.ruby == '3.1' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: code-coverage-report | |
path: ./coverage | |
- name: Report on coverage | |
if: matrix.ruby == '3.1' | |
uses: aki77/simplecov-report-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
failedThreshold: 93 |