fix: common/package.json to reduce vulnerabilities #5300
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: Guardian CI | |
on: | |
workflow_dispatch: | |
description: 'Manual run' | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
jobs: | |
buildAndTest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: | | |
pushd interfaces | |
npm install | |
npm run build | |
popd | |
pushd common | |
npm install | |
npm run build | |
popd | |
pushd logger-service | |
npm install | |
npm run build | |
popd | |
pushd notification-service | |
npm install | |
npm run build | |
popd | |
pushd frontend | |
npm install | |
npm run build | |
npm run build:prod | |
npm run build:demo | |
popd | |
pushd auth-service | |
npm install | |
npm run build | |
popd | |
pushd policy-service | |
npm install | |
npm run build | |
popd | |
pushd guardian-service | |
npm install | |
npm run build | |
popd | |
pushd worker-service | |
npm install | |
npm run build | |
popd | |
pushd api-gateway | |
npm install | |
npm run build | |
popd | |
env: | |
CI: true | |
- name: Lint | |
run: | | |
pushd interfaces | |
npm run lint | |
popd | |
pushd common | |
npm run lint | |
popd | |
pushd logger-service | |
npm run lint | |
popd | |
pushd notification-service | |
npm run lint | |
popd | |
pushd auth-service | |
npm run lint | |
popd | |
pushd policy-service | |
npm run lint | |
popd | |
pushd guardian-service | |
npm run lint | |
popd | |
pushd worker-service | |
npm run lint | |
popd | |
pushd api-gateway | |
npm run lint | |
popd | |
env: | |
CI: true | |
- name: Test | |
run: | | |
pushd common | |
npm run test | |
popd | |
pushd policy-service | |
npm run test | |
popd | |
pushd guardian-service | |
npm run test | |
popd | |
pushd worker-service | |
npm run test | |
popd | |
env: | |
CI: true | |
OPERATOR_ID: ${{ secrets.OPERATOR_ID }} | |
OPERATOR_KEY: ${{ secrets.OPERATOR_KEY }} | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
if: always() | |
with: | |
files: test_results/**/*.xml |