Skip to content

Commit 468f029

Browse files
committedFeb 13, 2021
Use ghat to set up github workflows
1 parent 9739fed commit 468f029

File tree

4 files changed

+37
-27
lines changed

4 files changed

+37
-27
lines changed
 

‎.github/workflows/ci.yml

-27
This file was deleted.

‎.github/workflows/gh-publish.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
env: {}
2+
3+
# FILE GENERATED WITH: npx ghat voxpelli/ghatemplates/gh-publish
4+
# SOURCE: https://github.com/voxpelli/ghatemplates
5+
16
name: Node.js Package
27

38
on:

‎.github/workflows/npm-test.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
env: {}
2+
3+
# FILE GENERATED WITH: npx ghat voxpelli/ghatemplates/npm-test
4+
# SOURCE: https://github.com/voxpelli/ghatemplates
5+
# OPTIONS: {"set":["jobs.test.strategy.matrix.node_version=[12]"]}
6+
7+
name: Test
8+
on:
9+
- push
10+
- pull_request
11+
jobs:
12+
test:
13+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
node_version:
19+
- 12
20+
os:
21+
- ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Use Node.js ${{ matrix.node_version }}
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: ${{ matrix.node_version }}
28+
- run: npm install
29+
- run: npm run build --if-present
30+
- run: npm test

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"repos-all": "VP_ESLINT_TESTER_ALL=true eslint-remote-tester",
1717
"repos-almost": "VP_ESLINT_TESTER_ALMOST=true eslint-remote-tester",
1818
"repos-current": "eslint-remote-tester",
19+
"sync-gh-actions": "ghat",
1920
"test": "installed-check -i eslint && eslint . && eslint-remote-tester"
2021
},
2122
"husky": {
@@ -37,6 +38,7 @@
3738
"eslint-plugin-security": "^1.4.0",
3839
"eslint-plugin-unicorn": "^28.0.0",
3940
"eslint-remote-tester": "^1.1.0",
41+
"ghat": "^0.14.0",
4042
"husky": "^4.3.8",
4143
"installed-check": "^4.0.0"
4244
},

0 commit comments

Comments
 (0)
Please sign in to comment.