Skip to content

PL-2420 change default sentry environment #707

PL-2420 change default sentry environment

PL-2420 change default sentry environment #707

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: Unit tests
runs-on: ubuntu-20.04
steps:
- name: Load current commit
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Check index.js rebuild
run: |
diff=$(git diff --name-only)
if [[ "${diff[*]}" =~ ^(packages\/.*\/src\/.*.ts) ]] && [[ ! "${diff[*]}" =~ ^(packages\/.*\/dst\/.*.js) ]]; then
echo "Some 'src/*.ts' files have been changed but "dist/*.js" files still unchanged. \nPlease run:\nnpm i && npm run precommit in the action directory"
exit 1
fi
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Install dependencies
run: |
npm ci
- name: Install dependencies
run: ./node_modules/.bin/lerna bootstrap
- name: Run unit tests
run: ./node_modules/.bin/lerna run test