fix: package.json & package-lock.json to reduce vulnerabilities #241
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
| 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/action-docker-layer-caching@v0.0.11 | |
| # 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/codeclimate-action@v2.7.5 | |
| env: | |
| CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
| with: | |
| coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov | |
| - run: docker-compose down -v |