From 2ea03f6b29a5a0e9945704b027495cdde22b503f Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 9 Jun 2022 01:44:31 +1000 Subject: [PATCH] Add new workflow "ci" to run `cargo-test` Signed-off-by: Jiahao XU --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..13143e9c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: Rust + +on: + push: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: test + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Configure toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Configure caching + uses: actions/cache@v2 + with: + key: ${{ matrix.os }}-${{ matrix.target }}-testing + path: | + ${{ env.HOME }}/.cargo + target + - name: test + uses: actions-rs/cargo@v1 + with: + command: test