Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: setup GitHub Actions #278

Merged
merged 11 commits into from Mar 25, 2021
47 changes: 47 additions & 0 deletions .github/workflows/node.yml
@@ -0,0 +1,47 @@
name: Node.js CI

on:
push:
branches:
- master
- next
paths:
- '**'
- '!**.md'
pull_request:
branches:
- master
- next
paths:
- '**'
- '!**.md'

jobs:
test:
strategy:
matrix:
node: [10, 12, 14]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Get yarn cache directory path
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Install Project Dependencies
run: yarn --frozen-lockfile

- name: Test
run: yarn test
11 changes: 6 additions & 5 deletions e2e/__projects__/babel-in-package/package.json
Expand Up @@ -13,11 +13,12 @@
"vue-template-compiler": "^2.5.21"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@vue/test-utils": "^1.0.5",
"jest": "^24.0.0",
"ts-jest": "^26.3.0"
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@vue/test-utils": "^1.1.0",
"jest": "26.x",
"ts-jest": "^26.3.0",
"vue-jest": "file:../../../"
},
"jest": {
"moduleFileExtensions": [
Expand Down
4,442 changes: 0 additions & 4,442 deletions e2e/__projects__/babel-in-package/yarn.lock

This file was deleted.

8 changes: 4 additions & 4 deletions e2e/__projects__/basic/package.json
Expand Up @@ -12,13 +12,13 @@
"vue-template-compiler": "^2.5.21"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@vue/test-utils": "^1.0.5",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@vue/test-utils": "^1.1.0",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"jest": "^24.0.0",
"jest": "26.x",
"vue-jest": "file:../../../"
},
"jest": {
Expand Down
8 changes: 4 additions & 4 deletions e2e/__projects__/custom-transformers/package.json
Expand Up @@ -12,10 +12,10 @@
"vue-template-compiler": "^2.5.21"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@vue/test-utils": "^1.0.5",
"jest": "^24.0.0",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@vue/test-utils": "^1.1.0",
"jest": "26.x",
"postcss": "^7.0.13",
"postcss-color-function": "^4.0.1",
"sass": "^1.23.7",
Expand Down
8 changes: 4 additions & 4 deletions e2e/__projects__/style/package.json
Expand Up @@ -12,10 +12,10 @@
"vue-template-compiler": "^2.5.21"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@vue/test-utils": "^1.0.5",
"jest": "^24.0.0",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"jest": "26.x",
"@vue/test-utils": "^1.1.0",
"postcss": "^7.0.13",
"sass": "^1.23.7"
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -29,8 +29,8 @@
"author": "Edd Yerburgh",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@vue/test-utils": "^1.1.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.6.0",
Expand Down