From 8f44d137f54efba732a2f0de60a059f57316a526 Mon Sep 17 00:00:00 2001 From: hofer Date: Mon, 22 Jul 2024 16:06:02 -0400 Subject: [PATCH 1/5] Add build/test actions --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..dc92796 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose From 8ad7f515b5727febaa968fa65c857313001457e4 Mon Sep 17 00:00:00 2001 From: hofer Date: Mon, 22 Jul 2024 16:12:32 -0400 Subject: [PATCH 2/5] Add clippy action --- .github/workflows/precommit.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/precommit.yml diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml new file mode 100644 index 0000000..c622980 --- /dev/null +++ b/.github/workflows/precommit.yml @@ -0,0 +1,20 @@ +name: Test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Clippy + run: cargo clippy --all-targets --all-features -- -D clippy::all From 2bd069a0d8293478b427cf5ed99a2a9c9ae6a30a Mon Sep 17 00:00:00 2001 From: hofer Date: Mon, 22 Jul 2024 16:24:03 -0400 Subject: [PATCH 3/5] Allow failure --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dc92796..4c2ef38 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,5 +18,8 @@ jobs: - uses: actions/checkout@v4 - name: Build run: cargo build --verbose + continue-on-error: true - name: Run tests run: cargo test --verbose + continue-on-error: true + From e55176a0c0be5b4c22bb8cc782b42740cd583a13 Mon Sep 17 00:00:00 2001 From: hofer Date: Mon, 22 Jul 2024 16:24:40 -0400 Subject: [PATCH 4/5] No precommit --- .github/workflows/precommit.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/precommit.yml diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml deleted file mode 100644 index c622980..0000000 --- a/.github/workflows/precommit.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Test - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Clippy - run: cargo clippy --all-targets --all-features -- -D clippy::all From 145923aa089004787f3f36aacf497b4ff85d37b9 Mon Sep 17 00:00:00 2001 From: hofer Date: Mon, 22 Jul 2024 17:17:04 -0400 Subject: [PATCH 5/5] No build, only test --- .github/workflows/test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c2ef38..85ec038 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,9 +16,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - continue-on-error: true - name: Run tests run: cargo test --verbose continue-on-error: true