Bump eslint from 6.8.0 to 9.26.0 #37
This file contains hidden or 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
| # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
| name: Frontend Action | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| jobs: | |
| lint: | |
| name: audit code style | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [12.x] | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v2 | |
| - name: Prepare Node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install Deps | |
| run: npm i -D eslint eslint-config-airbnb-base eslint-plugin-react | |
| - name: Run Audits | |
| run: npm run lint | |
| build: | |
| name: Running unit Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [10.x, 12.x] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: install dep | |
| run: npm install | |
| - name: run test | |
| run: npm run test |