From 8953a88abecc66ea7811766b46aff6a5fd767124 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Sat, 17 Sep 2022 12:42:10 -0700 Subject: [PATCH] Add first test workflow --- github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..a82ac61 --- /dev/null +++ b/github/workflows/test.yml @@ -0,0 +1,29 @@ +on: + push: + branches: [master] + pull_request: +name: cargo test +jobs: + test: + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} / ${{ matrix.toolchain }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + toolchain: [stable] + include: + - os: ubuntu-latest + toolchain: beta + - os: ubuntu-latest + toolchain: nightly + steps: + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.toolchain }} + - uses: actions/checkout@v2 + - name: cargo test + uses: actions-rs/cargo@v1 + with: + command: test