From 65e0fea610b0e092761eda6542bbcbef6db03cb2 Mon Sep 17 00:00:00 2001 From: Marquis Kurt Date: Wed, 25 Sep 2019 17:25:34 -0400 Subject: [PATCH] Add GitHub actions CI scripts --- .github/workflows/ci/linux.yml | 21 +++++++++++++++++++++ .github/workflows/ci/mac.yml | 21 +++++++++++++++++++++ .github/workflows/ci/standard.yml | 26 ++++++++++++++++++++++++++ .github/workflows/ci/win.yml | 21 +++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 .github/workflows/ci/linux.yml create mode 100644 .github/workflows/ci/mac.yml create mode 100644 .github/workflows/ci/standard.yml create mode 100644 .github/workflows/ci/win.yml diff --git a/.github/workflows/ci/linux.yml b/.github/workflows/ci/linux.yml new file mode 100644 index 0000000..837256f --- /dev/null +++ b/.github/workflows/ci/linux.yml @@ -0,0 +1,21 @@ +name: Build Linux Client + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Clone source code + uses: actions/checkout@v1 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 10.x + - name: Install dependencies and build + run: | + npm install + npm run build --if-present + npm run build-desktop-linux \ No newline at end of file diff --git a/.github/workflows/ci/mac.yml b/.github/workflows/ci/mac.yml new file mode 100644 index 0000000..83da9c2 --- /dev/null +++ b/.github/workflows/ci/mac.yml @@ -0,0 +1,21 @@ +name: Build macOS Client + +on: [push, pull_request] + +jobs: + build: + + runs-on: macos-latest + + steps: + - name: Clone source code + uses: actions/checkout@v1 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 10.x + - name: Install dependencies and build + run: | + npm install + npm run build --if-present + npm run build-desktop-darwin-nosign \ No newline at end of file diff --git a/.github/workflows/ci/standard.yml b/.github/workflows/ci/standard.yml new file mode 100644 index 0000000..9a21f54 --- /dev/null +++ b/.github/workflows/ci/standard.yml @@ -0,0 +1,26 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x] + + steps: + - name: Clone source code + uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies and build + run: | + npm install + npm run build --if-present + env: + CI: true \ No newline at end of file diff --git a/.github/workflows/ci/win.yml b/.github/workflows/ci/win.yml new file mode 100644 index 0000000..c884272 --- /dev/null +++ b/.github/workflows/ci/win.yml @@ -0,0 +1,21 @@ +name: Build Windows Client + +on: [push, pull_request] + +jobs: + build: + + runs-on: windows-latest + + steps: + - name: Clone source code + uses: actions/checkout@v1 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 10.x + - name: Install dependencies and build + run: | + npm install + npm run build --if-present + npm run build-desktop-win \ No newline at end of file