Skip to content

Commit

Permalink
Update test-live-uk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wardle committed Sep 21, 2023
1 parent 13b6fd5 commit a7102fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test-live-uk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: clojure -M:dev:check

- name: Create TRUD cache directory
run: mkdir trudcache
run: mkdir download

- name: Write out TRUD API key from secrets
run: echo ${{ secrets.TRUD_API_KEY }} >> api-key.txt
Expand All @@ -45,18 +45,18 @@ jobs:
uses: actions/cache@v3
with:
path: snomed.db
key: ${{ runner.os }}-uk-db
key: ${{ github.sha }}-uk-db

- name: Install latest distributions for the UK
if: steps.cache-db.outputs.cache-hit != 'true'
run: clojure -M:run --db snomed.db install uk.nhs/sct-clinical uk.nhs/sct-drug-ext --api-key api-key.txt --cache-dir trudcache
run: clojure -M:run --db snomed.db install uk.nhs/sct-clinical uk.nhs/sct-drug-ext --api-key api-key.txt --cache-dir download

- name: Remove downloaded files
run: rm -rf trudcache
run: rm -rf download

- name: Index and compact database
- name: Index database
if: steps.cache-db.outputs.cache-hit != 'true'
run: clojure -M:run --db snomed.db index compact
run: clojure -M:run --db snomed.db index

- name: Print status report
run: clojure -M:run --db snomed.db status
Expand Down

0 comments on commit a7102fb

Please sign in to comment.