Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiKillertO committed Aug 14, 2023
1 parent 2d9a311 commit c1837ec
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/main.yml
Expand Up @@ -20,12 +20,13 @@ jobs:

test:
needs: lint
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: ["14", "16", "18", "20"]
os: [macos-latest, ubuntu-latest]
# os: [macos-latest, ubuntu-latest]

# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
Expand All @@ -35,13 +36,23 @@ jobs:
npm-version: "9"
- run: npm ci
- run: npm run coverage
- run: |
mv coverage/dom-utils/cobertura-coverage.xml coverage/dom-utils/dom-utils-cobertura-coverage.xml
mv coverage/html-parser/cobertura-coverage.xml coverage/html-parser/html-parser-cobertura-coverage.xml

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: packages
files: coverage/dom-utils/dom-utils-cobertura-coverage.xml coverage/html-parser/html-parser-cobertura-coverage.xml coverage/linthtml/cobertura-coverage.xml
base-path: .
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
files: coverage/dom-utils/cobertura-coverage.xml coverage/html-parser/cobertura-coverage.xml coverage/linthtml/cobertura-coverage.xml

finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-14,run-16,run-18,run-20"

0 comments on commit c1837ec

Please sign in to comment.