-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds anatomical site to sample
- Loading branch information
1 parent
8b0bbd5
commit 1672966
Showing
14 changed files
with
102,587 additions
and
36 deletions.
There are no files selected for viewing
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
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-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 |
Oops, something went wrong.