Skip to content

Commit

Permalink
start in on ci for gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shnewto committed Nov 11, 2023
1 parent a02bc02 commit 598b817
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: CI

on:
workflow_dispatch:
pull_request:
push:

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- run: elm-format src --validate

macos-latest-stable:
needs: [format]
runs-on: macos-latest
steps:
- name: setup elm
uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- name: build
run: |
elm make
- name: build docs
run: |
elm make --docs=docs.json
- name: install elm-test
run: |
npm install elm-test
- name: test
run: |
./node_modules/elm-test/bin/elm-test
windows-latest-stable:
needs: [format]
runs-on: windows-latest
steps:
- name: setup elm
uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- name: build
run: |
elm make
- name: build docs
run: |
elm make --docs=docs.json
- name: install elm-test
run: |
npm install elm-test
- name: test
run: |
./node_modules/elm-test/bin/elm-test
windows-latest-nightly:
needs: [format]
runs-on: windows-latest
steps:
- name: setup elm
uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- name: build
run: |
elm make
- name: build docs
run: |
elm make --docs=docs.json
- name: install elm-test
run: |
npm install elm-test
- name: test
run: |
./node_modules/elm-test/bin/elm-test
ubuntu-latest:
needs: [format]
runs-on: ubuntu-latest
steps:
- name: setup elm
uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- name: build
run: |
elm make
- name: build docs
run: |
elm make --docs=docs.json
- name: install elm-test
run: |
npm install elm-test
- name: test
run: |
./node_modules/elm-test/bin/elm-test
command: test

0 comments on commit 598b817

Please sign in to comment.