diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 189da5c..9684329 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -1,4 +1,4 @@ -name: Check PR title +name: PR on: pull_request: @@ -9,7 +9,7 @@ on: - synchronize jobs: - lint: + pr-title-check: runs-on: ubuntu-latest permissions: statuses: write @@ -17,17 +17,25 @@ jobs: - 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 }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2fd798a..066a11a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/.golangcli.yml b/.golangcli.yml new file mode 100644 index 0000000..8143dd7 --- /dev/null +++ b/.golangcli.yml @@ -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 diff --git a/tests/dstruct_test/tree.builder_test.go b/tests/dstruct_test/tree.builder_test.go index 17b929e..ec65eda 100644 --- a/tests/dstruct_test/tree.builder_test.go +++ b/tests/dstruct_test/tree.builder_test.go @@ -30,7 +30,7 @@ func TestExtend(t *testing.T) { } type testStructEmbedded struct { - age int `json:"Age"` + age int name string Embedded }