add ci
This commit is contained in:
parent
7eec112acc
commit
af35dd30eb
29
.gitea/workflows/action.yml
Normal file
29
.gitea/workflows/action.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user