Skip to content

Update github-actions (#183) #407

Update github-actions (#183)

Update github-actions (#183) #407

Workflow file for this run

name: CI
permissions: {}
on:
push:
branches: [latest]
pull_request:
branches: [latest]
# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
command: [test, typecheck]
os: [ubuntu-latest, windows-latest]
astro: [^5, alpha]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24.16.0
- run: pnpm i
- run: pnpm i --workspace-root astro@${{ matrix.astro }}
- run: pnpm i astro@${{ matrix.astro }}
working-directory: packages/astro-og-canvas
- run: pnpm i astro@${{ matrix.astro }}
working-directory: demo
- name: Test
run: pnpm run ${{ matrix.command }}