Skip to content

Commit 1e8deae

Browse files
NHSO-0000: Fix poetry.
1 parent d6cc13a commit 1e8deae

File tree

5 files changed

+1956
-1036
lines changed

5 files changed

+1956
-1036
lines changed

.github/workflows/build.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Build
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
14+
15+
- name: Install Python 3.8
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: 3.8
19+
20+
- name: Update apt repositories
21+
run: sudo apt update
22+
23+
- name: Install Java
24+
run: sudo apt-get install --yes default-jre default-jdk
25+
26+
- name: Install node
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y ca-certificates curl gnupg
30+
sudo mkdir -p /etc/apt/keyrings
31+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
32+
NODE_MAJOR=20
33+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
34+
35+
- name: Upgrade python packaging tools
36+
run: python -m pip install --upgrade pip setuptools wheel
37+
38+
- name: Install poetry
39+
run: pip install poetry
40+
41+
- name: Cache poetry packages
42+
uses: actions/cache@v4
43+
with:
44+
path: ~/.cache/pypoetry
45+
key: ${{ runner.os }}-build-cache-poetry-packages-${{ hashFiles('**/poetry.lock') }}
46+
47+
- name: Cache node modules
48+
uses: actions/cache@v4
49+
with:
50+
path: ~/.npm
51+
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
52+
53+
- name: Install repo
54+
run: make install
55+
56+
- name: Test sandbox server
57+
run: |
58+
cd sandbox
59+
npm run test
60+
61+
- name: Check licenses
62+
run: make check-licenses
63+
64+
- name: Lint
65+
run: make lint
66+
67+
- name: Static analysis
68+
env:
69+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
70+
run: make static-analysis
71+
72+
- name: Compile spec
73+
run: make publish
74+
75+
- name: Generate release
76+
run: make release

0 commit comments

Comments
 (0)