Merge pull request #634 from tricknotes/dependabot/github_actions/rub… #129
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 Tests" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: "*" | |
| jobs: | |
| build: | |
| runs-on: "ubuntu-latest" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ["3.3", "3.4", "4.0"] | |
| rails: ["7.2", "8.0", "8.1"] | |
| include: | |
| - ruby: "4.0" | |
| rails: "main" | |
| env: | |
| RAILS_ENV: "test" | |
| RAILS_VERSION: "${{ matrix.rails }}" | |
| steps: | |
| - uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2 | |
| - name: "Install NodeJS" | |
| uses: "actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f" # v6.3.0 | |
| with: | |
| node-version: "20.x" | |
| - name: "Install Ruby ${{ matrix.ruby }}" | |
| uses: "ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5" # v1.301.0 | |
| with: | |
| ruby-version: "${{ matrix.ruby }}" | |
| bundler-cache: true | |
| - name: "Run Setup" | |
| run: | | |
| bin/setup | |
| - name: "Run Tests" | |
| run: | | |
| bin/rake |