Skip to content

Commit 21f48c4

Browse files
committed
Add check for code formatting
1 parent 26562e2 commit 21f48c4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CI
22

33
on:
4+
push:
5+
branches: [ "main" ]
46
pull_request:
57
branches: [ "main" ]
68

@@ -13,8 +15,8 @@ jobs:
1315
steps:
1416
- name: Checkout
1517
uses: actions/checkout@v4
16-
- name: Build
17-
run: cargo build --verbose
18+
- name: Check formatting
19+
run: cargo fmt --check
1820
- name: Run clippy
1921
run: cargo clippy --all-targets --all-features -- -Dclippy::all -D warnings
2022
- name: Run tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**An experimental FIX engine written in Rust.**
66

7-
[![CI](https://github.com/Validus-Risk-Management/hotfix/actions/workflows/test.yml/badge.svg)](https://github.com/Validus-Risk-Management/hotfix/actions/workflows/test.yml)
7+
[![CI](https://github.com/Validus-Risk-Management/hotfix/actions/workflows/ci.yml/badge.svg)](https://github.com/Validus-Risk-Management/hotfix/actions/workflows/ci.yml)
88
[![codecov](https://codecov.io/gh/Validus-Risk-Management/hotfix/graph/badge.svg?token=OE58PBL0N6)](https://codecov.io/gh/Validus-Risk-Management/hotfix)
99
[![crates-badge]](https://crates.io/crates/hotfix)
1010
[![docs-badge]](https://docs.rs/hotfix)

0 commit comments

Comments
 (0)