mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-11 07:56:28 -04:00
Problem: `build` tests are marked as "required" but skipped when only touching documentation, leading to such PRs not being mergable. Solution: Run tests on all PRs and all commits to the `master` or `release-0.x` branches.
43 lines
847 B
YAML
43 lines
847 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
- 'release-[0-9]+.[0-9]+'
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
- 'release-[0-9]+.[0-9]+'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name != 'push' }}
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up stable Rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
components: clippy, rustfmt
|
|
|
|
- name: Lint files
|
|
run: |
|
|
make lint
|
|
make lint-web
|
|
|
|
sanitize:
|
|
uses: ./.github/workflows/sanitize.yml
|
|
|
|
build:
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
check-wasm-stdlib:
|
|
uses: ./.github/workflows/wasm_stdlib.yml
|