Skip to content

Commit

Permalink
chore: try gh actions
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <[email protected]>
  • Loading branch information
hacdias committed Sep 2, 2019
1 parent 236f0c3 commit 8a63c5f
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 58 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on: [push]

jobs:
lint-unit:
name: lint, unit testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
version: 12.x
- run: npm install
- run: npm run lint
- run: npm run test
e2e-build:
name: e2e tests, build
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
needs:
- lint-unit
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
version: 12.x
- run: npm install
- run: npm run test:e2e
env:
CI: true
- run: npm run build
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

25 changes: 0 additions & 25 deletions appveyor.yml

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"clean:webui": "shx rm -rf assets/webui/",
"build": "run-s build:*",
"build:webui": "run-s build:webui:*",
"build:webui:download": "npx ipfs-or-gateway -c QmNyMYhwJUS1cVvaWoVBhrW8KPj1qmie7rZcWo8f1Bvkhz -p assets/webui/ -t 360000 --verbose",
"build:webui:download": "npx ipfs-or-gateway -c QmQn7B9nLDXgDWjVjgjHActHDQ3AK1NRv7f733P8ki7dik -p assets/webui/ -t 360000 --verbose",
"build:webui:minimize": "shx rm -rf assets/webui/static/js/*.map && shx rm -rf assets/webui/static/css/*.map",
"build:babel": "babel src --out-dir out --copy-files",
"build:binaries": "electron-builder --publish onTag"
"build:binaries": "electron-builder"
},
"pre-commit": [
"lint"
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/launch.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ describe('Application launch', function () {
NODE_ENV: 'test',
HOME: home,
IPFS_PATH: ipfsPath
}
},
chromeDriverArgs: ['--no-sandbox']
})
await app.start()
return { app, ipfsPath, home }
Expand Down

0 comments on commit 8a63c5f

Please sign in to comment.