diff --git a/.github/workflows/maintenance-mode-toggle.yaml b/.github/workflows/maintenance-mode-toggle.yaml index bdabb615..c518e036 100644 --- a/.github/workflows/maintenance-mode-toggle.yaml +++ b/.github/workflows/maintenance-mode-toggle.yaml @@ -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 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8f003dc4..568edb18 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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 @@ -45,14 +50,14 @@ 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 @@ -60,7 +65,7 @@ jobs: 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') }} @@ -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 @@ -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