This repository has been archived by the owner on Jan 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Frazer Smith
committed
Dec 23, 2020
1 parent
644cd3b
commit 3e4e9ad
Showing
3 changed files
with
24 additions
and
13 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 |
---|---|---|
|
@@ -29,8 +29,8 @@ jobs: | |
- name: Run License Checker | ||
run: yarn license-checker | ||
|
||
build: | ||
name: Build | ||
unittests: | ||
name: Unit Tests | ||
if: github.event.pull_request.draft == false | ||
strategy: | ||
matrix: | ||
|
@@ -56,9 +56,21 @@ jobs: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel: true | ||
|
||
dockercomposetests: | ||
name: Docker Compose Build Tests | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build and Deploy App | ||
run: | | ||
cp .env.template .env.test | ||
NODE_ENV=test docker-compose up --detach | ||
# run: docker run --network container:obfuscation-service appropriate/curl -s --retry 10 --retry-connrefused 'http:https://localhost:8204?patient=https://fhir.nhs.uk/Id/nhs-number|9449304513&birthdate=1934-10-23&location=https://fhir.nhs.uk/Id/ods-organization-code|RA4&practitioner=https://sider.nhs.uk/auth|[email protected]' | ||
|
||
coverage: | ||
name: Aggregate Coverage Calculations | ||
needs: build | ||
needs: unittests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
|
@@ -69,7 +81,7 @@ jobs: | |
|
||
automerge: | ||
name: Automatically merge Dependabot pull requests | ||
needs: [lint, build] | ||
needs: [lint, unittests, dockercomposetests] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: fastify/github-action-merge-dependabot@v1 | ||
|
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
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,10 +1,11 @@ | ||
version: '3.8' | ||
services: | ||
app: | ||
container_name: obfuscation-service | ||
build: | ||
args: | ||
NODE_ENV: production | ||
NODE_ENV: $NODE_ENV | ||
context: . | ||
env_file: .env.production | ||
env_file: .env.${NODE_ENV} | ||
ports: | ||
- 127.0.0.1:${PORT:-8204}:${PORT:-8204} |