From c58ed211c2210375d1a19deaa64bcf7379cd3701 Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Thu, 12 Jan 2023 14:37:01 +0000 Subject: [PATCH] chore: updated test workflow based on new test script --- .github/workflows/test.yml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index caa588a..297e5f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,17 +12,33 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out Git repository - uses: actions/checkout@v3 - - name: Use Node.js uses: actions/setup-node@v3 with: node-version: 16.x + + - name: Check out Git repository + uses: actions/checkout@v3 + with: + path: openapi-forge-javascript - name: Install Node.js dependencies - run: npm install + run: | + cd openapi-forge-javascript + npm install + + - name: Check out the openapi-forge generator + uses: actions/checkout@v3 + with: + repository: ScottLogic/openapi-forge + path: openapi-forge + + - name: Install openapi-forge dependencies + run: | + cd openapi-forge + npm install - - name: Test generator - run: npm run test:defaultPath - continue-on-error: true + - name: Run the tests + run: | + cd openapi-forge-javascript + npm test