Removed Nix and the sample-main, added a CI/CD pipeline and updated the README.md
Some checks failed
Check, format and test / build (push) Failing after 49s
Some checks failed
Check, format and test / build (push) Failing after 49s
This commit is contained in:
31
.gitea/workflows/check-format-and-test.yaml
Normal file
31
.gitea/workflows/check-format-and-test.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Check, format and test
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
container: docker.io/rust:1.79.0-alpine3.20
|
||||
steps:
|
||||
- name: Install the dependencies
|
||||
run: |
|
||||
rustup component add clippy rustfmt &&
|
||||
apk update &&
|
||||
apk add musl-dev git npm
|
||||
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Check if the code compiles
|
||||
run: cargo check
|
||||
|
||||
- name: Check if the tests run correctly
|
||||
run: cargo test
|
||||
|
||||
- name: Check if the code is formatted correctly
|
||||
run: cargo fmt --check
|
||||
|
||||
- name: Check if Clippy has someting to say
|
||||
run: cargo clippy --all-targets
|
Reference in New Issue
Block a user