Add trash bin page and discard reset functionality #20
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: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
- staging | |
push: | |
branches: | |
- main | |
- staging | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm run test | |
- name: Run eslint | |
run: npx eslint . --max-warnings=0 | |
- name: Run prettier check | |
run: npx prettier --check . | |
- name: Fail if ESLint or Prettier found errors | |
run: | | |
if [ $? -ne 0 ]; then | |
echo "ESLint or Prettier found errors. Exiting..." | |
exit 1 | |
fi |