Skip to content

Commit

Permalink
ci(github-actions): update github actions to use npm instead of yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Masquerade-Circus committed Dec 28, 2022
1 parent 2b47307 commit 17f20a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,17 @@ jobs:
name: "Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Borales/[email protected]
name: "Install"
- uses: actions/checkout@v3
- name: "Use Node.js 18.x"
uses: actions/setup-node@v3
with:
cmd: install
- uses: Borales/[email protected]
name: "Test"
with:
cmd: test
node-version: 18.x
- run: npm run test
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && success()
uses: Borales/[email protected]
name: "Coverage report"
uses: actions/setup-node@v3
with:
cmd: coverage
node-version: 18.x
- run: npm run coverage
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && success()
name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"dev:web": "browser-sync start --config 'www/bs-config.js'",
"build": "npm run build:source && npm run remark",
"build:source": "cross-env NODE_ENV=production node source.js",
"test": "cross-env NODE_ENV=development nyc mocha --forbid-only --timeout 15000 --require ./register --exit \"test/**/*_test.js\"",
"test": "cross-env NODE_ENV=development nyc mocha --forbid-only --timeout 15000 --slow 0 --require ./register --enable-source-maps --exit \"test/**/*_test.js\"",
"coverage": "nyc report --reporter=lcov",
"remark": "remark . -o",
"commit": "git add . && git-cz",
Expand Down Expand Up @@ -210,4 +210,4 @@
]
}
}
}
}

0 comments on commit 17f20a1

Please sign in to comment.