Skip to content

Commit d6f496e

Browse files
authored
Merge pull request #33 from NHSDigital/APM-6142
APM-6142
2 parents 4d0bf87 + 735baa6 commit d6f496e

File tree

10 files changed

+287
-34
lines changed

10 files changed

+287
-34
lines changed

.github/workflows/pr-lint.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,15 @@ jobs:
3434
- name: Checkout
3535
uses: actions/checkout@v3
3636

37-
- name: Vacuum OpenAPI Spec linter
38-
uses: eduelias/[email protected]
37+
- name: Cache node modules
38+
uses: actions/cache@v4
3939
with:
40-
cmd: vacuum lint -d --base specification/ specification/proxygen.yaml
41-
40+
path: ~/.npm
41+
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
42+
43+
- name: Install repo
44+
run: make install
45+
46+
- name: Vacuum OpenAPI Spec linter
47+
run: make lint
48+

.github/workflows/publish-uat.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ jobs:
1212
- name: Set OAS info.version to ${{ github.ref_name}}-${{github.sha}}
1313
run: sed -i 's/__VERSION__/${{ github.ref_name}}-${{github.sha}}/g' specification/proxygen.yaml
1414

15-
- name: Vacuum OpenAPI Spec linter
16-
uses: eduelias/[email protected]
15+
- name: Cache node modules
16+
uses: actions/cache@v4
1717
with:
18-
cmd: vacuum lint -d --base specification/ specification/proxygen.yaml
18+
path: ~/.npm
19+
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
20+
21+
- name: Install repo
22+
run: make install
23+
24+
- name: Vacuum OpenAPI Spec linter
25+
run: make lint
1926

2027
- name: Setup proxygen-cli
2128
env:

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ jobs:
2525
- name: Set OAS info.version to ${{ env.SPEC_VERSION }}
2626
run: sed -i 's/__VERSION__/${{ env.SPEC_VERSION }}/g' specification/proxygen.yaml
2727

28-
- name: Vacuum OpenAPI Spec linter
29-
uses: eduelias/[email protected]
28+
- name: Cache node modules
29+
uses: actions/cache@v4
3030
with:
31-
cmd: vacuum lint -d --base specification/ specification/proxygen.yaml
31+
path: ~/.npm
32+
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
33+
34+
- name: Install repo
35+
run: make install
36+
37+
- name: Vacuum OpenAPI Spec linter
38+
run: make lint
3239

3340
- name: Create Release ${{ env.SPEC_VERSION }}
3441
uses: softprops/action-gh-release@v1

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,6 @@ cython_debug/
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161161
/.vs
162+
163+
164+
node_modules/

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
install:
2-
curl -fsSL https://quobix.com/scripts/install_vacuum.sh | sh > /dev/null
1+
# BIN directory
2+
BIN := $(THIS_DIR)/node_modules/.bin
3+
4+
# Path
5+
PATH := node_modules/.bin:$(PATH)
6+
SHELL := /bin/bash
7+
8+
install-node:
9+
npm install
10+
11+
install: install-node
312

413
lint:
514
vacuum lint -d --base specification/ specification/proxygen.yaml

package-lock.json

Lines changed: 208 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "proxygen-api-specification",
3+
"version": "0.0.1",
4+
"description": "Proxygen API Specification",
5+
"dependencies": {
6+
"@quobix/vacuum": "^0.16.1"
7+
}
8+
}

poetry.lock

Lines changed: 24 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
python = "^3.9"
1111

1212
[tool.poetry.group.dev.dependencies]
13-
gitpython = "^3.1.31"
13+
gitpython = "^3.1.32"
1414
semver = "^3.0.1"
1515

1616
[build-system]

0 commit comments

Comments
 (0)