Skip to content

Commit

Permalink
check elm formatting in builds
Browse files Browse the repository at this point in the history
  • Loading branch information
decioferreira committed Sep 19, 2024
1 parent 5194a0a commit 71bef9d
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
node-version-file: ".nvmrc"
cache: "npm"
- run: npm ci
- run: npm run elm-format:validate
- run: npm run build
- run: npm test
- run: npm run elm-test
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ Run `elm-test` tests:
npm run elm-test
```

# Format elm source code

```
npm run elm-format
```

# References

- Initial transpilation from Haskell to Elm done based on [Elm compiler v0.19.1](https://github.com/elm/compiler/releases/tag/0.19.1)
Expand Down
85 changes: 84 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
"build": "./lib/guida.js",
"test": "jest",
"elm-test": "elm-test",
"elm-review": "elm-review"
"elm-review": "elm-review",
"elm-format": "elm-format . --yes",
"elm-format:validate": "elm-format . --validate"
},
"dependencies": {
"adm-zip": "^0.5.15",
"commander": "^12.1.0"
"commander": "^12.1.0",
"elm-format": "^0.8.7"
},
"devDependencies": {
"elm": "^0.19.1-6",
Expand Down

0 comments on commit 71bef9d

Please sign in to comment.