v5.5.17 #4
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: Frontend Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
node-version: | |
- 14 | |
- 18 | |
- 20 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
working-directory: './frontend' | |
- name: Install dependencies | |
working-directory: ./frontend | |
run: npm install | |
- name: Run tests | |
working-directory: ./frontend | |
run: npm test | |