From f3fb7d402bbfca251369e080246ca6acaffef28a Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 6 Jan 2024 09:59:10 +0100 Subject: [PATCH] Add ci workflow --- .gitea/images/Dockerfile | 4 ++++ .gitea/workflows/gitea-ci.yaml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .gitea/images/Dockerfile create mode 100644 .gitea/workflows/gitea-ci.yaml diff --git a/.gitea/images/Dockerfile b/.gitea/images/Dockerfile new file mode 100644 index 0000000..f64845e --- /dev/null +++ b/.gitea/images/Dockerfile @@ -0,0 +1,4 @@ +FROM docker.io/library/rust:1.75 + +RUN apt-get update && apt-get install -y \ + nodejs diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml new file mode 100644 index 0000000..e146575 --- /dev/null +++ b/.gitea/workflows/gitea-ci.yaml @@ -0,0 +1,19 @@ +name: Cargo Build and Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Build and Test + container: docker.io/drrobot/musichoard-ci:latest + steps: + - uses: actions/checkout@v3 + - run: cargo build --verbose --all-features --all-targets + - run: cargo test --verbose --all-features --all-targets