Move to importmaps #623
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: main | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ["3.4", "3.3", "3.2"] | |
| rails-version: ["8.0"] | |
| # Run coverage only for latest versions | |
| include: | |
| - ruby-version: "3.4" | |
| rails-version: "8.0" | |
| coverage: true | |
| fail-fast: false | |
| env: | |
| BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/rails_${{matrix.rails-version}}.gemfile" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby ${{ matrix.ruby-version }} / Rails ${{ matrix.rails-version }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| cache-version: 3 | |
| - name: Setup DB ποΈ | |
| run: | | |
| bundle exec rake db:test:prepare | |
| - name: Run Tests β | |
| run: | | |
| bundle exec rake spec | |
| env: | |
| COVERAGE: true | |
| CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | |
| - name: Report Coverage | |
| if: github.ref == 'refs/heads/main' && matrix.coverage == true | |
| uses: paambaati/codeclimate-action@v4.0.0 | |
| with: | |
| coverageLocations: | | |
| ${{github.workspace}}/coverage/coverage.json:simplecov | |
| env: | |
| CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Run RuboCop π | |
| run: bundle exec rake rubocop | |
| - uses: pnpm/action-setup@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".tool-versions" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run JS Linter π | |
| run: pnpm run lint | |
| - name: Run SCSS Linter β¨ | |
| run: pnpm run lint:css | |
| - name: Lint Commits π | |
| run: pnpm run lint:commit |