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: 4 additions & 4 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 20
- run: npm ci
- run: npm run build
env:
THIRDWEB_CLIENT_ID: ${{ secrets.THIRDWEB_CLIENT_ID }}
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3.0.0
uses: actions/upload-pages-artifact@v5
with:
path: build

Expand All @@ -34,4 +34,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
uses: actions/deploy-pages@v5 # or specific "vX.X.X" version tag for this action
6 changes: 3 additions & 3 deletions .github/workflows/externalLinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Run external link check
run: npm run externalLinks
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
if: ${{ !cancelled() }}
with:
name: externalLinks
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: lts/*
- name: Install dependencies
Expand All @@ -21,7 +21,7 @@ jobs:
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
if: ${{ !cancelled() }}
with:
name: playwright-report
Expand Down
25 changes: 17 additions & 8 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ permissions:
contents: read
checks: write
id-token: write
pull-requests: read

on:
pull_request:
Expand All @@ -17,21 +18,29 @@ jobs:
outputs:
files: ${{ steps.files.outputs.added_modified }}
steps:
- uses: actions/checkout@v2
# Compute the added/modified .md/.mdx files via the GitHub API. This
# replaces a third-party action (Ana06/get-changed-files, node12/node20)
# with the pre-installed gh CLI, so there is no action Node runtime to
# deprecate. Output name kept as `added_modified` so the job output
# mapping and downstream --docFiles references are unchanged.
- id: files
uses: Ana06/get-changed-files@v1.2
with:
format: 'csv'
filter: '*.mdx?'
env:
GH_TOKEN: ${{ github.token }}
run: |
files=$(gh api --paginate \
repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files \
--jq '.[] | select(.status == "added" or .status == "modified") | .filename' \
| { grep -iE '\.mdx?$' || true; } | paste -sd, -)
echo "added_modified=$files" >> "$GITHUB_OUTPUT"

tests:
runs-on: ubuntu-latest
needs: checkChangedFiles
if: ${{ needs.checkChangedFiles.outputs.files != '' }}
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22

Expand Down Expand Up @@ -66,7 +75,7 @@ jobs:
run: echo $FAILED

# Report tests on PR
- uses: dorny/test-reporter@v2
- uses: dorny/test-reporter@v3
if: ${{ !cancelled() }}
with:
path: 'doclib/*.xml'
Expand Down