ci: use actions/checkout for submodules also (#32) #13
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: Flagd Checks | |
on: | |
push: | |
paths: | |
- 'crates/flagd/**' | |
- '.github/workflows/flagd-check.yml' | |
pull_request: | |
paths: | |
- 'crates/flagd/**' | |
- '.github/workflows/flagd-check.yml' | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install protobuf compiler | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y protobuf-compiler | |
- name: Install cargo-msrv and cargo-readme | |
working-directory: crates/flagd | |
run: | | |
cargo install cargo-msrv --locked | |
cargo install cargo-readme | |
- name: Verify Minimum Supported Rust Version | |
working-directory: crates/flagd | |
run: cargo msrv verify | |
- name: Check README is up-to-date | |
working-directory: crates/flagd | |
run: | | |
cargo readme --no-title --no-license > README.md.generated | |
diff README.md README.md.generated | |