Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check PR title
name: PR

on:
pull_request:
Expand All @@ -9,25 +9,33 @@ on:
- synchronize

jobs:
lint:
pr-title-check:
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- uses: aslafy-z/conventional-pr-title-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
code-quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/Checkout@v4
- name: Release
- name: Lint
uses: dagger/dagger-for-github@8.0.0
with:
version: "v0.16.3"
verb: call
module: github.com/MartinSimango/daggerverse/gopkg@v0.3.0
module: github.com/MartinSimango/daggerverse/gopkg@v0.4.0
args: "lint --source=."
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
- name: Test
uses: dagger/dagger-for-github@8.0.0
with:
version: "v0.16.3"
verb: call
module: github.com/MartinSimango/daggerverse/gopkg@v0.4.0
args: "test --source=."
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}

2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
version: "v0.16.3"
verb: call
module: github.com/MartinSimango/daggerverse/gopkg@v0.3.0
module: github.com/MartinSimango/daggerverse/gopkg@v0.4.0
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 \"shukomango@gmail.com\" gopkg-flow --source=. --dry-run=false --token=env://GITHUB_TOKEN"
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}

23 changes: 23 additions & 0 deletions .golangcli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
linters:
disable-all: true
enable:
- govet
- gofmt

linters-settings:
# See the dedicated "linters-settings" documentation section.
option: value
issues:
# See the dedicated "issues" documentation section.
option: value
# output configuration options
output:
# See the dedicated "output" documentation section.
option: value
# Options for analysis running.
run:
# See the dedicated "run" documentation section.
option: value
severity:
# See the dedicated "severity" documentation section.
option: value
2 changes: 1 addition & 1 deletion tests/dstruct_test/tree.builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestExtend(t *testing.T) {
}

type testStructEmbedded struct {
age int `json:"Age"`
age int
name string
Embedded
}
Expand Down