From 2cee17f20085e07cd4b78b38a3c4e51e6e823eec Mon Sep 17 00:00:00 2001 From: Philip Kristoffersen Date: Sun, 19 Sep 2021 14:25:24 +0200 Subject: [PATCH] Add "Test on Push" github workflow --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 0000000..823234f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Test on Push + +on: + # Trigger the workflow on push or pull request, + # but only for the main branch + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test_Ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Rust Cache + uses: Swatinem/rust-cache@v1.3.0 + - name: Test + run: | + cargo test + + test_Windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - name: Rust Cache + id: rust_cache + uses: Swatinem/rust-cache@v1.3.0 + - name: Test + run: cargo test \ No newline at end of file