wip: add code to have cargo generate mock data #16
Workflow file for this run
This file contains hidden or 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: linters | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| clippy: | |
| name: clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - run: | | |
| git clone --depth=1 https://github.com/oxidecomputer/pki-playground | |
| cargo install --path pki-playground | |
| git clone --depth=1 https://github.com/oxidecomputer/dice-util | |
| cargo install --path dice-util/attest-mock | |
| - run: cargo clippy -- --deny warnings | |
| format: | |
| name: rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --check | |
| shellcheck: | |
| name: Run ShellCheck | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # Required to checkout the repository | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Run ShellCheck | |
| uses: ludeeus/action-shellcheck@master |