diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..7bd845ffc --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8a28c6898..000000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: node_js - -services: - - xvfb - -node_js: - - 12.1.0 - -os: - - linux - - osx - -osx_image: xcode11 - -before_script: - - | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - sudo apt update - sudo apt install -y rpm - sudo snap install snapcraft --classic - fi - -script: - - npm run lint - - npm run test - - npm run test:e2e - - npm run build - -notifications: - email: false diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 7d0499c69..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -image: Visual Studio 2017 - -os: unstable - -platform: - - x64 - -cache: - - node_modules - - '%USERPROFILE%\.electron' - -init: - - git config --global core.autocrlf input - -install: - - ps: Install-Product node 10 x64 - - npm install - -build_script: - - npm run lint - - npm run test - - npm run test:e2e - - npm run build - -test: off diff --git a/package.json b/package.json index b2337d7f3..6481eb165 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/test/e2e/launch.e2e.js b/test/e2e/launch.e2e.js index 7ebe61eb9..fdfe2d43b 100644 --- a/test/e2e/launch.e2e.js +++ b/test/e2e/launch.e2e.js @@ -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 }