Skip to content

Commit

Permalink
Setup CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Rusch committed Oct 23, 2020
1 parent 7205872 commit 650da23
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow will do a clean install of node dependencies and run tests and
# validations. This will use the pinned version inside the .nvmrc file
# for the node installation.
#
# Required secrets:
# ------------------------------------------------------------------------------
# (none)

name: CI

on:
push:
branches:
- master
- feature/*
pull_request:
branches:
- master

jobs:
tests:
name: Tests and validations
runs-on: ubuntu-latest

steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Read .nvmrc
id: nvm
run: echo ::set-output name=NVMRC::$(cat .nvmrc)

- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- name: Install dependencies
run: npm install

- name: Run tests
run: make tests
env:
CI: true

- name: Run validations
run: make validate
env:
CI: true

0 comments on commit 650da23

Please sign in to comment.