add task solution #1631
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: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# fix rollup issue | |
- run: rm -rf node_modules package-lock.json | |
- run: npm install | |
- run: npm test -- -l | |
- name: Upload tests report(cypress mochaawesome merged HTML report) | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: report | |
path: reports |