Skip to content

Commit 5a580ff

Browse files
committed
chore: update PR workflow and add linter
1 parent 3426c51 commit 5a580ff

File tree

4 files changed

+38
-7
lines changed

4 files changed

+38
-7
lines changed

.github/workflows/pr.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check PR title
1+
name: PR
22

33
on:
44
pull_request:
@@ -9,25 +9,33 @@ on:
99
- synchronize
1010

1111
jobs:
12-
lint:
12+
pr-title-check:
1313
runs-on: ubuntu-latest
1414
permissions:
1515
statuses: write
1616
steps:
1717
- uses: aslafy-z/conventional-pr-title-action@v3
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
test:
20+
code-quality:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
2424
uses: actions/Checkout@v4
25-
- name: Release
25+
- name: Lint
2626
uses: dagger/[email protected]
2727
with:
2828
version: "v0.16.3"
2929
verb: call
30-
module: github.com/MartinSimango/daggerverse/[email protected]
30+
module: github.com/MartinSimango/daggerverse/[email protected]
31+
args: "lint --source=."
32+
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
33+
- name: Test
34+
uses: dagger/[email protected]
35+
with:
36+
version: "v0.16.3"
37+
verb: call
38+
module: github.com/MartinSimango/daggerverse/[email protected]
3139
args: "test --source=."
3240
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
3341

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
version: "v0.16.3"
2626
verb: call
27-
module: github.com/MartinSimango/daggerverse/gopkg@v0.3.0
27+
module: github.com/MartinSimango/daggerverse/gopkg@v0.4.0
2828
args: "with-git-gpg-config --gpg-key=env://GPG_KEY --gpg-key-id=env://GPG_KEY_ID --git-author-name \"semantic-release-bot\" --git-author-email \"[email protected]\" gopkg-flow --source=. --dry-run=false --token=env://GITHUB_TOKEN"
2929
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
3030

.golangcli.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
linters:
2+
disable-all: true
3+
enable:
4+
- govet
5+
- gofmt
6+
7+
linters-settings:
8+
# See the dedicated "linters-settings" documentation section.
9+
option: value
10+
issues:
11+
# See the dedicated "issues" documentation section.
12+
option: value
13+
# output configuration options
14+
output:
15+
# See the dedicated "output" documentation section.
16+
option: value
17+
# Options for analysis running.
18+
run:
19+
# See the dedicated "run" documentation section.
20+
option: value
21+
severity:
22+
# See the dedicated "severity" documentation section.
23+
option: value

tests/dstruct_test/tree.builder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestExtend(t *testing.T) {
3030
}
3131

3232
type testStructEmbedded struct {
33-
age int `json:"Age"`
33+
age int
3434
name string
3535
Embedded
3636
}

0 commit comments

Comments
 (0)