wip: sentry config changes #3319
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: Pipeline | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
SKIP_ENV_VALIDATION: "true" | |
NEXT_PUBLIC_BASE_URL: "" | |
VARAAMO_TEST_VAR: ${{ vars.VARAAMO_TEST_VAR }} | |
jobs: | |
# Disabled because it broke, and no idea why. | |
#changed-packages: | |
# name: Determine which apps changed | |
# uses: ./.github/workflows/changed-packages.yml | |
lint-admin-ui: | |
name: Lint admin ui | |
runs-on: ubuntu-latest | |
#needs: [changed-packages] | |
# if: needs.changed-packages.outputs.admin_changed == 'true' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
- name: Lint admin ui | |
run: | | |
pnpm tsc:check --filter=admin-ui... | |
pnpm lint --filter=admin-ui... | |
pnpm lint:css --filter=admin-ui... | |
build-admin-ui: | |
name: Build admin ui | |
runs-on: ubuntu-latest | |
#needs: [changed-packages] | |
# if: needs.changed-packages.outputs.admin_changed == 'true' | |
#env: | |
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
- name: Build ui | |
run: pnpm build --filter admin-ui... | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
test-admin-ui: | |
name: Test admin ui | |
runs-on: ubuntu-latest | |
# needs: [changed-packages] | |
# if: needs.changed-packages.outputs.admin_changed == 'true' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
- name: Test admin ui | |
run: pnpm test --filter=admin-ui... | |
lint-ui: | |
name: Lint ui | |
runs-on: ubuntu-latest | |
# needs: [changed-packages] | |
# if: needs.changed-packages.outputs.ui_changed == 'true' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
- name: Lint ui | |
run: | | |
pnpm tsc:check --filter=ui... | |
pnpm lint --filter=ui... | |
pnpm lint:css --filter=ui... | |
read-secret: | |
name: Read secret | |
runs-on: ubuntu-latest | |
steps: | |
- shell: bash | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
run: | | |
echo "auth token: $SENTRY_AUTH_TOKEN" | |
echo "test var $VARAAMO_TEST_VAR" | |
build-ui: | |
name: Build ui | |
runs-on: ubuntu-latest | |
# needs: [changed-packages] | |
# if: needs.changed-packages.outputs.ui_changed == 'true' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
#- uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
# TODO make the app base path configurable (inside the monorepo) | |
- name: Build ui | |
run: | | |
echo "current dir: $(pwd)" | |
touch apps/ui/.env.local | |
echo SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} >> apps/ui/.env.local | |
pnpm build --filter ui... | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
test-ui: | |
name: Unit tests ui | |
runs-on: ubuntu-latest | |
# needs: [changed-packages] | |
# if: needs.changed-packages.outputs.ui_changed == 'true' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
- name: Test ui | |
run: pnpm test --filter=ui... |