Skip to content

Commit 552a1fd

Browse files
committed
test: add github actions project check
1 parent eaca895 commit 552a1fd

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Daily project check
2+
3+
on:
4+
schedule:
5+
# build runs every weekday at 6AM UTC
6+
- cron: '0 6 * * 1-5'
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [12.x]
16+
os: [ubuntu-latest, windows-latest, macOS-latest]
17+
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: npm install, build, test and lint
25+
run: |
26+
npm i
27+
npm run build
28+
npm run jest:test
29+
npm run lint
30+
env:
31+
CI: true

.github/workflows/project-check.yml

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![npm package][npm-badge]][npm]
44
[![npm next][npm-next]][npm]
55
[![NPM downloads][npm-download]][npm]
6+
![Daily project check](https://github.com/coreui/coreui-react/workflows/Daily%20project%20check/badge.svg)
67

78
[npm-badge]: https://img.shields.io/npm/v/@coreui/react.png?style=flat-square
89
[npm-next]: https://img.shields.io/npm/v/@coreui/react/next.png?style=flat-square

0 commit comments

Comments
 (0)