-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run tests in actions and fix readme badges (#18)
* start in on ci for gh actions * move format step into macos-latest * add checkout repo steps * fix elm format path * use npm to install elm instead of action * npm install global * bad formatting to check action * restore formatting for passing actions * remove tests from windows action, they always fail (with the same seed they succeed on macos). it's enough that things build on windows for now * add fixed (hopefully) badges * only run tests on push if it's pushing to the main branch
- Loading branch information
Showing
2 changed files
with
77 additions
and
3 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,74 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
macos-latest: | ||
runs-on: macos-latest | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v2 | ||
- name: install elm | ||
run: | | ||
npm install -g elm | ||
- name: build | ||
run: | | ||
elm make | ||
- name: build docs | ||
run: | | ||
elm make --docs=docs.json | ||
- name: install elm-format | ||
run: | | ||
npm install -g elm-format | ||
- name: format | ||
run: | | ||
elm-format src --validate | ||
- name: install elm-test | ||
run: | | ||
npm install -g elm-test | ||
- name: test | ||
run: | | ||
elm-test | ||
windows-latest: | ||
runs-on: windows-latest | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v2 | ||
- name: install elm | ||
run: | | ||
npm install -g elm | ||
- name: build | ||
run: | | ||
elm make | ||
# TODO: figure out why this fails and how to make it succeed when it's supposed to :) | ||
# - name: install elm-test | ||
# run: | | ||
# npm install -g elm-test | ||
# - name: test | ||
# run: | | ||
# elm-test | ||
|
||
ubuntu-latest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v2 | ||
- name: install elm | ||
run: | | ||
npm install -g elm | ||
- name: build | ||
run: | | ||
elm make | ||
- name: install elm-test | ||
run: | | ||
npm install -g elm-test | ||
- name: test | ||
run: | | ||
elm-test |
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