2022-10-12 07:48:29 -05:00
|
|
|
name: Examples astro check
|
|
|
|
|
|
|
|
on:
|
2023-03-01 09:02:35 -05:00
|
|
|
workflow_dispatch:
|
2022-10-12 07:48:29 -05:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-02-24 14:57:02 -05:00
|
|
|
merge_group:
|
2022-10-12 07:48:29 -05:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2023-02-24 10:52:43 -05:00
|
|
|
- "examples/**"
|
|
|
|
- ".github/workflows/check.yml"
|
|
|
|
- "scripts/smoke/check.js"
|
|
|
|
- "packages/astro/src/@types/astro.ts"
|
2022-10-12 07:48:29 -05:00
|
|
|
|
|
|
|
env:
|
|
|
|
ASTRO_TELEMETRY_DISABLED: true
|
|
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
|
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
|
|
|
FORCE_COLOR: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: astro check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2022-10-28 13:36:50 -05:00
|
|
|
- name: Setup PNPM
|
2023-02-24 10:52:43 -05:00
|
|
|
uses: pnpm/action-setup@v2
|
2022-10-28 13:36:50 -05:00
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|
2023-02-24 10:52:43 -05:00
|
|
|
cache: "pnpm"
|
2022-10-28 13:36:50 -05:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
2022-10-12 07:48:29 -05:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm run build
|
|
|
|
|
|
|
|
- name: Status
|
|
|
|
run: git status
|
|
|
|
|
|
|
|
- name: astro check
|
|
|
|
run: pnpm run test:check-examples
|