diff --git a/.github/workflows/rust.yml b/.github/workflows/release.yml similarity index 100% rename from .github/workflows/rust.yml rename to .github/workflows/release.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ed39f14 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Tests + +on: + push: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features + formatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Formatting + uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/cargo@v1 + with: + command: test