Skip to content

Commit dffc393

Browse files
authored
Merge branch 'master' into feature/authentication-authority-validation
2 parents 33cb0c3 + 3f7c12f commit dffc393

File tree

8 files changed

+69
-16
lines changed

8 files changed

+69
-16
lines changed

.github/workflows/quick-test.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Code Tests
22

33
on:
4-
# This does not run on push to master, as tests will instead be run there as
5-
# part of the test-and-publish workflow.
4+
push:
5+
branches: [ master ]
66
pull_request:
77
branches: [ master ]
88

@@ -20,5 +20,9 @@ jobs:
2020
node-version: 18.17.1
2121
- name: Install OpenActive Test Suite
2222
run: npm install
23+
- name: Check licenses of all dependencies are at least permissive
24+
run: |
25+
npx npm-reflect install --test
26+
for dir in ./packages/*; do (cd "$dir" && npx npm-reflect install --test); done
2327
- name: Run Checks on the Code (Test the Tests!)
2428
run: npm test

.github/workflows/test-and-publish.yml

+20-14
Original file line numberDiff line numberDiff line change
@@ -91,27 +91,33 @@ jobs:
9191
npm install
9292
working-directory: tests
9393

94-
- name: Install specific version of data-models ${{ inputs.data-models_ref }}
94+
- name: Broker microservice - Install specific version of data-models ${{ inputs.data-models_ref }}
9595
if: ${{ inputs.data-models_ref }}
96-
run: |
97-
cd packages/openactive-broker-microservice && npm install github:openactive/data-models#${{ inputs.data-models_ref }}
98-
cd packages/openactive-integration-tests && npm install github:openactive/data-models#${{ inputs.data-models_ref }}
99-
working-directory: tests
96+
working-directory: tests/packages/openactive-broker-microservice
97+
run: npm install github:openactive/data-models#${{ inputs.data-models_ref }}
10098

101-
- name: Install specific version of data-model-validator ${{ inputs.data-model-validator_ref }}
99+
- name: Broker microservice - Install specific version of data-model-validator ${{ inputs.data-model-validator_ref }}
102100
if: ${{ inputs.data-model-validator_ref }}
103-
run: |
104-
cd packages/openactive-broker-microservice && npm install github:openactive/data-model-validator#${{ inputs.data-model-validator_ref }}
105-
cd packages/openactive-integration-tests && npm install github:openactive/data-model-validator#${{ inputs.data-model-validator_ref }}
106-
working-directory: tests
101+
working-directory: tests/packages/openactive-broker-microservice
102+
run: npm install github:openactive/data-model-validator#${{ inputs.data-model-validator_ref }}
107103

108-
- name: Install specific version of rpde-validator ${{ inputs.rpde-validator_ref }}
104+
- name: Broker microservice - Install specific version of rpde-validator ${{ inputs.rpde-validator_ref }}
109105
if: ${{ inputs.rpde-validator_ref }}
110-
run: |
111-
cd packages/openactive-broker-microservice && npm install github:openactive/rpde-validator#${{ inputs.rpde-validator_ref }}
112-
working-directory: tests
106+
working-directory: tests/packages/openactive-broker-microservice
107+
run: npm install github:openactive/rpde-validator#${{ inputs.rpde-validator_ref }}
113108

109+
- name: Integration tests - Install specific version of data-models ${{ inputs.data-models_ref }}
110+
if: ${{ inputs.data-models_ref }}
111+
working-directory: tests/packages/openactive-integration-tests
112+
run: npm install github:openactive/data-models#${{ inputs.data-models_ref }}
113+
114+
- name: Integration tests - Install specific version of data-model-validator ${{ inputs.data-model-validator_ref }}
115+
if: ${{ inputs.data-model-validator_ref }}
116+
working-directory: tests/packages/openactive-integration-tests
117+
run: npm install github:openactive/data-model-validator#${{ inputs.data-model-validator_ref }}
118+
114119
- name: Run Checks on the Code (Test the Tests!)
120+
if: ${{ inputs.data-models_ref || inputs.data-model-validator_ref || inputs.rpde-validator_ref }}
115121
run: npm test
116122
working-directory: tests
117123

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "OpenActive Test Suite",
55
"private": true,
66
"main": "start.js",
7+
"license": "MIT",
78
"scripts": {
89
"start": "node start.js",
910
"debug": "node --inspect start.js -- --runInBand",
@@ -57,5 +58,12 @@
5758
"hooks": {
5859
"pre-commit": "npm run gen-and-git-add-everything"
5960
}
61+
},
62+
"config": {
63+
"allowedLicenseTypes": [
64+
"permissive",
65+
"publicDomain",
66+
"uncategorized"
67+
]
6068
}
6169
}

packages/openactive-broker-microservice/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,12 @@
7676
},
7777
"engines": {
7878
"node": "18.17.1"
79+
},
80+
"config": {
81+
"allowedLicenseTypes": [
82+
"permissive",
83+
"publicDomain",
84+
"uncategorized"
85+
]
7986
}
8087
}

packages/openactive-integration-tests/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,12 @@
7878
},
7979
"engines": {
8080
"node": "18.17.1"
81+
},
82+
"config": {
83+
"allowedLicenseTypes": [
84+
"permissive",
85+
"publicDomain",
86+
"uncategorized"
87+
]
8188
}
8289
}

packages/openactive-openid-browser-automation/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,12 @@
3232
},
3333
"engines": {
3434
"node": "18.17.1"
35+
},
36+
"config": {
37+
"allowedLicenseTypes": [
38+
"permissive",
39+
"publicDomain",
40+
"uncategorized"
41+
]
3542
}
3643
}

packages/openactive-openid-client/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
},
3131
"engines": {
3232
"node": "18.17.1"
33+
},
34+
"config": {
35+
"allowedLicenseTypes": [
36+
"permissive",
37+
"publicDomain",
38+
"uncategorized"
39+
]
3340
}
3441
}

packages/openactive-openid-test-cli/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,12 @@
3333
},
3434
"engines": {
3535
"node": "18.17.1"
36+
},
37+
"config": {
38+
"allowedLicenseTypes": [
39+
"permissive",
40+
"publicDomain",
41+
"uncategorized"
42+
]
3643
}
3744
}

0 commit comments

Comments
 (0)