Skip to content

Improve/app/workspace switcher #934

Improve/app/workspace switcher

Improve/app/workspace switcher #934

Workflow file for this run

name: CI
on:
pull_request:
branches: ["*"]
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
FORCE_COLOR: 3
TURBO_TEAM: ${{ secrets.VERCEL_TEAM_ID }}
TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./tooling/github/setup
- name: Copy env
shell: bash
run: cp .env.example .env
- name: Lint
run: pnpm lint && pnpm lint:ws
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./tooling/github/setup
- name: Format
run: pnpm format
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./tooling/github/setup
- name: Copy env
shell: bash
run: cp .env.example .env
- name: Typecheck
run: pnpm typecheck
ci--can-merge:
needs: [lint, format, typecheck]
permissions:
actions: read
runs-on: ubuntu-latest
steps:
- name: Transform outcomes
env:
NEEDS_JSON: "${{ toJson(needs) }}"
run: |
echo "ALL_SUCCESS=$(echo "$NEEDS_JSON" | jq '. | to_entries | map([.value.result == "success", .value.result == "skipped"] | any) | all')" >> $GITHUB_ENV
- name: Check outcomes
run: "[ $ALL_SUCCESS = true ]"