Skip to content

Commit 182b8a7

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

File tree

6 files changed

+155
-73
lines changed

6 files changed

+155
-73
lines changed

.github/workflows/high-depends.yml

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

.github/workflows/lint.yaml

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

.github/workflows/low-depends.yml

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

.travis.yml

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

0 commit comments

Comments
 (0)