Skip to content

Commit a12e4d2

Browse files
committed
automatically verify formatting of program codes
1 parent bf43e4d commit a12e4d2

File tree

3 files changed

+70
-44
lines changed

3 files changed

+70
-44
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test-and-publish
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
pull_request_review:
7+
types: [submitted]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-24.04
13+
14+
steps:
15+
16+
- name: Avoid git mutating files on checkout
17+
run: |
18+
git config --global core.autocrlf false
19+
20+
- uses: actions/checkout@v4
21+
22+
- name: Install elm-format
23+
run: npm install -g elm-format
24+
25+
- name: Check formatting in Elm program code
26+
run: elm-format --validate .

0 commit comments

Comments
 (0)