Skip to content

Commit

Permalink
ci: test before release (#4)
Browse files Browse the repository at this point in the history
* ci: release needs test

* chore: remove local_cache from test.yml cache
  • Loading branch information
Anush008 authored Oct 10, 2023
1 parent 5bceafd commit 983dff2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,28 @@ on:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run tests
run: cargo test

release:
runs-on: ubuntu-latest
needs:
- test
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
local_cache/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run tests
run: cargo test
run: cargo test

0 comments on commit 983dff2

Please sign in to comment.