Skip to content

Add Makefile rule and GitHub Actions workflow to check the format #1

Add Makefile rule and GitHub Actions workflow to check the format

Add Makefile rule and GitHub Actions workflow to check the format #1

Workflow file for this run

on: [push, pull_request]
name: check-format
jobs:
check-format:
name: Check format with smlfmt
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
curl -Lo smlfmt.tar.gz https://github.com/shwestrick/smlfmt/archive/refs/tags/v1.1.0.tar.gz
tar xf smlfmt.tar.gz
make -C smlfmt-1.1.0
- name: smlfmt
run: make check-format SMLFMT=smlfmt-1.1.0/smlfmt