fix: package.json & package-lock.json to reduce vulnerabilities #3891
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: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
VERSION_COMMIT: ${{ github.sha }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12.14 | |
- name: Install NPM dependencies | |
run: npm ci | |
- name: Build source code | |
run: npm run build --if-present | |
- name: Test source code | |
run: npm test | |
- name: Build docker image | |
run: npm run docker:build | |
- name: Test docker image | |
run: npm run docker:test | |
- name: Submit coveralls test coverage report | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check if release should be created | |
run: npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} |