Skip to content

Commit d0f852e

Browse files
chore(ci): add gitub actions workflows for docs and downstream tests
1 parent ac6bd69 commit d0f852e

File tree

3 files changed

+66
-16
lines changed

3 files changed

+66
-16
lines changed

.github/workflows/docs.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docs are generatable
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [10.x]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: install yarn
20+
run: npm install -g yarn
21+
- name: install, build, test
22+
run: |
23+
yarn
24+
yarn docs
25+
env:
26+
CI: true

.github/workflows/downstream.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Downstream tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [10.x]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: install yarn
20+
run: npm install -g yarn
21+
- name: install, build, test
22+
run: |
23+
yarn
24+
yarn test:downstream
25+
env:
26+
CI: true

.github/workflows/test.yml

+14-16
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
name: Node CI
1+
name: Run Tests
22

33
on: [push]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
98

109
strategy:
1110
matrix:
1211
node-version: [10.x]
1312

1413
steps:
15-
- uses: actions/checkout@v1
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- name: install yarn
21-
run: npm install -g yarn
22-
- name: install, build, test
23-
run: |
24-
yarn
25-
tsc
26-
yarn test
27-
env:
28-
CI: true
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: install yarn
20+
run: npm install -g yarn
21+
- name: install, build, test
22+
run: |
23+
yarn
24+
yarn test
25+
env:
26+
CI: true

0 commit comments

Comments
 (0)