Ensure rustfmt check passes #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check formatting with rustfmt | |
run-name: Ensure rustfmt check passes | |
on: [push] | |
jobs: | |
Check-Formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- run: sudo apt-get update && sudo apt-get install -y rustfmt | |
- name: vpn-types subcrate | |
run: rustfmt --edition 2021 --check types/src/lib.rs | |
- name: vpn-operator subcrate | |
run: rustfmt --edition 2021 --check operator/src/main.rs |