Merge pull request #169 from NobodyXu/add-ci

This commit is contained in:
Félix Saparelli 2022-06-09 09:38:22 +12:00 committed by GitHub
commit d0fed45ab5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 1 deletions

31
.github/workflows/ci.yml vendored Normal file
View 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

View file

@ -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()
},],
);