Skip to content

Commit

Permalink
ci(workflows): add a build file to github actions worflows
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentinTh committed Jun 9, 2021
1 parent 48e1436 commit 01e1476
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build

on: push

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest

node-version:
- 12
- 14
- 16

name: Using Node ${{ matrix.node-version }} on ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup node ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Update npm to v7.x
run: npm i -g npm@latest --registry=https://registry.npmjs.org

- name: Install project dependencies
run: npm ci

- name: Build project
run: npm run build

0 comments on commit 01e1476

Please sign in to comment.