Skip to content

Bump fast-uri from 3.1.5 to 3.1.7 in /website #6466

Bump fast-uri from 3.1.5 to 3.1.7 in /website

Bump fast-uri from 3.1.5 to 3.1.7 in /website #6466

# Simple workflow for Building and Testing the Pyrefly Website
# If upload_artifacts is true, the build artifacts will be uploadeded.
name: Build and Test Pyrefly Website
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow this workflow to be called by other workflows
workflow_call:
inputs:
upload_artifacts:
description: 'Whether to upload artifacts after build'
required: false
default: false
type: boolean
push:
branches: [ main ]
pull_request:
types: [opened]
paths:
- 'website/**'
# GitHub sets `head_ref` only for a pull request. A new push to a pull request
# cancels the previous run. All other events use the unique `run_id`. Each of
# these runs gets its own group, and no run cancels a different run.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Node.js version
uses: actions/setup-node@v6
with:
node-version: "20.x"
- name: Install yarn deps
run: cd website && yarn install
- name: Install wasm-pack
run: cargo install wasm-pack wasm-opt
- name: Build
working-directory: ./website
run: cargo version && chmod +x scripts/build.sh && scripts/build.sh && yarn build-wasm-for-test
- name: Typecheck
working-directory: ./website
run: yarn tsc --noEmit
- name: Test
working-directory: ./website
run: yarn test
- name: Get current date
id: date
if: ${{ inputs.upload_artifacts }}
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Upload build artifacts
if: ${{ inputs.upload_artifacts }}
uses: actions/upload-artifact@v6
with:
name: website-build-${{ env.date }}
path: website/build
retention-days: 30