Skip to content

Commit 0a08427

Browse files
authored
build: Perform build in GitHub Actions (#161)
* build: Perform build in GitHub Actions * build: Correct name of build pipeline
1 parent f82ce2c commit 0a08427

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
on:
3+
push:
4+
branches-ignore:
5+
- gh-pages
6+
pull_request:
7+
branches-ignore:
8+
- gh-pages
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
13+
permissions:
14+
contents: read
15+
env:
16+
CI: true
17+
18+
jobs:
19+
test:
20+
name: 'Build on Node.js ${{ matrix.node }} OS: ${{matrix.os}}'
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os: [ubuntu-latest]
25+
node: [14.16, 16]
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
- name: Setup Node.js ${{ matrix.node }}
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: ${{ matrix.node }}
33+
cache: 'yarn'
34+
- name: Install
35+
run: yarn install
36+
- name: Build
37+
run: yarn build

0 commit comments

Comments
 (0)