Skip to content

Commit

Permalink
Merge pull request #245 from iambumblehead/reduce-workflow-loc
Browse files Browse the repository at this point in the history
Reduce workflow loc
  • Loading branch information
iambumblehead authored Sep 17, 2023
2 parents b1170a0 + 03349a8 commit 90e3e57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,21 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
timeout-minutes: 12
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 20
# - run: npm install -g npm@latest
- run: npm install
- run: npm run build --if-present
- run: |
{ PER=$(npm run test-cover | tee /dev/fd/3 | grep -oP "All\ files[^\d]*(\d\d?\.?\d?\d?)" | grep -oP "(\d\d?\.?\d?\d?)$"); } 3>&1
echo "COVERAGE=$PER%" >> $GITHUB_ENV
# var REF = 'refs/pull/27/merge.json';
# var REF = 'refs/pull/27/merge.json';
REF=${{ github.ref }}
# console.log('github.ref: ' + REF);
echo "github.ref: $REF"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@ jobs:
- run: npm run build --if-present
- run: npm run test-ci

# publish-npm:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: 16
# registry-url: https://registry.npmjs.org/
# - run: npm install
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ await esmock(
`esmock` examples
``` javascript
import test from 'node:test'
import assert from 'node:assert/strict'
import assert from 'node:assert'
import esmock from 'esmock'

test('package, alias and local file mocks', async () => {
Expand Down

0 comments on commit 90e3e57

Please sign in to comment.