Skip to content

Commit ee7da1d

Browse files
committed
test: salvage old examples into regression suite
Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent ae151b7 commit ee7da1d

101 files changed

Lines changed: 30017 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 35 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- lint
3939
- format
4040
- examples
41+
- regression
4142

4243
steps:
4344
- name: Failed
@@ -85,6 +86,39 @@ jobs:
8586
- name: Format
8687
run: npm run format
8788

89+
build:
90+
name: Package Pact JS
91+
runs-on: ubuntu-latest
92+
93+
steps:
94+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
95+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
96+
with:
97+
node-version: ${{ env.STABLE_NODE_VERSION }}
98+
cache: npm
99+
- run: npm ci
100+
- run: npm run dist
101+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
102+
with:
103+
name: dist
104+
path: dist
105+
106+
regression:
107+
name: Run regression suite
108+
runs-on: ubuntu-latest
109+
110+
steps:
111+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
112+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
113+
with:
114+
node-version: ${{ env.STABLE_NODE_VERSION }}
115+
cache: npm
116+
- run: npm ci
117+
- run: npm ci
118+
working-directory: regression
119+
- run: npm run test
120+
working-directory: regression
121+
88122
test-x86:
89123
name: >-
90124
Test x86_64
@@ -211,40 +245,13 @@ jobs:
211245
node:${{ matrix.node-version }}-alpine \
212246
sh -c "npm ci && npm test"
213247
214-
examples-prep:
215-
name: Package Pact JS for examples
216-
217-
runs-on: ubuntu-latest
218-
219-
steps:
220-
- name: Checkout
221-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
222-
223-
- name: Setup Node.js ${{ env.STABLE_NODE_VERSION }}
224-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
225-
with:
226-
node-version: ${{ env.STABLE_NODE_VERSION }}
227-
cache: npm
228-
229-
- name: Install dependencies
230-
run: npm ci
231-
232-
- name: Build
233-
run: npm run dist
234-
235-
- name: Upload dist folder
236-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
237-
with:
238-
name: dist
239-
path: dist
240-
241248
examples:
242249
name: >-
243250
Test Examples
244251
245252
runs-on: ubuntu-latest
246253
needs:
247-
- examples-prep
254+
- build
248255

249256
strategy:
250257
fail-fast: false

0 commit comments

Comments
 (0)