Merge pull request #150 from oss-slu/issue#141/fixing-field-filter #79
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 Linting ESLint | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Check frontend/package.json | |
run: | | |
if [ ! -f Frontend/package.json ]; then | |
echo "No package.json found in frontend folder. Exiting..." | |
exit 1 | |
fi | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '15' | |
- name: Install Dependencies | |
working-directory: Frontend | |
run: npm install | |
- name: Run ESLint | |
working-directory: Frontend | |
run: npm run lint |