fix(build.yaml): Update deployment's incorrect 'uses' format fixed #15
This file contains 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: Lint and run tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- uses: browser-actions/setup-chrome@v1 | |
id: chromedriver | |
with: | |
chrome-version: stable | |
install-chromedriver: true | |
- name: Install dependencies | |
run: npm install | |
- name: Lint code | |
id: lint | |
continue-on-error: true | |
run: npm run lint | |
- name: Run tests | |
env: | |
CHROME_BIN: ${{ steps.chromedriver.outputs.chrome-path }} | |
run: npm run test:ci | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Fail if linting failed | |
if: ${{ steps.lint.outcome == 'failure' }} | |
run: | | |
echo "Linting failed. Failing the workflow." | |
exit 1 |