Skip to content

Commit 28abe4d

Browse files
authored
ci: setup GitHub Actions (#278)
* ci: enable GitHub Actions * chore(deps-dev): bump @babel/core to 7.9.0 * chore: remove lock file
1 parent 3be77bc commit 28abe4d

File tree

8 files changed

+694
-4767
lines changed

8 files changed

+694
-4767
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

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"vue-template-compiler": "^2.5.21"
1414
},
1515
"devDependencies": {
16-
"@babel/core": "^7.2.2",
17-
"@babel/preset-env": "^7.2.3",
18-
"@vue/test-utils": "^1.0.5",
19-
"jest": "^24.0.0",
20-
"ts-jest": "^26.3.0"
16+
"@babel/core": "^7.9.0",
17+
"@babel/preset-env": "^7.9.0",
18+
"@vue/test-utils": "^1.1.0",
19+
"jest": "26.x",
20+
"ts-jest": "^26.3.0",
21+
"vue-jest": "file:../../../"
2122
},
2223
"jest": {
2324
"moduleFileExtensions": [

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

-4,442
This file was deleted.

e2e/__projects__/basic/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"vue-template-compiler": "^2.5.21"
1313
},
1414
"devDependencies": {
15-
"@babel/core": "^7.2.2",
16-
"@babel/preset-env": "^7.2.3",
17-
"@vue/test-utils": "^1.0.5",
15+
"@babel/core": "^7.9.0",
16+
"@babel/preset-env": "^7.9.0",
17+
"@vue/test-utils": "^1.1.0",
1818
"babel-helper-vue-jsx-merge-props": "^2.0.3",
1919
"babel-plugin-syntax-jsx": "^6.18.0",
2020
"babel-plugin-transform-vue-jsx": "^3.7.0",
21-
"jest": "^24.0.0",
21+
"jest": "26.x",
2222
"vue-jest": "file:../../../"
2323
},
2424
"jest": {

e2e/__projects__/custom-transformers/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"vue-template-compiler": "^2.5.21"
1313
},
1414
"devDependencies": {
15-
"@babel/core": "^7.2.2",
16-
"@babel/preset-env": "^7.2.3",
17-
"@vue/test-utils": "^1.0.5",
18-
"jest": "^24.0.0",
15+
"@babel/core": "^7.9.0",
16+
"@babel/preset-env": "^7.9.0",
17+
"@vue/test-utils": "^1.1.0",
18+
"jest": "26.x",
1919
"postcss": "^7.0.13",
2020
"postcss-color-function": "^4.0.1",
2121
"sass": "^1.23.7",

e2e/__projects__/style/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"vue-template-compiler": "^2.5.21"
1313
},
1414
"devDependencies": {
15-
"@babel/core": "^7.2.2",
16-
"@babel/preset-env": "^7.2.3",
17-
"@vue/test-utils": "^1.0.5",
18-
"jest": "^24.0.0",
15+
"@babel/core": "^7.9.0",
16+
"@babel/preset-env": "^7.9.0",
17+
"jest": "26.x",
18+
"@vue/test-utils": "^1.1.0",
1919
"postcss": "^7.0.13",
2020
"sass": "^1.23.7"
2121
},

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"author": "Edd Yerburgh",
3030
"license": "MIT",
3131
"devDependencies": {
32-
"@babel/core": "^7.2.2",
33-
"@babel/preset-env": "^7.2.3",
32+
"@babel/core": "^7.9.0",
33+
"@babel/preset-env": "^7.9.0",
3434
"@vue/test-utils": "^1.1.0",
3535
"babel-core": "^7.0.0-bridge.0",
3636
"babel-jest": "^23.6.0",

0 commit comments

Comments
 (0)