mirror of
https://github.com/ribru17/ts_query_ls.git
synced 2025-12-23 05:36:52 +00:00
ci: cache build artifacts (#124)
This commit is contained in:
parent
2978ccb87a
commit
40bdb7ee68
1 changed files with 32 additions and 0 deletions
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
|
|
@ -19,6 +19,14 @@ jobs:
|
|||
id: toolchain
|
||||
with:
|
||||
components: clippy
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
|
||||
- run: cargo clippy --tests --no-deps -- -D warnings
|
||||
|
||||
format:
|
||||
|
|
@ -41,6 +49,14 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@1.86.0
|
||||
id: toolchain
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
|
||||
- run: cargo test
|
||||
|
||||
corpus:
|
||||
|
|
@ -54,6 +70,14 @@ jobs:
|
|||
- uses: tree-sitter/setup-action/cli@v1
|
||||
- uses: dtolnay/rust-toolchain@1.86.0
|
||||
id: toolchain
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Compile
|
||||
run: |
|
||||
|
|
@ -99,6 +123,14 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@1.86.0
|
||||
id: toolchain
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Check schema generation
|
||||
run: |
|
||||
# Generate schema
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue