Skip to content

Commit bcad238

Browse files
authored
chore: add github actions setup (#712)
Setup GitHub actions to build and test the package
1 parent ffa4ad2 commit bcad238

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Diff for: .github/workflows/build.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ci
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: hmarr/debug-action@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
cache: yarn
16+
node-version-file: '.nvmrc'
17+
- name: Install packages
18+
run: yarn --immutable
19+
- name: Build library
20+
run: yarn build
21+
unit:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: hmarr/debug-action@v2
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-node@v3
27+
with:
28+
cache: yarn
29+
node-version-file: '.nvmrc'
30+
- name: Install packages
31+
run: yarn --immutable
32+
- name: Jest
33+
run: yarn test

Diff for: .nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14

0 commit comments

Comments
 (0)