Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/clear-ok-to-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
clear-label:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
pull-requests: write
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-fork-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
deploy-fork:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'workflow_dispatch' || github.event.label.name == 'ok-to-deploy' }}
permissions:
contents: read
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:

- name: Deploy
id: deploy
uses: cloudflare/wrangler-action@v3
uses: cloudflare/wrangler-action@v4
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Deploy
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false }}
permissions:
Expand All @@ -37,8 +37,10 @@ jobs:
run: yarn build:sync-bundles
- name: Set VITE_DEPLOYMENT_URL
shell: bash
env:
RAW_BRANCH_INPUT: ${{ github.head_ref || github.ref_name }}
run: |
RAW_BRANCH="${{ github.head_ref || github.ref_name }}"
RAW_BRANCH="$RAW_BRANCH_INPUT"

if [[ "$RAW_BRANCH" == "master" ]]; then
echo "VITE_DEPLOYMENT_URL=" >> "$GITHUB_ENV"
Expand All @@ -59,7 +61,7 @@ jobs:
- name: Deploy
if: ${{ github.actor != 'dependabot[bot]' }}
id: deploy
uses: cloudflare/wrangler-action@v3
uses: cloudflare/wrangler-action@v4
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand All @@ -71,14 +73,14 @@ jobs:
FORCE_COLOR: 0
- name: Comment with docs preview link
if: ${{ github.event_name == 'pull_request' && steps.deploy.outcome == 'success' }}
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@v3
with:
recreate: true
header: docs-deployment
message: |
[Docs preview](${{ steps.deploy.outputs.deployment-url }})
deploy-guide:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Deploy Guide Worker
if: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) && github.actor != 'dependabot[bot]' }}
permissions:
Expand All @@ -101,8 +103,10 @@ jobs:
run: yarn build:guide
- name: Set guide deployment command
shell: bash
env:
RAW_BRANCH_INPUT: ${{ github.head_ref || github.ref_name }}
run: |
RAW_BRANCH="${{ github.head_ref || github.ref_name }}"
RAW_BRANCH="$RAW_BRANCH_INPUT"
SAFE_BRANCH=$(echo "$RAW_BRANCH" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9-]+/-/g; s/^-+//; s/-+$//; s/-+/-/g')
SAFE_BRANCH="${SAFE_BRANCH:0:28}"

Expand All @@ -117,7 +121,7 @@ jobs:
fi
- name: Deploy guide
id: deploy-guide
uses: cloudflare/wrangler-action@v3
uses: cloudflare/wrangler-action@v4
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand Down Expand Up @@ -162,7 +166,7 @@ jobs:
GUIDE_PRODUCTION_ENVIRONMENT: ${{ env.GUIDE_PRODUCTION_ENVIRONMENT }}

e2e:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: E2E Tests
needs: deploy
if: ${{ github.actor != 'dependabot[bot]' }}
Expand All @@ -184,8 +188,10 @@ jobs:
- name: Set Cypress base URL
id: cypress-base-url
shell: bash
env:
RAW_BRANCH_INPUT: ${{ github.head_ref || github.ref_name }}
run: |
RAW_BRANCH="${{ github.head_ref || github.ref_name }}"
RAW_BRANCH="$RAW_BRANCH_INPUT"

if [[ "$RAW_BRANCH" == "master" ]]; then
CYPRESS_BASE_URL="https://rescript-lang.org"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pull Request
on: [pull_request]
jobs:
Format:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Format check
run: yarn ci:format
Site_Checks:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
Expand All @@ -40,7 +40,7 @@ jobs:
# Confirms that Wrangler can start the Docs Pages and Guide local dev servers.
# This startup check intentionally excludes route-level application and Pages Function behavior.
Wrangler:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
cat wrangler.log
exit 1
Vitest:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container:
# Keep this image tag aligned with package.json's playwright version.
image: mcr.microsoft.com/playwright:v1.63.0-noble
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
- name: Guide Vitest
run: yarn workspace @rescript-lang/guide ci:test
Visual_Regression:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container:
# Keep this image tag aligned with package.json's playwright version.
image: mcr.microsoft.com/playwright:v1.63.0-noble
Expand All @@ -144,7 +144,7 @@ jobs:
run: yarn ci:test:visual
- name: Upload visual regression artifacts
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: visual-regression-artifacts
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-visual-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:

jobs:
Update_Visual_Screenshots:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container:
# Keep this image tag aligned with package.json's playwright version.
image: mcr.microsoft.com/playwright:v1.63.0-noble
Expand Down
Loading