This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
Update README.md #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
node-version: [12.x, 14.x, 16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Update npm | |
run: npm install --global npm@latest | |
- name: Patch node-gyp to support Visual Studio 2019 | |
shell: powershell | |
run: | | |
npm install --global node-gyp@latest | |
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} | |
- name: Install Global Dependencies | |
run: npm install yarn electron webpack typescript -g | |
- name: Install Dependencies & Build Native Files | |
run: yarn install | |
- name: Build Typescript files | |
run: yarn run build | |
- name: Run ESLint | |
run: yarn run lint |