From 4f20a7632a3d4e928a5bf1c1f7e9ec5f69345d46 Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Thu, 11 Jul 2024 12:34:49 +0200 Subject: [PATCH] man nehme mir computer ab --- .forgejo/workflows/uwu.yaml | 41 +++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/.forgejo/workflows/uwu.yaml b/.forgejo/workflows/uwu.yaml index 8037beb..9b3d3f0 100644 --- a/.forgejo/workflows/uwu.yaml +++ b/.forgejo/workflows/uwu.yaml @@ -1,27 +1,32 @@ -name: Run Cargo Tests +name: Rust Library Test -on: - push: - branches: - - main - pull_request: - branches: - - main +on: [push, pull_request] jobs: test: runs-on: docker steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout code + run: | + docker run --rm \ + -v ${PWD}:/workspace \ + -w /workspace \ + alpine/git clone $CI_REPOSITORY_URL . - - name: Set up Docker container - uses: addnab/docker-run-action@v3 - with: - image: rust:latest - options: -v ${{ github.workspace }}:/workspace - run: | - cd /workspace - cargo test --lib + - 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"