Skip to content

Commit fac686e

Browse files
committed
[ci] move unix tests to Github Actions
1 parent f4d20ed commit fac686e

File tree

6 files changed

+139
-73
lines changed

6 files changed

+139
-73
lines changed

.github/workflows/high-depends.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: High Dependencies
2+
on: [push, pull_request]
3+
4+
jobs:
5+
locked:
6+
name: Node ${{ matrix.node-versions }} - ${{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, windows-2019]
13+
node-versions: [ '10', '16']
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/[email protected]
18+
19+
- name: Node ${{matrix.node-versions}}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{matrix.node-versions}}
23+
24+
- name: Remove Lock File
25+
run: rm yarn.lock
26+
27+
- name: Install Yarn Dependencies
28+
run: yarn install
29+
if: matrix.node-versions != 10
30+
31+
- name: Install Yarn Dependencies Ignore Engines (Node 10)
32+
run: yarn install --ignore-engines
33+
if: matrix.node-versions == 10
34+
35+
- name: Show Installed Versions
36+
run: yarn list --depth=0
37+
38+
- name: Run Tests
39+
run: yarn test

.github/workflows/lint.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ESLint
2+
on: [push, pull_request]
3+
4+
jobs:
5+
eslint:
6+
name: ESLint
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/[email protected]
12+
13+
- name: Node ${{matrix.node-versions}}
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: '14'
17+
18+
- name: Install Yarn Dependencies
19+
run: yarn install
20+
21+
- name: Run ESLint
22+
run: yarn lint

.github/workflows/low-depends.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Low Dependencies
2+
on: [push, pull_request]
3+
4+
jobs:
5+
locked:
6+
name: Node ${{ matrix.node-versions }} - ${{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, windows-2019]
13+
node-versions: [ '10', '16']
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/[email protected]
18+
19+
- name: Node ${{matrix.node-versions}}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{matrix.node-versions}}
23+
24+
- name: Remove Lock File
25+
run: rm yarn.lock
26+
27+
- name: Force Lowest Dependencies
28+
run: node ./scripts/force-lowest-dependencies
29+
30+
- name: Install Yarn Dependencies
31+
run: yarn install
32+
if: matrix.node-versions != 10
33+
34+
- name: Install Yarn Dependencies Ignore Engines (Node 10)
35+
run: yarn install --ignore-engines
36+
if: matrix.node-versions == 10
37+
38+
- name: Show Installed Versions
39+
run: yarn list --depth=0
40+
41+
- name: Run Tests
42+
run: yarn test

.github/workflows/node-windows.yml

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

.github/workflows/stable-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Locked Dependencies
2+
on: [push, pull_request]
3+
4+
jobs:
5+
locked:
6+
name: Node ${{ matrix.node-versions }} - ${{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, windows-2019]
13+
node-versions: [ '10', '12', '14', '16']
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/[email protected]
18+
19+
- name: Node ${{matrix.node-versions}}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{matrix.node-versions}}
23+
24+
- name: Install Yarn Dependencies
25+
run: yarn install
26+
if: matrix.node-versions != 10
27+
28+
- name: Install Yarn Dependencies Ignore Engines (Node 10)
29+
run: yarn install --ignore-engines
30+
if: matrix.node-versions == 10
31+
32+
- name: Show Installed Versions
33+
run: yarn list --depth=0
34+
35+
- name: Run Tests
36+
run: yarn test

.travis.yml

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

0 commit comments

Comments
 (0)