Skip to content

Commit 7387b93

Browse files
committed
minor #1034 [ci] move unix tests to Github Actions (jrushlow)
This PR was squashed before being merged into the main branch. Discussion ---------- [ci] move unix tests to Github Actions - replace travis ci w/ github actions - consolidates unix / windows tests - adds testing against `Node v16` - CI Runs every Sunday at Midnight for `Stable`, `Low`, & `High` tests Stable tests run against Node `10`, `12`, `14`, & `16` Low / High dependency tests run against Node `10` & `16` All tests run on Windows & Linux Failing `lowest` tests related to Typescript `v3.6.3` - to be fixed under separate PR Node `10` support to be dropped in separate PR Commits ------- 95931d7 [ci] move unix tests to Github Actions
2 parents b8e2411 + 95931d7 commit 7387b93

File tree

6 files changed

+151
-73
lines changed

6 files changed

+151
-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 0 * * 0'
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: 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: 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 0 * * 0'
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 0 * * 0'
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)