Skip to content

Commit

Permalink
Update webpack.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wz2cool authored May 18, 2024
1 parent 717a159 commit fb06f00
Showing 1 changed file with 42 additions and 21 deletions.
63 changes: 42 additions & 21 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,47 @@
on: ["push", "pull_request"]

name: Test Coveralls
name: Tests
on: [push, pull_request]
env:
CI: true

jobs:
test:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [14]
os: [ubuntu-latest]

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm install # switch to `npm ci` when Node.js 6 support is dropped

- uses: actions/checkout@v1

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: npm install, make test-coverage
run: |
npm install
npm run coveralls
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
github-token: ${{ github.token }}
- name: Run tests
run: npm run test

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit fb06f00

Please sign in to comment.