Skip to content

Commit bed66b3

Browse files
Setup GH actions (#1034)
1 parent 971951f commit bed66b3

File tree

2 files changed

+67
-32
lines changed

2 files changed

+67
-32
lines changed

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
- name: Use Node.js latest
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: "*"
16+
cache: "yarn"
17+
- name: Bootstrap
18+
run: yarn && yarn bootstrap
19+
- name: Build
20+
run: yarn build
21+
- uses: actions/upload-artifact@v3
22+
with:
23+
name: lib
24+
path: |
25+
packages/*/lib/**/*
26+
utils/*/lib/**
27+
28+
lint:
29+
name: Lint
30+
needs: build
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v3
35+
- name: Use Node.js latest
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: "*"
39+
cache: "yarn"
40+
- name: Install
41+
run: yarn
42+
- name: Lint
43+
run: yarn lint
44+
45+
test:
46+
name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title
47+
needs: build
48+
runs-on: ubuntu-latest
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
node-version: [16, 14, 12, 10, 8, 6]
53+
steps:
54+
- name: Checkout code
55+
uses: actions/checkout@v3
56+
- name: Use Node.js ${{ matrix.node-version }} # Checkout node version for test executor
57+
uses: actions/setup-node@v3
58+
with:
59+
node-version: ${{ matrix.node-version }}
60+
cache: "yarn"
61+
- name: Install
62+
run: yarn && yarn bootstrap
63+
- uses: actions/download-artifact@v3
64+
with:
65+
name: lib
66+
- name: Test
67+
run: yarn test

appveyor.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)