linting #465
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: build | |
on: | |
- push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['12', '14', '16'] | |
name: node-${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm ci | |
- run: npm run lint -- --quiet # errors only, no warnings | |
name: eslint | |
- run: npm audit --production --audit-level high | |
if: ${{ github.base_ref == 'master' }} | |
- run: npm run test | |
- uses: EnricoMi/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
files: coverage/junit.xml | |
if: matrix.node == 14 | |
docker: | |
runs-on: ubuntu-latest | |
name: docker build | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build the docker container | |
run: | | |
docker build --file Dockerfile --tag bcgsc/pori-graphkb-loader . |