Skip to content

Commit 5d16beb

Browse files
committed
chore: update ci config
1 parent 35d9bb1 commit 5d16beb

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/nodejs.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [14.x]
19+
20+
services:
21+
redis:
22+
image: redis
23+
ports:
24+
- 6379:6379
25+
mysql:
26+
image: mysql
27+
env:
28+
MYSQL_ROOT_PASSWORD: password
29+
ports:
30+
- 3306:3306
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Use Node.js ${{ matrix.node-version }}
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
- run: npm ci
39+
- run: npm run build --if-present
40+
- run: npm test

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# CodePush Management CLI
1+
# CodePush Management CLI ![Node.js CI](https://github.com/shm-open/code-push-cli/workflows/Node.js%20CI/badge.svg)
2+
23

34
[[Chinese version 中文版]](./README.cn.md)
45

0 commit comments

Comments
 (0)