aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2021-03-23 23:19:44 +0100
committerSaúl Ibarra Corretgé <s@saghul.net>2021-03-24 00:20:51 +0100
commit89221a69546594235919f801afce8ebc5ee29950 (patch)
treebc2c640facb5218fc5c8fac575145e38b9aeae1e
parentdb6d976ae2d5ae39aba6c6337cd36719ff7d8e38 (diff)
Use GH Actions as the only CI
-rw-r--r--.github/workflows/ci.yml63
-rw-r--r--.travis.yml22
-rw-r--r--appveyor.yml15
3 files changed, 55 insertions, 45 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7eadfd6..8cc97b9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,16 +1,63 @@
-name: Simple CI
+name: CI
-on: [pull_request]
+on:
+ # Trigger the workflow on push or pull request,
+ # but only for the master branch
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
jobs:
- run-ci:
- name: Build
- runs-on: ubuntu-latest
+ build-linux:
+ name: Linux
+ runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- - run: sudo apt-get install libx11-dev zlib1g-dev libpng-dev libxtst-dev
- - run: npm install
- - run: npm run lint
+ - name: Install dependencies
+ run: sudo apt-get install libx11-dev zlib1g-dev libpng-dev libxtst-dev
+ - name: Build it
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ npm install
+ npm run dist
+ build-mac:
+ name: macOS
+ runs-on: macos-10.15
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '12.x'
+ - name: Fixup Xcode
+ # https://github.com/actions/virtual-environments/issues/2557
+ run: |
+ sudo xcode-select -s "/Applications/Xcode_12.4.app"
+ sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
+ - name: Build it
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ npm install
+ npm run lint
+ npm run dist
+ build-windows:
+ name: Windows
+ runs-on: windows-2019
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '12.x'
+ - name: Build it
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ npm install
+ npm run dist
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 2f64113..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-matrix:
- include:
- - os: osx
- osx_image: xcode12.4
- language: node_js
- node_js: '12'
-
- - os: linux
- dist: bionic
- sudo: true
- language: node_js
- node_js: '12'
- addons:
- apt:
- packages:
- - libx11-dev
- - zlib1g-dev
- - libpng-dev
- - libxtst-dev
-
-script:
- - npm run dist
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index 0f8d4a5..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-image: Visual Studio 2017
-
-platform:
- - x64
-
-cache:
- - node_modules
- - '%USERPROFILE%\.electron'
-
-install:
- - ps: Install-Product node 12 x64
- - npm install
-
-build_script:
- - npm run dist \ No newline at end of file