Skip to content

Commit 8ca9459

Browse files
committed
Split the github workflows in build and test
1 parent fb9db6b commit 8ca9459

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

.github/workflows/build.yml

+4-15
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,19 @@
1-
# This is a basic workflow to help you get started with Actions
1+
name: build
22

3-
name: Build & Test
4-
5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the master branch
73
on:
84
push:
95
branches: [ master ]
106
pull_request:
117
branches: [ master ]
128

13-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
149
jobs:
15-
# This workflow contains a single job called "build"
1610
build:
17-
# The type of runner that the job will run on
1811
runs-on: ubuntu-latest
19-
20-
# Steps represent a sequence of tasks that will be executed as part of the job
2112
steps:
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2313
- uses: actions/checkout@v2
24-
25-
- name: Use Node.js 10.x
14+
- name: Use Node.js 12.x
2615
uses: actions/setup-node@v1
2716
with:
28-
node-version: 10.x
17+
node-version: 12.x
2918
- run: npm install
30-
- run: npm run build
19+
- run: npm run compile

.github/workflows/test.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Use Node.js 12.x
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 12.x
18+
- run: npm install
19+
- run: npm run test

0 commit comments

Comments
 (0)