Merge pull request #47 from bottlerocket-os/tools-install #101
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: Rust | |
on: | |
# triggers when a PR is posted | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- "**.md" | |
- "**.plantuml" | |
- "**.svg" | |
# triggers when a PR is merged | |
push: | |
branches: [develop] | |
paths-ignore: | |
- "**.md" | |
- "**.plantuml" | |
- "**.svg" | |
jobs: | |
build: | |
runs-on: | |
group: bottlerocket | |
labels: bottlerocket_ubuntu-latest_16-core | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo build --locked | |
- run: cargo test --locked | |
- run: cargo fmt -- --check | |
- run: cargo clippy --locked -- -D warnings --no-deps |