Skip to content

Commit

Permalink
ci(workflows): add a build file to github actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentinTh committed Jun 9, 2021
1 parent 7c48fe5 commit 7d7e03d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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: Rename .env.example
run: mv .env.example .env

- 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 7d7e03d

Please sign in to comment.