diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe36500..98c5424 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8717f42..02b4eca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file + run: cargo test