fix(cache): Clear deps and context when get value from cache #143
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
cache: "npm" | |
- uses: browser-actions/setup-chrome@latest | |
- uses: browser-actions/setup-firefox@latest | |
- name: Install dependencies | |
run: | | |
npm install | |
npx playwright install-deps webkit | |
- name: Run tests | |
run: | | |
npm run test | |
npm run test:coverage || true | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |