Bump the github-actions group across 1 directory with 2 updates #339
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: Build | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| types: [ opened, synchronize ] | |
| permissions: {} | |
| jobs: | |
| rubocop: | |
| name: Rubocop | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Ruby and install gems | |
| uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.313.0 | |
| with: | |
| ruby-version: '3.4' | |
| bundler-cache: true | |
| - name: Run rubocop | |
| run: | | |
| bundle exec rubocop --parallel | |
| lint-actions: | |
| name: GitHub Actions audit | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run actionlint | |
| uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12 | |
| - name: Run zizmor | |
| uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6 | |
| with: | |
| advanced-security: false | |
| tests: | |
| name: Ruby ${{ matrix.ruby-version }}, ${{ matrix.rails-version }}, ${{ matrix.database }} | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby-version: ['3.4', '4.0'] | |
| rails-version: [rails_7_2, rails_8_0, rails_8_1, rails_edge] | |
| database: [sqlite, postgres, mysql] | |
| continue-on-error: ${{ matrix.rails-version == 'rails_edge' }} | |
| services: | |
| redis: | |
| image: redis # zizmor: ignore[unpinned-images] -- version tag is fine for service containers | |
| ports: | |
| - 6379:6379 | |
| postgres: | |
| image: postgres:16 # zizmor: ignore[unpinned-images] -- version tag is fine for service containers | |
| env: | |
| POSTGRES_HOST_AUTH_METHOD: "trust" | |
| ports: | |
| - 55432:5432 | |
| mysql: | |
| image: mysql:8.0 # zizmor: ignore[unpinned-images] -- version tag is fine for service containers | |
| env: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: "yes" | |
| ports: | |
| - 33306:3306 | |
| env: | |
| BUNDLE_GEMFILE: gemfiles/${{ matrix.rails-version }}.gemfile | |
| TARGET_DB: ${{ matrix.database }} | |
| CI: true | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Ruby and install gems | |
| uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.313.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: Setup test database | |
| run: | | |
| bin/rails db:setup | |
| - name: Run tests | |
| run: bin/rails test |