Merge pull request #3616 from ingef/feature/cleanup-commands #1733
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 Frontend" | |
on: | |
push: | |
branches: | |
# Always run on protected branches | |
- master | |
- develop | |
- release | |
pull_request: | |
paths: | |
- "frontend/**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 6 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: install dependencies | |
working-directory: ./frontend | |
run: npm install | |
- name: setup env variables | |
working-directory: ./frontend | |
run: cp .env.example .env | |
- name: lint | |
working-directory: ./frontend | |
run: npm run lint | |
- name: check format | |
working-directory: ./frontend | |
run: npm run checkformat | |
- name: test | |
working-directory: ./frontend | |
run: npm run test |