build(deps): bump pagy from 43.1.0 to 43.1.3 (#361) #1428
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| quality: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Prepare CI files | |
| run: bin/prepare-ci | |
| - name: Build the app | |
| run: docker compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g) web | |
| - name: Scan for common Rails security vulnerabilities using static analysis | |
| run: docker compose run --user $(id -u):$(id -g) --rm --remove-orphans web bin/brakeman --no-pager | |
| - name: Lint code for consistent style | |
| run: docker compose run --user $(id -u):$(id -g) --rm --remove-orphans web bin/rubocop -f github | |
| - name: Stop containers | |
| if: always() | |
| run: docker compose down | |
| tests: | |
| needs: [quality] | |
| runs-on: self-hosted | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Prepare CI files | |
| run: bin/prepare-ci | |
| - name: Build the app | |
| run: docker compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g) web | |
| - name: Setup DB | |
| run: docker compose run --user $(id -u):$(id -g) --rm --remove-orphans web bin/rails db:prepare | |
| - name: Setup Assets | |
| run: docker compose run --user $(id -u):$(id -g) --rm --remove-orphans web bin/rake assets:precompile | |
| - name: Run Rspec | |
| run: docker compose run --user $(id -u):$(id -g) -e "RAILS_ENV=test" --rm --remove-orphans web bundle exec rspec spec | |
| - name: Stop containers | |
| if: always() | |
| run: docker compose down |