Skip to content

Commit

Permalink
add CI job for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Feb 10, 2025
1 parent c70e639 commit 076d4ed
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/commonmark-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Contracts: Smoke test deployment"

# This workflow is triggered from the main CI workflow.
on:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out the project
uses: actions/checkout@v4

- name: Lint all commonmark/markdown files
uses: DavidAnson/markdownlint-cli2-action@v19
continue-on-error: true
with:
fix: true
globs: '(scripts|crates)/**/README.md;contracts/**/*.md;specs/**/*.md;docs*/**/*.md'
separator: ';'

- name: Check compliance
run: |
git diff --exit-code
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ default:
cd contracts && make gen
cd crates && (cargo build --release && ./target/release/ipc-cli --version && ./target/release/fendermint --version)

# podman has a compatible API, and is better supported
# Uses 'docker' as the default container runtime.
# Can be overwritten to 'podman' for a compatible API and potentially enhanced support
CONTAINER_FRONTEND_BIN ?= docker

SUBTREES_RUST := $(patsubst %, crates/%, $(ls -1 crates))
SUBTREES_CONTRACTS := contracts
SUBTREES_ALL := $(SUBTREES_RUST) $(SUBTREES_CONTRACTS)
Expand Down

0 comments on commit 076d4ed

Please sign in to comment.