-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Norman Rusch
committed
Oct 23, 2020
1 parent
7205872
commit 650da23
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |