Skip to content

Commit

Permalink
Migration to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
justgook committed Jan 22, 2020
1 parent aa22715 commit ce080af
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 13 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Checkout submodules
shell: bash
run: git submodule update --init --recursive

- name: Setup Elm
uses: justgook/setup-elm@v1

- name: Setup Node.js for use with actions
uses: actions/[email protected]
with:
node-version: 12.x

- name: Set yarn
id: yarn
run: |
echo "::set-output name=dir::$(yarn cache dir)"
echo "::add-path::$(yarn bin)"
echo "::add-path::$(yarn global bin)"
- name: Get Yarn cache
uses: actions/[email protected]
id: yarn-cache-exists
with:
path: ${{ steps.yarn.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install elm-test
run: yarn global add [email protected]

- name: Test
env:
ELM_HOME: ${{ steps.elm-home.outputs.dir }}
run: elm-test
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Layer.elm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ suite =
\obj ->
obj
|> encode
|> Json.Decode.decodeValue decode
|> Json.Decode.decodeValue (decode False)
|> Expect.equal (Ok obj)
]

0 comments on commit ce080af

Please sign in to comment.