Skip to content

chore: @brillout/docpress@^0.16.0 #2883

chore: @brillout/docpress@^0.16.0

chore: @brillout/docpress@^0.16.0 #2883

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
prepare:
# Prevent workflow being run twice, https://github.com/orgs/community/discussions/57827#discussioncomment-6579237
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
version: 1.2.19
- id: getMatrix
run: |
matrix=`bun ./.github/workflows/ci/prepare.ts --ci`
echo "matrix=$matrix" >> $GITHUB_OUTPUT
- run: echo ${{ steps.getMatrix.outputs.matrix }}
outputs:
matrix: ${{ steps.getMatrix.outputs.matrix }}
test:
needs: prepare
strategy:
matrix: ${{fromJson(needs.prepare.outputs.matrix)}}
fail-fast: false
env:
TEST_FILES: ${{ matrix.TEST_FILES }}
runs-on: ${{ matrix.os }}
name: '${{ matrix.jobName }}'
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: "pnpm"
- run: pnpm install
- run: pnpm exec playwright install chromium
- run: pnpm run build
- name: Run tests
run: ${{ matrix.jobCmd }}
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}