Skip to content

Commit

Permalink
feat: adds anatomical site to sample
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Nov 6, 2024
1 parent 8b0bbd5 commit 117782b
Show file tree
Hide file tree
Showing 14 changed files with 117,077 additions and 36 deletions.
48 changes: 28 additions & 20 deletions .github/workflows/specification.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
name: Specification

on:
push:
branches:
- main
paths:
- 'swagger.yml'
pull_request:
paths:
- 'swagger.yml'

on:
push:
branches:
- main
pull_request:

jobs:
lint:
runs-on: ubuntu-22.04
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
matches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update nightly && rustup default nightly
- run: cd packages && cargo run --release --bin ccdi-spec 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
Loading

0 comments on commit 117782b

Please sign in to comment.