mirror of https://github.com/garritfra/garrit.xyz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
560 B
24 lines
560 B
name: Node Build CI |
|
|
|
on: [push] |
|
|
|
jobs: |
|
build: |
|
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} |
|
runs-on: ${{ matrix.os }} |
|
strategy: |
|
matrix: |
|
node_version: [8, 10, 12] |
|
os: [ubuntu-latest, windows-latest, macOS-latest] |
|
|
|
steps: |
|
- uses: actions/checkout@master |
|
- name: Use Node.js 10.x |
|
uses: actions/setup-node@v1 |
|
with: |
|
version: 10.x |
|
- name: npm install, build, and test |
|
run: | |
|
npm install |
|
npm run build --if-present |
|
npm test
|
|
|