diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..25234f6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: + - master + tags: + - v[0-9]+.[0-9]+.[0-9]+* + pull_request: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest] + node-version: [10.x] + + steps: + - name: Fix git checkout line endings + run: git config --global core.autocrlf input + - uses: actions/checkout@v2 + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Get npm cache directory + id: npm-cache + run: | + echo "::set-output name=dir::$(npm config get cache)" + - uses: actions/cache@v1 + with: + path: ${{ steps.npm-cache.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install + run: npm install --engine-strict + - name: Test + run: npm test diff --git a/.travis.yml b/.travis.yml index 2b2f5db..ed37134 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,17 @@ +os: + - linux + - osx +dist: bionic language: node_js - node_js: "4.2" +cache: npm branches: only: - master -before_script: - - "export DISPLAY=:99.0" - - "sh -e /etc/init.d/xvfb start" - - sleep 3 # give xvfb some time to start - -cache: - directories: - - node_modules +services: + - xvfb notifications: email: diff --git a/README.md b/README.md index 2af2843..83d66e9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Devtron icon Devtron -An [Electron](http://electron.atom.io) [DevTools](https://developer.chrome.com/devtools) +An [Electron](https://electronjs.org) [DevTools](https://developer.chrome.com/devtools) extension to help you inspect, monitor, and debug your app. -[![Travis Build Status](https://travis-ci.org/electron/devtron.svg?branch=master)](https://travis-ci.org/electron/devtron) -[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/t9eqglwos7kyv6w3/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/devtron/branch/master) +[![Travis Build Status](https://travis-ci.org/electron-userland/devtron.svg?branch=master)](https://travis-ci.org/electron-userland/devtron) +[![GitHub Actions Build Status](https://github.com/electron-userland/devtron/workflows/CI/badge.svg)](https://github.com/electron-userland/devtron/actions?query=workflow%3ACI) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) [![downloads:?](https://img.shields.io/npm/dm/devtron.svg)](https://www.npmjs.com/packages/devtron) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 037531f..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -build: off - -os: unstable - -branches: - only: - - master - -skip_tags: true - -environment: - nodejs_version: "4.4.3" - -cache: - - node_modules -> package.json - -install: - - ps: Install-Product node $env:nodejs_version - - npm install npm - - .\node_modules\.bin\npm install - -test_script: - - node --version - - .\node_modules\.bin\npm --version - - .\node_modules\.bin\npm test