From 3221fccd18f6d236c49605b174a02089dd496770 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Sun, 8 Dec 2019 20:57:33 +0200 Subject: [PATCH] Add Github actions (#274) --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 00000000..29b09b39 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: CI + +on: [push] + +jobs: + build: + strategy: + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + components: rustfmt, clippy + - uses: actions-rs/cargo@v1.0.1 + name: Check format + with: + command: fmt + args: --all -- --check + - uses: actions-rs/cargo@v1.0.1 + name: Run clippy + with: + command: clippy + args: --all-targets -- -D warnings + - uses: actions-rs/cargo@v1.0.1 + name: Run clippy (All features) + with: + command: clippy + args: --all-targets --all-features -- -D warnings + - uses: actions-rs/cargo@v1.0.1 + name: Run tests + with: + command: test +