Skip to content

Commit

Permalink
Add unit test GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
knuton authored Feb 23, 2021
1 parent fe65e33 commit 798357d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Unit tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
# Checks-out the repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install elm
run: |
curl -L -o elm.gz https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz
gunzip elm.gz
chmod +x elm
sudo mv elm /usr/local/bin/
- name: Run elm-test
run: npx elm-test

0 comments on commit 798357d

Please sign in to comment.