1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

* add build check CI

This commit is contained in:
shimataro 2019-09-18 23:03:44 +09:00
parent 010eec3d7a
commit f7aa160fcd
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

36
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,36 @@
# https://help.github.com/ja/articles/workflow-syntax-for-github-actions
on:
push:
branches:
- master
- develop
pull_request:
name: Build check
jobs:
build:
name: Build on ${{ matrix.platform }} / Node.js v${{ matrix.nodejs }}
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform:
- "Windows-latest"
- "macOS-latest"
- "Ubuntu-latest"
nodejs:
- 12
steps:
- name: Turn off auto-crlf
run: git config --global core.autocrlf false
- name: Checkout source codes
uses: actions/checkout@v1
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs }}
- name: Install node-gyp
run: npm i -g node-gyp
- name: Install dependencies
run: npm i
- name: Build
run: npm run build