Skip to content

Commit 0c68063

Browse files
committed
Move tests to GitHub Actions
1 parent 98b61ba commit 0c68063

File tree

3 files changed

+61
-34
lines changed

3 files changed

+61
-34
lines changed

Diff for: .github/workflows/test.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
env:
6+
FORCE_COLOR: 2
7+
jobs:
8+
full:
9+
name: Node.js 16 Full
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout the repository
13+
uses: actions/checkout@v2
14+
- name: Install Node.js
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
- name: Install dependencies
19+
uses: bahmutov/npm-install@v1
20+
- name: Run tests
21+
run: yarn test
22+
short:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
node-version:
27+
- 14
28+
- 12
29+
- 10
30+
- 8
31+
- 6
32+
name: Node.js ${{ matrix.node-version }} Quick
33+
steps:
34+
- name: Checkout the repository
35+
uses: actions/checkout@v2
36+
- name: Install Node.js ${{ matrix.node-version }}
37+
uses: actions/setup-node@v2
38+
with:
39+
node-version: ${{ matrix.node-version }}
40+
- name: Install dependencies
41+
uses: bahmutov/npm-install@v1
42+
with:
43+
install-command: yarn --frozen-lockfile --ignore-engines
44+
- name: Run unit tests
45+
run: npx jest
46+
windows:
47+
runs-on: windows-latest
48+
name: Windows Quick
49+
env:
50+
YARN_GPG: "no"
51+
steps:
52+
- name: Checkout the repository
53+
uses: actions/checkout@v2
54+
- name: Install Node.js LTS
55+
uses: actions/setup-node@v2
56+
with:
57+
node-version: 16
58+
- name: Install dependencies
59+
run: yarn install --frozen-lockfile
60+
- name: Run unit tests
61+
run: npx jest

Diff for: .travis.yml

-12
This file was deleted.

Diff for: appveyor.yml

-22
This file was deleted.

0 commit comments

Comments
 (0)