Skip to content

Commit 74d7163

Browse files
ardatanAlan-Cha
authored andcommitted
Small improvements
Update travis script Add GitHub workflow in favor of Travis Ignore engines' Remove unnecessary env Use Bob Fix extra space Break tests
1 parent 5654f16 commit 74d7163

File tree

84 files changed

+7807
-30098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+7807
-30098
lines changed

.github/workflows/test.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
name: Testing on Node ${{matrix.node_version}}
14+
timeout-minutes: 60
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node_version: [10, 16]
19+
steps:
20+
- name: Checkout Master
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
- name: Use Node ${{matrix.node_version}}
25+
uses: actions/setup-node@master
26+
with:
27+
node-version: ${{ matrix.node_version }}
28+
- name: Cache Yarn
29+
uses: actions/cache@v2
30+
with:
31+
path: "**/node_modules"
32+
key: ${{ runner.os }}-${{matrix.node_version}}-node-modules-${{ hashFiles('yarn.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-${{matrix.node_version}}-node-modules-${{ hashFiles('yarn.lock') }}
35+
${{ runner.os }}-${{matrix.node_version}}-node-modules-
36+
- name: Install Dependencies using Yarn
37+
run: yarn install --ignore-engines && git checkout yarn.lock
38+
- name: Cache Jest
39+
uses: actions/cache@v2
40+
with:
41+
path: .cache/jest
42+
key: ${{ runner.os }}-${{matrix.node_version}}-jest-${{ hashFiles('yarn.lock') }}
43+
restore-keys: |
44+
${{ runner.os }}-${{matrix.node_version}}-jest-${{ hashFiles('yarn.lock') }}
45+
${{ runner.os }}-${{matrix.node_version}}-jest-
46+
- name: Test
47+
run: yarn test
48+
env:
49+
CI: true

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ tmp
1818

1919
# OS configuration
2020
*.DS_Store
21+
22+
# Compiled JS files
23+
dist
24+
.bob

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
node_js:
33
- "10"
4-
- "12"
4+
- "16"
55

66
os:
77
- linux
@@ -10,11 +10,10 @@ os:
1010
dist: xenial
1111

1212
install:
13-
- npm install
14-
- npm i -g typescript jest
15-
- lerna bootstrap --ci
13+
- npm i -g yarn
14+
- yarn install --ignore-engines
1615

17-
script: npm run test
16+
script: yarn test
1817

1918
branches:
2019
only:

bob.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {};

lerna.json

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

0 commit comments

Comments
 (0)