Skip to content

Commit

Permalink
ci: add cache-workspaces test
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jan 13, 2024
1 parent f2e9ed5 commit 922cc93
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,20 @@ jobs:
- run: cargo add serde_as

- run: cargo clippy

cache:
name: Cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- id: toolchain
name: Install Rust
uses: ./
with:
components: clippy
cache: true
cache-workspaces: |-
./test-workspace
- run: cargo clippy
16 changes: 16 additions & 0 deletions test-workspace/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions test-workspace/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "ci"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde_as = "0.0.1"
3 changes: 3 additions & 0 deletions test-workspace/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit 922cc93

Please sign in to comment.