Skip to content

Commit 30abab4

Browse files
committed
chore: refactor workflows
1 parent 8a7b836 commit 30abab4

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.github/workflows/nodejs.yml renamed to .github/workflows/daily-project-check.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Node CI
1+
name: Daily project check
22

3-
on:
4-
push:
5-
pull_request:
3+
on:
64
schedule:
75
# build runs everyday at 6AM UTC
86
- cron: '0 6 * * *'

.github/workflows/project-check.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Project check
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [8.x, 10.x, 12.x]
15+
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: npm install, build, test:coverage and lint
24+
run: |
25+
npm i
26+
npm run release
27+
env:
28+
CI: true

0 commit comments

Comments
 (0)