Merge pull request #75 from excalidraw/issue-68

[WIP] Add node worklow
This commit is contained in:
Giovanni Giordano 2020-01-03 23:18:42 +01:00 committed by GitHub
commit 86ff014706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14815 additions and 24 deletions

23
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: |
npm ci
npm RUN build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build

View File

@ -1,20 +1,23 @@
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm test
env:
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install and test
run: |
npm ci
npm test
env:
CI: true

14767
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,6 @@
"devDependencies": {
"@types/react": "16.9.17",
"@types/react-dom": "16.9.4",
"gh-pages": "2.1.1",
"husky": "3.1.0",
"lint-staged": "9.5.0",
"prettier": "1.19.1",
@ -24,9 +23,8 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"deploy": "react-scripts build && gh-pages -d build"
"test": "react-scripts test --env=jsdom --passWithNoTests",
"eject": "react-scripts eject"
},
"browserslist": [
">0.2%",
@ -51,4 +49,4 @@
"eslint"
]
}
}
}