diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 2047816..18fc0dd 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: Check on: push: @@ -8,18 +8,26 @@ on: jobs: check-backend: + name: Backend runs-on: docker steps: - - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - uses: https://codeberg.org/wackbyte/rust-toolchain@trunk + - name: Install Rust + uses: https://codeberg.org/wackbyte/rust-toolchain@trunk with: toolchain: stable components: rustfmt, clippy - name: "Check Format" run: cargo fmt --check working-directory: backend + - name: "Build" + run: | + cargo build + cargo build --test + working-directory: backend - name: "Lint" run: | rustup component add clippy @@ -36,9 +44,11 @@ jobs: working-directory: backend check-frontend: + name: Frontend runs-on: docker steps: - - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - name: Install Node.js uses: actions/setup-node@v4 with: