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/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 +