Skip to content

Commit

Permalink
Merge 636ec24 into 9e1b2cd
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Mar 27, 2024
2 parents 9e1b2cd + 636ec24 commit 67820b3
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 9 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: coverage

on:
push:
paths-ignore:
- '*.md'
pull_request:

env:
CI: true
NODE_ENV: cov

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
- uses: actions/checkout@v4
- run: npm install
- name: run coverage
run: npx -y c8 --reporter=lcov npm test
- name: codecov
uses: codecov/codecov-action@v3
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
21 changes: 19 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,34 @@ on:

jobs:
build:
runs-on: ubuntu-latest
needs: [ get-lts ]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
node:
- ${{ fromJson(needs.get-lts.outputs.active) }}
- 21
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Test
run: npm test

get-lts:
runs-on: ubuntu-latest
steps:
- id: get
uses: msimerson/node-lts-versions@v1
outputs:
lts: ${{ steps.get.outputs.lts }}
active: ${{ steps.get.outputs.active }}
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@
"punycode.es6.js"
],
"scripts": {
"test": "mocha tests",
"test": "npx mocha tests",
"build": "node scripts/prepublish.js"
},
"devDependencies": {
"codecov": "^3.8.3",
"nyc": "^15.1.0",
"mocha": "^10.2.0"
},
"jspm": {
"map": {
"./punycode.js": {
Expand Down

0 comments on commit 67820b3

Please sign in to comment.