[Snyk] Security upgrade jest from 27.5.1 to 29.0.0 #23
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: 'vsts-build-test' | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
- releases/* | |
paths: | |
- 'vsts/*' | |
- '.github/workflows/vsts.yml' | |
jobs: | |
build: | |
runs-on: '${{ matrix.os }}' | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cd common && npm ci && cd ../vsts && npm install && npm run build | |
check-dist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Node.js 12.x | |
uses: actions/[email protected] | |
with: | |
node-version: 12.x | |
- name: Install dependencies | |
run: cd vsts && npm ci && cd ../common && npm ci | |
- name: Rebuild the QodanaScan/ directory | |
run: cd vsts && npm run build && npm run package | |
- name: Compare the expected and actual QodanaScan/ directories | |
run: > | |
if [ "$(git diff --ignore-space-at-eol vsts/QodanaScan/ | wc -l)" -gt | |
"0" ]; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git diff | |
exit 1 | |
fi | |
id: diff | |
- uses: actions/upload-artifact@v2 | |
if: '${{ failure() && steps.diff.conclusion == ''failure'' }}' | |
with: | |
name: dist | |
path: vsts/QodanaScan/ |