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
27 changes: 27 additions & 0 deletions .github/workflows/ValidatePullRequests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,45 @@ on:
pull_request:
branches: [ main, 'release/**' ]

# Cancels old running job if a new one is triggered (e.g. by a push onto the same branch).
# This will cancel dependent jobs as well, such as dep_build and dep_benchmarks
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
id-token: write
contents: read

jobs:
spelling:
name: Spell check with typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Spell Check Repo
uses: crate-ci/typos@v1.38.1

build:
uses: ./.github/workflows/dep_build.yml
secrets: inherit

benchmarks:
uses: ./.github/workflows/dep_benchmarks.yml
secrets: inherit
with:
download-benchmarks: true
upload-benchmarks: false

# Gate PR merges on this specific "join-job" which requires all other
# jobs to run first.
report-ci-status:
needs:
- build
- benchmarks
- spelling
if: always()
runs-on: ubuntu-latest
steps:
- name: calculate the correct exit status
run: jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}'
5 changes: 0 additions & 5 deletions .github/workflows/dep_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ jobs:
run: |
just build-js-host-api ${{ matrix.config }}

- name: Spell Check Repo
# Only run on linux, otherwise we need to install wget on windows...
if: runner.os == 'Linux'
uses: crate-ci/typos@master

- name: lint
run: just lint ${{ matrix.config }}

Expand Down
Loading