Skip to content

Commit

Permalink
Add CI step to upload HTML test report as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
StarKhan6368 committed Oct 2, 2024
1 parent 5a4ef3f commit eed6833
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,28 @@ jobs:
# https://stackoverflow.com/questions/72648487/node-js-16-17-changed-resolution-of-localhost
- run: ${{ !startsWith(matrix.os, 'ubuntu') }} || sudo sed -i '/localhost/c\127.0.0.1 localhost' /etc/hosts
- run: ${{ !startsWith(matrix.os, 'macos') }} || sudo sed -i '' -e 's/.*localhost.*/127.0.0.1 localhost/g' /etc/hosts

- uses: actions/checkout@v4

- name: Set up JRE 17
uses: actions/setup-java@v4
with:
distribution: "temurin" # See 'Supported distributions' for available options
java-version: "17"
java-package: "jre"

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test

- name: Run npm install
run: npm install

- name: Run npm test
run: npm run test

- name: Upload HTML Test Report
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.node-version }}-html-report
path: build/reports/specmatic/html

0 comments on commit eed6833

Please sign in to comment.