fix: package.json to reduce vulnerabilities #195
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 | |
jobs: | |
linter: | |
name: Linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Run | |
run: npm run lint | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: docker-compose pull | |
# It takes more time to cache/restore data on small builds | |
# - uses: satackey/[email protected] | |
# continue-on-error: true | |
- run: docker-compose build | |
- run: NODE_ENV=ci docker-compose up --abort-on-container-exit --exit-code-from ci | |
- uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov | |
- run: docker-compose down -v |