From af35dd30eb835944caf81a4a3f1ecb0476d8d66b Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 26 Jan 2024 16:54:15 +0100 Subject: [PATCH] add ci --- .gitea/workflows/action.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/action.yml diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml new file mode 100644 index 0000000..eacd906 --- /dev/null +++ b/.gitea/workflows/action.yml @@ -0,0 +1,29 @@ +name: CI/CD Pipeline + +on: push + +jobs: + test: + runs-on: ubuntu-latest + container: rust:latest + steps: + - uses: actions/checkout@v3 + - name: Run Test DB Script + run: ./test_db.sh + + - name: Set up cargo cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo-debug- + + - name: Build + run: cargo build + - name: Tests + run: cargo test --verbose