CI #3719
Workflow file for this run
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: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "*" | |
| pull_request: | |
| merge_group: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| RAILS_ENV: "test" | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Cachix | |
| uses: cachix/cachix-action@v17 | |
| with: | |
| name: accentor | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| - name: "Setup database" | |
| run: | | |
| nix develop --command pg:start | |
| nix develop --command rails db:setup | |
| - name: Run tests | |
| env: | |
| CI: true | |
| run: nix develop --command rails test | |
| - uses: codecov/codecov-action@v7 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} # required | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Cachix | |
| uses: cachix/cachix-action@v17 | |
| with: | |
| name: accentor | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| - name: Lint with rubocop | |
| env: | |
| RAILS_ENV: "test" | |
| run: nix develop --command rubocop -c .rubocop.yml -f github | |
| - name: Scan with brakeman | |
| run: nix develop --command brakeman --no-pager |