diff options
author | Colin Walters <walters@verbum.org> | 2021-03-17 17:23:47 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2021-03-17 19:37:21 +0000 |
commit | 26166bb8e360927a0ff3eade91a5a687f1f8deaa (patch) | |
tree | 90bee8d4c2cc4119d2ae69508d00c046186c2656 /.github/workflows | |
parent | c52a2ff52e1d495255c03214e3bb703781e739aa (diff) | |
download | ostree-26166bb8e360927a0ff3eade91a5a687f1f8deaa.tar.gz |
ci: Add a Github Action for Rust for tests/inst
Let's dip our toes in GH Actions (specifically aiming to migrate
away from Travis).
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/tests.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..42eaac83 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +--- +name: Rust +on: + push: + branches: [master] + pull_request: + branches: [master] + +env: + CARGO_TERM_COLOR: always + ACTIONS_LINTS_TOOLCHAIN: 1.50.0 + +jobs: + linting: + name: "Lints, pinned toolchain" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }} + default: true + components: rustfmt, clippy + - name: cargo fmt (check) + run: cd tests/inst && cargo fmt -- --check -l |