Merge pull request #575 from GSA-TTS/jcurcio/partnerportal184/replace… #78
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: Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Specs | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: 'true' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - uses: actions/setup-node@v4 | |
| with: | |
| cache: 'npm' | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Clean | |
| run: make clean | |
| - name: Build site | |
| run: make build | |
| - name: Run Ruby tests | |
| run: bundle exec rspec | |
| - name: Run HTMLProofer | |
| run: bundle exec scripts/htmlproofer --internal | |
| - name: Lint JavaScript | |
| run: make lint-js | |
| - name: Run NPM tests | |
| run: npm run test |