diff --git a/.forgejo/workflows/uwu.yaml b/.forgejo/workflows/uwu.yaml index f3adda6..8037beb 100644 --- a/.forgejo/workflows/uwu.yaml +++ b/.forgejo/workflows/uwu.yaml @@ -1,4 +1,4 @@ -name: Rust Library Tests +name: Run Cargo Tests on: push: @@ -16,28 +16,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Set up Rust - uses: actions-rs/toolchain@v1 + - name: Set up Docker container + uses: addnab/docker-run-action@v3 with: - toolchain: stable - override: true - - - name: Cache cargo registry - uses: actions/cache@v2 - 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 + image: rust:latest + options: -v ${{ github.workspace }}:/workspace + run: | + cd /workspace + cargo test --lib