Skip to content

Commit 1e21f47

Browse files
authored
Merge pull request #2 from johnoneil/ci-checks-status
CI badge and status check
2 parents 5b45b4f + 3489483 commit 1e21f47

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
name: CI
22

33
# This workflow runs tests, formatting checks, and the fspec tool.
4-
# To require passing CI for merges to master/main:
5-
# 1. Go to Settings > Branches in your GitHub repository
6-
# 2. Add a branch protection rule for master/main
7-
# 3. Enable "Require status checks to pass before merging"
8-
# 4. Select "Test Suite" as the required status check
4+
#
5+
# To set up branch protection for master/main (require reviews and passing CI):
6+
# 1. Go to your repository on GitHub
7+
# 2. Navigate to Settings > Branches
8+
# 3. Click "Add branch protection rule" or edit existing rule for master/main
9+
# 4. Enable the following options:
10+
# - "Require a pull request before merging"
11+
# - Enable "Require approvals" (set to 1 or more)
12+
# - Optionally enable "Dismiss stale pull request approvals when new commits are pushed"
13+
# - "Require status checks to pass before merging"
14+
# - Select "Test Suite" as the required status check
15+
# - Optionally: "Require conversation resolution before merging"
16+
# - Optionally: "Do not allow bypassing the above settings" (prevents admins from bypassing)
17+
# 5. Click "Create" or "Save changes"
918
#
1019
# Note: Branch protection cannot be configured via files alone - it requires
1120
# repository settings access. However, this workflow will fail if tests don't pass,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fspec — Declarative Filesystem Specifications
22

3-
![CI](https://github.com/USERNAME/REPO/actions/workflows/ci.yml/badge.svg)
3+
![CI](https://github.com/johnoneil/fspec/actions/workflows/ci.yml/badge.svg)
44

55
fspec is an experimental, declarative filesystem specification and validation tool, suitable for CI pipelines, auditing, and long-lived project structure enforcement. It provides a way to formally describe expected filesystem structure (directories, files, naming conventions, style, and invariants) in a way that is:
66

0 commit comments

Comments
 (0)