From 7686bcf4bff7f99efbbc3321ecb7111fdb34423b Mon Sep 17 00:00:00 2001 From: Jack Dockerty Date: Sat, 4 Nov 2023 18:53:35 +0000 Subject: [PATCH] add gha yaml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4c06740 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2 + - name: Format + run: cargo fmt --all --check + - name: Lint + run: cargo clippy -- -D warnings + - name: Build + run: cargo build + - name: Test + run: cargo test