mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
name: Test tree-sitter-extractor
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "shared/tree-sitter-extractor/**"
|
|
- .github/workflows/tree-sitter-extractor-test.yml
|
|
branches:
|
|
- main
|
|
- "rc/*"
|
|
pull_request:
|
|
paths:
|
|
- "shared/tree-sitter-extractor/**"
|
|
- .github/workflows/tree-sitter-extractor-test.yml
|
|
branches:
|
|
- main
|
|
- "rc/*"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: shared/tree-sitter-extractor
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Check formatting
|
|
run: cargo fmt -- --check
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Check formatting
|
|
run: cargo fmt --check
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Run clippy
|
|
run: cargo clippy -- --no-deps -D warnings -A clippy::new_without_default -A clippy::too_many_arguments
|