cargo-binstall/.github/workflows/ci.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 16: cannot unmarshal !!seq into model.Job
Jiahao XU 2ea03f6b29
Add new workflow "ci" to run cargo-test
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-09 01:44:31 +10:00

32 lines
580 B
YAML

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