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
4 changes: 2 additions & 2 deletions .github/workflows/maintenance-mode-toggle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::154471991214:role/github_action
aws-region: us-west-2
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ jobs:
ALGOLIA_SECRET: ${{ secrets.ALGOLIA_SECRET }}
CAPTCHA_SITE_KEY: 1x00000000000000000000BB
CAPTCHA_SECRET_KEY: 1x0000000000000000000000000000000AA
DEBIAN_FRONTEND: noninteractive
NEEDRESTART_MODE: l

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Disable needrestart
run: sudo apt-get purge -y needrestart || true

# Docs: https://github.com/shivammathur/setup-php
- name: Setup php
Expand All @@ -45,22 +50,22 @@ jobs:
coverage: xdebug

- name: Setup pnpm
uses: pnpm/action-setup@v5
uses: pnpm/action-setup@v6
with:
version: "12.3.4"

- name: Setup node.js
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: latest
node-version: 26
cache: "pnpm"

- name: Get composer cache directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v5
- uses: actions/cache@v6
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -91,7 +96,7 @@ jobs:
run: echo "version=$(npx playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT

- name: Cache playwright binaries
uses: actions/cache@v5
uses: actions/cache@v6
id: playwright-cache
with:
path: ~/.cache/ms-playwright
Expand All @@ -101,17 +106,15 @@ jobs:

- name: Install Playwright browsers and dependencies (Cache Miss)
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: Install Playwright system dependencies (Cache Hit)
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: npx playwright install-deps
env:
DEBIAN_FRONTEND: noninteractive
run: npx playwright install --with-deps chromium

- name: Test with pest
run: vendor/bin/pest --parallel --coverage-clover ./coverage.xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: yilanboy/docfunc
Loading