Skip to content

Commit 595ef01

Browse files
committed
ci: setup github actions
1 parent 11e3cb8 commit 595ef01

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Diff for: .github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 'ci'
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
pull_request:
7+
branches:
8+
- next
9+
jobs:
10+
test-webpack4:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Set node version to 16
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
- uses: bahmutov/npm-install@v1
19+
- name: Lint
20+
run: yarn lint
21+
- name: Run tests for webpack 4
22+
run: yarn test
23+
24+
test-webpack5:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: Set node version to 16
29+
uses: actions/setup-node@v2
30+
with:
31+
node-version: 16
32+
- uses: bahmutov/npm-install@v1
33+
- name: Run tests for webpack 5
34+
run: yarn test:webpack5

0 commit comments

Comments
 (0)