Skip to content

Commit acab463

Browse files
authored
ci: setup GitHub Actions to next branch (#326)
* ci: enable GitHub Actions (Port from #278) * chore: update test run script (Port from #284) * chore: remove yarn lock file * chore(deps): bump e2e projects deps version * chore: hoist package dependencies
1 parent e2853d7 commit acab463

File tree

15 files changed

+1928
-23076
lines changed

15 files changed

+1928
-23076
lines changed

.github/workflows/node.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- next
8+
paths:
9+
- '**'
10+
- '!**.md'
11+
pull_request:
12+
branches:
13+
- master
14+
- next
15+
paths:
16+
- '**'
17+
- '!**.md'
18+
19+
jobs:
20+
test:
21+
strategy:
22+
matrix:
23+
node: [10, 12, 14]
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Use Node.js ${{ matrix.node }}
29+
uses: actions/setup-node@v2
30+
with:
31+
node-version: ${{ matrix.node }}
32+
33+
- name: Get yarn cache directory path
34+
id: yarn-cache
35+
run: echo "::set-output name=dir::$(yarn cache dir)"
36+
- name: Cache Dependencies
37+
uses: actions/cache@v2
38+
with:
39+
path: ${{ steps.yarn-cache.outputs.dir }}
40+
key: yarn-${{ hashFiles('**/yarn.lock') }}
41+
restore-keys: |
42+
yarn-
43+
- name: Install Project Dependencies
44+
run: yarn --frozen-lockfile
45+
46+
- name: Test
47+
run: yarn test

e2e/__projects__/babel-in-package/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"test": "jest --no-cache test.js"
99
},
1010
"dependencies": {
11-
"@babel/core": "^7.2.2",
12-
"@babel/preset-env": "^7.2.3",
13-
"jest": "^24.0.0",
11+
"@babel/core": "^7.9.0",
12+
"@babel/preset-env": "^7.9.0",
13+
"jest": "^26.0.0",
1414
"ts-jest": "^26.4.4",
1515
"typescript": "^4.1.2",
16-
"vue": "3.0.0-alpha.10"
16+
"vue": "^3.0.3"
1717
},
1818
"jest": {
1919
"moduleFileExtensions": [

e2e/__projects__/babel-in-package/yarn.lock

-4,275
This file was deleted.

e2e/__projects__/basic/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"test": "jest --no-cache --coverage test.js"
99
},
1010
"dependencies": {
11-
"vue": "3.0.3"
11+
"vue": "^3.0.3"
1212
},
1313
"devDependencies": {
14-
"@babel/core": "^7.2.2",
15-
"@babel/preset-env": "^7.2.3",
16-
"@vue/compiler-sfc": "3.0.3",
14+
"@babel/core": "^7.9.0",
15+
"@babel/preset-env": "^7.9.0",
16+
"@vue/compiler-sfc": "^3.0.3",
1717
"babel-helper-vue-jsx-merge-props": "^2.0.3",
1818
"babel-plugin-syntax-jsx": "^6.18.0",
1919
"babel-plugin-transform-vue-jsx": "^3.7.0",
20-
"jest": "^24.0.0",
20+
"jest": "^26.0.0",
2121
"ts-jest": "^26.4.4",
2222
"typescript": "^4.1.2",
2323
"vue-class-component": "^8.0.0-beta.4"

e2e/__projects__/basic/yarn.lock

-4,555
This file was deleted.

e2e/__projects__/custom-transformers/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"test": "jest --no-cache --coverage test.js"
99
},
1010
"dependencies": {
11-
"@vue/compiler-sfc": "3.0.0-alpha.10",
12-
"vue": "3.0.0-alpha.10"
11+
"@vue/compiler-sfc": "^3.0.3",
12+
"vue": "^3.0.3"
1313
},
1414
"devDependencies": {
15-
"@babel/core": "^7.2.2",
16-
"@babel/preset-env": "^7.2.3",
17-
"jest": "^24.0.0",
15+
"@babel/core": "^7.9.0",
16+
"@babel/preset-env": "^7.9.0",
17+
"jest": "^26.0.0",
1818
"postcss": "^7.0.13",
1919
"postcss-color-function": "^4.0.1",
2020
"sass": "^1.23.7"

0 commit comments

Comments
 (0)