Skip to content

Commit

Permalink
ci: setup github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Apr 21, 2020
1 parent fd3ee1a commit 2afb2ec
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests

on:
push:
branches: master

env:
CI: true
NODE_VERSION: 12

jobs:
test:
name: Tests
runs-on: ubuntu-latest

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

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}

- run: node --version
- run: npm --version

- name: NPM Install
run: npm ci

- name: Build
run: npm run build
env:
NODE_ENV: production

- name: Test
run: npm run test

0 comments on commit 2afb2ec

Please sign in to comment.