From 75fd8d6619cb45e3253209fc5944d6e6cfd0d139 Mon Sep 17 00:00:00 2001 From: el combo <24692334+ccombe@users.noreply.github.com> Date: Fri, 16 Oct 2026 19:43:06 +1100 Subject: [PATCH 1/4] ci: lint commit messages with commitlint --- .github/workflows/commitlint.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/commitlint.yml diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 0000000..a9a7176 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,15 @@ +name: Commits + +on: + push: + branches: [master, main] + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v5 From e41254b107954afa29ed55bfb3c880b8601681b9 Mon Sep 17 00:00:00 2001 From: el combo <24692334+ccombe@users.noreply.github.com> Date: Fri, 16 Oct 2026 19:50:59 +1100 Subject: [PATCH 2/4] ci: install Playwright browsers before E2E tests --- .github/workflows/ci.yml | 3 +++ .github/workflows/deploy.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df6679c..e1e9be5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,6 +90,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile --ignore-scripts + - name: Install Playwright browsers + run: npx playwright install chromium + - name: Run E2E tests run: pnpm run test:e2e env: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b47e883..02dbcea 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -62,6 +62,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile --ignore-scripts + - name: Install Playwright browsers + run: npx playwright install chromium + - name: Run E2E tests run: pnpm run test:e2e env: From f975910cbb07648adc64c4de054688054a9ba448 Mon Sep 17 00:00:00 2001 From: el combo <24692334+ccombe@users.noreply.github.com> Date: Fri, 16 Oct 2026 19:59:05 +1100 Subject: [PATCH 3/4] ci: use locked playwright via pnpm exec --- .github/workflows/ci.yml | 2 +- .github/workflows/deploy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1e9be5..defef7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,7 +91,7 @@ jobs: run: pnpm install --frozen-lockfile --ignore-scripts - name: Install Playwright browsers - run: npx playwright install chromium + run: pnpm exec playwright install chromium - name: Run E2E tests run: pnpm run test:e2e diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 02dbcea..5643025 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -63,7 +63,7 @@ jobs: run: pnpm install --frozen-lockfile --ignore-scripts - name: Install Playwright browsers - run: npx playwright install chromium + run: pnpm exec playwright install chromium - name: Run E2E tests run: pnpm run test:e2e From e2e5f1a325b9b377ec72a7502f480ba0a632e0d2 Mon Sep 17 00:00:00 2001 From: el combo <24692334+ccombe@users.noreply.github.com> Date: Fri, 16 Oct 2026 20:00:54 +1100 Subject: [PATCH 4/4] ci: sync pinned commitlint workflow --- .github/workflows/commitlint.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index a9a7176..b737135 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -5,11 +5,15 @@ on: branches: [master, main] pull_request: +permissions: + contents: read + pull-requests: read + jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: fetch-depth: 0 - - uses: wagoid/commitlint-github-action@v5 + - uses: wagoid/commitlint-github-action@9763196e10f27aef304c9b8b660d31d97fce0f99 # v5