Skip to content

tests: migrate unit tests to Rust #41

tests: migrate unit tests to Rust

tests: migrate unit tests to Rust #41

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