move format step into macos-latest #2
Workflow file for this run
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
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
macos-latest-stable: | |
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-format | |
run: | | |
npm install elm-format | |
- name: format | |
run: | | |
./node_modules/elm-test/bin/elm-format src --validate | |
- name: install elm-test | |
run: | | |
npm install elm-test | |
- name: test | |
run: | | |
./node_modules/elm-test/bin/elm-test | |
windows-latest-stable: | |
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: install elm-test | |
run: | | |
npm install elm-test | |
- name: test | |
run: | | |
./node_modules/elm-test/bin/elm-test | |
windows-latest-nightly: | |
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: install elm-test | |
run: | | |
npm install elm-test | |
- name: test | |
run: | | |
./node_modules/elm-test/bin/elm-test | |
ubuntu-latest: | |
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: install elm-test | |
run: | | |
npm install elm-test | |
- name: test | |
run: | | |
./node_modules/elm-test/bin/elm-test | |
command: test |