Replace dependency babel-eslint with @babel/eslint-parser 7.11.0 (master) #2729
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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
unit-tests: | |
name: "Unit tests" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ '12', '13', '14' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm ci | |
- run: npm run coverage | |
- run: cat ./coverage/lcov.info | npx coveralls . | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_SERVICE_NAME: github | |
COVERALLS_SERVICE_NUMBER: ${{ github.run_id }} | |
CI_PULL_REQUEST: ${{ github.event.number }} | |
lint: | |
name: "Linter" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- run: npm ci | |
- run: npm run lint |