fix(deps): update sentry-javascript monorepo to v7.81.1 #2022
Workflow file for this run
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: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Ensure Conventional Commits | |
uses: webiny/[email protected] | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- run: npm ci | |
- uses: nrwl/nx-set-shas@v3 | |
- name: Check Formatting | |
run: | | |
if [[ $(npx nx format:check) ]]; then | |
npx prettier -w . | |
git diff --color | cat | |
exit 1 | |
fi | |
- name: Lint | |
run: npx nx affected --target=lint --parallel=3 | |
- name: Run Tests with Code Coverage | |
run: npx nx affected --target=test --parallel=3 --ci --coverage --coverageReporters=lcov | |
- name: Merge Coverage files | |
run: '[ -d "./coverage/" ] && ./node_modules/.bin/lcov-result-merger ./coverage/**/lcov.info ./coverage/lcov.info || exit 0' | |
- name: Create SPA Environment File | |
run: envsubst < apps/spa/src/environments/environment.template > apps/spa/src/environments/environment.prod.ts | |
env: | |
IS_PRODUCTION: true | |
ENVIRONMENT_NAME: 'ci' | |
RELEASE_VERSION: ${{ github.sha }} | |
API_URL: http://localhost:3000/ | |
OAUTH_CONFIG: undefined | |
- name: Build | |
run: npx nx run-many -t build --all --parallel=3 | |
- name: Start and prepare MongoDB for E2Es | |
run: ./tools/db/kordis-db.sh init e2edb | |
- name: Run E2Es | |
run: npm run serve:all:prod & (npx wait-on tcp:3000 && npx wait-on http://localhost:4200 && npx nx e2e spa-e2e) | |
env: | |
E2E_BASE_URL: http://localhost:4200/ | |
MONGODB_URI: mongodb://127.0.0.1:27017/e2edb | |
ENVIRONMENT_NAME: 'ci' | |
RELEASE_VERSION: ${{ github.sha }} | |
SENTRY_KEY: ${{ secrets.SENTRY_KEY }} | |
PORT: 3000 | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: e2e-test-results | |
path: test-results/ | |
if-no-files-found: ignore | |
- name: SonarCloud Scan | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |