Skip to content

Merge pull request #306 from viktor44/feature/electron_25_9_8 #183

Merge pull request #306 from viktor44/feature/electron_25_9_8

Merge pull request #306 from viktor44/feature/electron_25_9_8 #183

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- "**"
## This is used to not re-run the build if only thoses files have changed
paths-ignore:
- "README.md"
- "CHANGELOG.md"
jobs:
Linux:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "18"
cache: "yarn"
# - name: Update node-gyp
# run: |
# npm install --global [email protected]
# npm config set node_gyp $(npm prefix -g)/lib/node_modules/node-gyp/bin/node-gyp.js
- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline && yarn run rebuild-all-native
# - name: Lint
# run: yarn run lint:ci
- name: Build
run: yarn run build
MacOs:
runs-on: macos-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "18"
cache: "yarn"
- name: Configure Node
run: |
# npm v9 doesn't allow custom config parameters (i.e. node_gyp) anymode, so we have to downgrade it to v8
npm install -g npm@8
npm install -g node-gyp@latest
npm config set node_gyp $(npm prefix -g)/lib/node_modules/node-gyp/bin/node-gyp.js
- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline && yarn run rebuild-all-native
# - name: Lint
# run: yarn run lint:ci
- name: Tests
run: yarn run test
- name: Build
run: yarn run build
Windows:
runs-on: windows-2019
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "18"
cache: "yarn"
- name: Configure Node
shell: powershell
run: |
# npm v9 doesn't allow custom config parameters (i.e. node_gyp) anymode, so we have to downgrade it to v8
npm install -g npm@8
npm install -g node-gyp@latest
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
npm config set registry "http://registry.npmjs.org"
yarn config set registry "http://registry.npmjs.org"
yarn config set network-timeout 300000
- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline && yarn run rebuild-all-native
# - name: Lint
# run: yarn run lint:ci
- name: Tests
run: yarn run test
- name: Build
run: yarn run build