stoopid pt.2
Some checks failed
Run Cargo Tests / test (push) Failing after 8s

This commit is contained in:
xqtc161 2024-07-11 12:29:23 +02:00
parent ea871d0763
commit 85d3b85823

View file

@ -1,4 +1,4 @@
name: Rust Library Tests name: Run Cargo Tests
on: on:
push: push:
@ -16,28 +16,12 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Rust - name: Set up Docker container
uses: actions-rs/toolchain@v1 uses: addnab/docker-run-action@v3
with: with:
toolchain: stable image: rust:latest
override: true options: -v ${{ github.workspace }}:/workspace
run: |
- name: Cache cargo registry cd /workspace
uses: actions/cache@v2 cargo test --lib
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo build
uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build and test
run: cargo test --lib