Fix race condition when merging attendance #4362
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] | |
env: | |
DASHBOARD_AUTH0_CLIENT_ID: ${{ secrets.DASHBOARD_AUTH0_CLIENT_ID }} | |
DASHBOARD_AUTH0_CLIENT_SECRET: ${{ secrets.DASHBOARD_AUTH0_CLIENT_SECRET }} | |
DASHBOARD_AUTH0_ISSUER: ${{ secrets.DASHBOARD_AUTH0_ISSUER }} | |
WEB_AUTH0_CLIENT_ID: ${{ secrets.WEB_AUTH0_CLIENT_ID }} | |
WEB_AUTH0_CLIENT_SECRET: ${{ secrets.WEB_AUTH0_CLIENT_SECRET }} | |
WEB_AUTH0_ISSUER: ${{ secrets.WEB_AUTH0_ISSUER }} | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
TRIKOM_STRIPE_PUBLIC_KEY: ${{ secrets.TRIKOM_STRIPE_PUBLIC_KEY }} | |
TRIKOM_STRIPE_SECRET_KEY: ${{ secrets.TRIKOM_STRIPE_SECRET_KEY }} | |
TRIKOM_STRIPE_WEBHOOK_SECRET: ${{ secrets.TRIKOM_STRIPE_WEBHOOK_SECRET }} | |
FAGKOM_STRIPE_PUBLIC_KEY: ${{ secrets.FAGKOM_STRIPE_PUBLIC_KEY }} | |
FAGKOM_STRIPE_SECRET_KEY: ${{ secrets.FAGKOM_STRIPE_SECRET_KEY }} | |
FAGKOM_STRIPE_WEBHOOK_SECRET: ${{ secrets.FAGKOM_STRIPE_WEBHOOK_SECRET }} | |
S3_BUCKET_MONOWEB: ${{ secrets.S3_BUCKET_MONOWEB }} | |
GTX_AUTH0_CLIENT_ID: ${{ secrets.GTX_AUTH0_CLIENT_ID }} | |
GTX_AUTH0_CLIENT_SECRET: ${{ secrets.GTX_AUTH0_CLIENT_SECRET }} | |
GTX_AUTH0_ISSUER: ${{ secrets.GTX_AUTH0_ISSUER }} | |
jobs: | |
build: | |
name: Build and Test | |
timeout-minutes: 15 | |
# env: | |
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Cache turbo build setup | |
uses: actions/cache@v3 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-turbo- | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.8.0 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.18.0 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Type Check | |
run: pnpm type-check | |
- name: Lint | |
run: pnpm lint-check | |
- name: Build | |
run: pnpm run build |