Skip to content

Commit 1352c46

Browse files
chore: updated test workflow
1 parent fd0297a commit 1352c46

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,33 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Check out Git repository
16-
uses: actions/checkout@v3
17-
1815
- name: Use Node.js
1916
uses: actions/setup-node@v3
2017
with:
2118
node-version: 16.x
19+
20+
- name: Check out Git repository
21+
uses: actions/checkout@v3
22+
with:
23+
path: openapi-forge-typescript
2224

2325
- name: Install Node.js dependencies
24-
run: npm install
26+
run: |
27+
cd openapi-forge-typescript
28+
npm install
2529
26-
- name: Install Forge
30+
- name: Check out the openapi-forge generator
31+
uses: actions/checkout@v3
32+
with:
33+
repository: ScottLogic/openapi-forge
34+
path: openapi-forge
35+
36+
- name: Install openapi-forge dependencies
2737
run: |
28-
cd ..
29-
git clone https://github.com/ScottLogic/openapi-forge.git
3038
cd openapi-forge
3139
npm install
32-
npm install -g
3340
34-
- name: Test generator
35-
run: npm run test:defaultPath
36-
continue-on-error: true
41+
- name: Run the tests
42+
run: |
43+
cd openapi-forge-typescript
44+
npm test

0 commit comments

Comments
 (0)