Skip to content

Commit c0d1955

Browse files
committed
Add Github Actions configuration
1 parent 9574c03 commit c0d1955

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/actions.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: NodeJS with Webpack
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+
13+
strategy:
14+
matrix:
15+
node-version: [14.x, 16.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Install dependencies
26+
run: yarn install
27+
- name: Lint files
28+
run: yarn lint
29+
- name: Run tests
30+
run: yarn theo && yarn test:unit
31+
- name: Build library
32+
run: yarn build:lib
33+
- name: Build documentation
34+
run: yarn build

0 commit comments

Comments
 (0)