Skip to content

Commit 2650ce7

Browse files
Merge pull request #12 from wallester/feature/WA-24452-update-testify
2 parents 6280f29 + d24e6b3 commit 2650ce7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3682
-1223
lines changed

.ci.gofmt.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

3-
if [ -n "$(gofmt -l .)" ]; then
3+
if [ -n "$(go fmt ./...)" ]; then
44
echo "Go code is not formatted:"
5-
gofmt -d .
5+
go fmt ./...
66
exit 1
77
fi
88

.ci.gogenerate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# If GOMOD is defined we are running with Go Modules enabled, either
44
# automatically or via the GO111MODULE=on environment variable. Codegen only

.ci.govet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

.ci.readme.fmt.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
# Verify that the code snippets in README.md are formatted.
4+
# The tool https://github.com/hougesen/mdsf is used.
5+
6+
if [ -n "$(mdsf verify --config .mdsf.json --log-level error README.md 2>&1)" ]; then
7+
echo "Go code in the README.md is not formatted."
8+
echo "Did you forget to run 'mdsf format --config .mdsf.json README.md'?"
9+
mdsf format --config .mdsf.json README.md
10+
git diff
11+
exit 1
12+
fi

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ jobs:
1010
- stable
1111
- oldstable
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
- name: Setup Go
15-
uses: actions/setup-go@v5
15+
uses: actions/setup-go@v6
1616
with:
1717
go-version: ${{ matrix.go_version }}
18+
- run: npm install -g mdsf-cli
1819
- run: ./.ci.gogenerate.sh
1920
- run: ./.ci.gofmt.sh
21+
- run: ./.ci.readme.fmt.sh
2022
- run: ./.ci.govet.sh
2123
- run: go test -v -race ./...
2224
test:
@@ -29,10 +31,12 @@ jobs:
2931
- "1.19"
3032
- "1.20"
3133
- "1.21"
34+
- "1.22"
35+
- "1.23"
3236
steps:
33-
- uses: actions/checkout@v4
37+
- uses: actions/checkout@v5
3438
- name: Setup Go
35-
uses: actions/setup-go@v5
39+
uses: actions/setup-go@v6
3640
with:
3741
go-version: ${{ matrix.go_version }}
3842
- run: go test -v -race ./...

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
contents: write
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717

1818
- name: Create GitHub release from tag
1919
uses: softprops/action-gh-release@v2

.mdsf.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/hougesen/mdsf/main/schemas/v0.8.2/mdsf.schema.json",
3+
"format_finished_document": false,
4+
"languages": {
5+
"go": [
6+
[
7+
"gofmt",
8+
"goimports"
9+
]
10+
]
11+
}
12+
}

MAINTAINERS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@ pull requests.
66
* @boyan-soubachov
77
* @dolmen
88
* @MovieStoreGuy
9-
* @arjunmahishi
109
* @brackendawson
10+
* @ccoVeille
11+
12+
## Approvers
13+
14+
The individuals listed below are active in the project and have the ability to approve pull
15+
requests.
16+
17+
* @arjunmahishi

0 commit comments

Comments
 (0)