-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
244 changed files
with
10,898 additions
and
3,468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,12 +28,10 @@ jobs: | |
profile: minimal | ||
override: true | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run cargo check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
run: cargo check | ||
|
||
test: | ||
name: Test Suite | ||
|
@@ -46,12 +44,9 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Install stable toolchain | ||
uses: helix-editor/rust-toolchain@v1 | ||
with: | ||
profile: minimal | ||
override: true | ||
uses: dtolnay/[email protected] | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Cache test tree-sitter grammar | ||
uses: actions/cache@v3 | ||
|
@@ -61,15 +56,10 @@ jobs: | |
restore-keys: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars- | ||
|
||
- name: Run cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --workspace | ||
run: cargo test --workspace | ||
|
||
- name: Run cargo integration-test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: integration-test | ||
run: cargo integration-test | ||
|
||
strategy: | ||
matrix: | ||
|
@@ -83,31 +73,20 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Install stable toolchain | ||
uses: helix-editor/rust-toolchain@v1 | ||
uses: dtolnay/rust-toolchain@1.61 | ||
with: | ||
profile: minimal | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
run: cargo fmt --all --check | ||
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --workspace --all-targets -- -D warnings | ||
run: cargo clippy --workspace --all-targets -- -D warnings | ||
|
||
- name: Run cargo doc | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --no-deps --workspace --document-private-items | ||
run: cargo doc --no-deps --workspace --document-private-items | ||
env: | ||
RUSTDOCFLAGS: -D warnings | ||
|
||
|
@@ -119,18 +98,15 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Install stable toolchain | ||
uses: helix-editor/rust-toolchain@v1 | ||
with: | ||
profile: minimal | ||
override: true | ||
uses: dtolnay/[email protected] | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Validate queries | ||
run: cargo xtask query-check | ||
|
||
- name: Generate docs | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: xtask | ||
args: docgen | ||
run: cargo xtask docgen | ||
|
||
- name: Check uncommitted documentation changes | ||
run: | | ||
|
@@ -139,23 +115,3 @@ jobs: | |
|| (echo "Run 'cargo xtask docgen', commit the changes and push again" \ | ||
&& exit 1) | ||
queries: | ||
name: Tree-sitter queries | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install stable toolchain | ||
uses: helix-editor/rust-toolchain@v1 | ||
with: | ||
profile: minimal | ||
override: true | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
|
||
- name: Generate docs | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: xtask | ||
args: query-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.