Skip to content

Commit

Permalink
ci: setup GitHub Actions to next branch (#326)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nogic1008 committed Mar 29, 2021
1 parent e2853d7 commit acab463
Show file tree
Hide file tree
Showing 15 changed files with 1,928 additions and 23,076 deletions.
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
8 changes: 4 additions & 4 deletions e2e/__projects__/babel-in-package/package.json
Expand Up @@ -8,12 +8,12 @@
"test": "jest --no-cache test.js"
},
"dependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"jest": "^24.0.0",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"jest": "^26.0.0",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2",
"vue": "3.0.0-alpha.10"
"vue": "^3.0.3"
},
"jest": {
"moduleFileExtensions": [
Expand Down
4,275 changes: 0 additions & 4,275 deletions e2e/__projects__/babel-in-package/yarn.lock

This file was deleted.

10 changes: 5 additions & 5 deletions e2e/__projects__/basic/package.json
Expand Up @@ -8,16 +8,16 @@
"test": "jest --no-cache --coverage test.js"
},
"dependencies": {
"vue": "3.0.3"
"vue": "^3.0.3"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@vue/compiler-sfc": "3.0.3",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@vue/compiler-sfc": "^3.0.3",
"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.0.0",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2",
"vue-class-component": "^8.0.0-beta.4"
Expand Down
4,555 changes: 0 additions & 4,555 deletions e2e/__projects__/basic/yarn.lock

This file was deleted.

10 changes: 5 additions & 5 deletions e2e/__projects__/custom-transformers/package.json
Expand Up @@ -8,13 +8,13 @@
"test": "jest --no-cache --coverage test.js"
},
"dependencies": {
"@vue/compiler-sfc": "3.0.0-alpha.10",
"vue": "3.0.0-alpha.10"
"@vue/compiler-sfc": "^3.0.3",
"vue": "^3.0.3"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"jest": "^24.0.0",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"jest": "^26.0.0",
"postcss": "^7.0.13",
"postcss-color-function": "^4.0.1",
"sass": "^1.23.7"
Expand Down

0 comments on commit acab463

Please sign in to comment.