mirror of
https://github.com/linear/linear-release.git
synced 2026-09-14 20:00:10 +08:00
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: "22"
|
|
|
|
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
|
|
with:
|
|
version: 10.22.0
|
|
|
|
- run: pnpm install
|
|
|
|
- run: pnpm fmt:check
|
|
|
|
- run: pnpm lint
|
|
|
|
- run: pnpm typecheck
|
|
|
|
- run: pnpm test:ci
|
|
|
|
sync-release:
|
|
name: Sync release management
|
|
needs: test
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
uses: ./.github/workflows/run-linear-release.yml
|
|
with:
|
|
action: sync
|
|
secrets:
|
|
LINEAR_RELEASE_MANAGEMENT_ACCESS_KEY: ${{ secrets.LINEAR_RELEASE_MANAGEMENT_ACCESS_KEY }}
|