Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/cloudflare-preview-forks-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run textlint || { printf "Run 'ddev textlint' locally to fix it.\n\n"; exit 1; }

- name: Prettier
run: npm run prettier || { printf "\nRun 'ddev prettier' locally to fix it.\n\n"; exit 1; }

# textlint and prettier run in test.yml. They are left out here so a
# wording or formatting problem doesn't hold back the preview.
- name: Build
run: npm run build

Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ env:
NODE_VERSION: 24

jobs:
build:
timeout-minutes: 15
# A separate job, so a wording or formatting problem fails this check
# without stopping the build.
lint:
timeout-minutes: 10
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
Expand All @@ -28,7 +30,17 @@ jobs:
- name: Lint
run: npm run textlint || { printf "Run 'ddev textlint' locally to fix it.\n\n"; exit 1; }
- name: Prettier
if: ${{ !cancelled() }}
run: npm run prettier || { printf "\nRun 'ddev prettier' locally to fix it.\n\n"; exit 1; }

build:
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ env.NODE_VERSION }}
- name: Load Amplitude secrets
# Skipped for forked-repo PRs: GitHub Actions never exposes secrets to those
# anyway, but this avoids depending on that alone and skips a step that
Expand Down
Loading