feat: adds anatomical site to sample #274
Workflow file for this run
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: Specification | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
matches: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update Rust | |
run: rustup update nightly && rustup default nightly | |
- run: cargo run --release --bin ccdi-generate > current-swagger.yml | |
- run: | | |
if ! cmp -s swagger.yml current-swagger.yml; then | |
echo "You need to update the specification!" | |
exit 1 | |
fi | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "latest" | |
- name: Install spectral | |
run: npm install -g @stoplight/spectral-cli | |
- run: spectral lint swagger.yml |