Skip to content

Commit 1e6a7a1

Browse files
authored
Add checker (#12)
* quote constants * add checker via github workflow
1 parent fff2e76 commit 1e6a7a1

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/checker.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run Checker
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: Build
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Set up Go 1.17
9+
uses: actions/setup-go@v2
10+
with:
11+
go-version: 1.17
12+
13+
- name: Check out source code
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 2
17+
18+
- name: Install Checker
19+
run: go install github.com/terakilobyte/checker@latest
20+
21+
- name: Run Checker
22+
run: git diff --name-only HEAD^..HEAD | tr "\n" "," | xargs checker --changes

snooty.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ query-api = "MongoDB Query API"
1616

1717
driver-long = "MongoDB .NET driver"
1818
driver-short = ".NET driver"
19-
driver-version = 2.14
19+
driver-version = "2.14"
2020
driver-docs = "https://mongodb.github.io/mongo-csharp-driver/{+driver-version+}/"

0 commit comments

Comments
 (0)