Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/medcat-trainer_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,35 @@
cd client
python -m build


test-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: |
cd webapp/frontend
npm ci

- name: Run frontend tests
run: |
cd webapp/frontend
npm run test:unit


# Build and test webapp container
build-and-push:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest
needs: test-client
needs:
- test-client
- test-frontend
steps:
- name: Checkout main
uses: actions/checkout@v5
Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/medcat-trainer_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: medcat-trainer qa-build
on:
push:
branches: [ main ]
workflow_dispatch: #TODO Remove after testing

permissions:
id-token: write
Expand Down Expand Up @@ -55,10 +56,33 @@ jobs:
repository_url: https://test.pypi.org/legacy/
packages_dir: medcat-trainer/client/dist

test-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: |
cd webapp/frontend
npm ci

- name: Run frontend tests
run: |
cd webapp/frontend
npm run test:unit

# Build and test webapp container
build-and-push:
runs-on: ubuntu-latest
needs: test-client
needs:
- test-client
- test-frontend
steps:
- name: Checkout main
uses: actions/checkout@v5
Expand Down
Loading