Skip to content

Merge pull request #9 from flatcar/dongsu/rust-tests #42

Merge pull request #9 from flatcar/dongsu/rust-tests

Merge pull request #9 from flatcar/dongsu/rust-tests #42

Workflow file for this run

name: Run Rust CI
on:
push:
branches:
- flatcar-master
pull_request:
branches:
- flatcar-master
jobs:
build-test:
name: Build and test update-ssh-keys
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- name: Rustfmt Check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check
- name: Build update-ssh-keys
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose
- name: Run unit tests of update-ssh-keys
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose