From 231cb2d104d3a934e8f4427f8aefa5f07d661689 Mon Sep 17 00:00:00 2001 From: Andrew Lilley Brinker Date: Wed, 1 May 2024 10:31:23 -0700 Subject: [PATCH 1/2] feat: Added basic CI testing. This commit adds CI testing, specifically builds, testing, and linting. Signed-off-by: Andrew Lilley Brinker --- .../{ => workflows}/conventional-commits.yml | 0 .github/{ => workflows}/dependabot.yml | 0 .github/workflows/test.yml | 33 +++++++++++++++++++ 3 files changed, 33 insertions(+) rename .github/{ => workflows}/conventional-commits.yml (100%) rename .github/{ => workflows}/dependabot.yml (100%) create mode 100644 .github/workflows/test.yml diff --git a/.github/conventional-commits.yml b/.github/workflows/conventional-commits.yml similarity index 100% rename from .github/conventional-commits.yml rename to .github/workflows/conventional-commits.yml diff --git a/.github/dependabot.yml b/.github/workflows/dependabot.yml similarity index 100% rename from .github/dependabot.yml rename to .github/workflows/dependabot.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..4e93af2f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +env: + RUSTFLAGS: -Dwarnings + CARGO_TERM_COLOR: always + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + name: "Test (${{ matrix.os }})" + runs-on: ${{ matrix.os }} + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - name: Build + run: cargo build --verbose + - name: Test + run: cargo test --verbose + - name: Lint + run: cargo clippy --verbose + From 7416d09dd802508f3cd4169f72be791de0b23a9c Mon Sep 17 00:00:00 2001 From: Andrew Lilley Brinker Date: Wed, 1 May 2024 10:33:58 -0700 Subject: [PATCH 2/2] fix: Move dependabot config back to .github folder This commit moves the dependabot config back to the .github folder instead of .github/workflows. Signed-off-by: Andrew Lilley Brinker --- .github/{workflows => }/dependabot.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => }/dependabot.yml (100%) diff --git a/.github/workflows/dependabot.yml b/.github/dependabot.yml similarity index 100% rename from .github/workflows/dependabot.yml rename to .github/dependabot.yml