- Replace actions/checkout with git pull + local working-directory - Fixes corp proxy blocking GitHub action downloads
34 lines
687 B
YAML
34 lines
687 B
YAML
name: CI — Common Platform
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build, Test & Typecheck
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
defaults:
|
|
run:
|
|
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
steps:
|
|
- name: Pull latest
|
|
run: git pull --ff-only origin main || true
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build all packages
|
|
run: pnpm build
|
|
|
|
- name: Typecheck
|
|
run: pnpm typecheck
|
|
|
|
- name: Test
|
|
run: pnpm test
|