man nehme mir computer ab
Some checks failed
Rust Library Test / test (push) Failing after 8s

This commit is contained in:
xqtc161 2024-07-11 12:34:49 +02:00
parent 85d3b85823
commit 4f20a7632a

View file

@ -1,27 +1,32 @@
name: Run Cargo Tests name: Rust Library Test
on: on: [push, pull_request]
push:
branches:
- main
pull_request:
branches:
- main
jobs: jobs:
test: test:
runs-on: docker runs-on: docker
steps: steps:
- name: Checkout repository - name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker container
uses: addnab/docker-run-action@v3
with:
image: rust:latest
options: -v ${{ github.workspace }}:/workspace
run: | run: |
cd /workspace docker run --rm \
cargo test --lib -v ${PWD}:/workspace \
-w /workspace \
alpine/git clone $CI_REPOSITORY_URL .
- name: Set up Rust
run: |
docker run --rm \
-v ${PWD}:/workspace \
-w /workspace \
rust:latest \
sh -c "rustup update"
- name: Run tests
run: |
docker run --rm \
-v ${PWD}:/workspace \
-w /workspace \
rust:latest \
sh -c "cargo test --lib"