mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Merge pull request #169 from NobodyXu/add-ci
This commit is contained in:
commit
d0fed45ab5
2 changed files with 32 additions and 1 deletions
31
.github/workflows/ci.yml
vendored
Normal file
31
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
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: ubuntu-latest-stable-testing
|
||||
path: |
|
||||
${{ env.HOME }}/.cargo
|
||||
target
|
||||
- name: test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
|
@ -168,7 +168,7 @@ mod test {
|
|||
&[Product {
|
||||
name: Some("cargo-binstall".to_string()),
|
||||
path: Some("src/main.rs".to_string()),
|
||||
edition: Some(cargo_toml::Edition::E2018),
|
||||
edition: Some(cargo_toml::Edition::E2021),
|
||||
..Default::default()
|
||||
},],
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue