diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9e716d6..0c475e0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build +name: build on: push: @@ -13,16 +13,15 @@ jobs: name: build strategy: matrix: - go-version: ["1.22"] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Set up Go ${{ matrix.go-version }} - uses: actions/setup-go@v4 + - name: checkout code + uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} - - name: Build + go-version-file: go.mod + check-latest: true + - name: build run: | make build diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..9daf6b9 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,24 @@ +name: lint + +on: + push: + pull_request: + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + check-latest: true + - name: install dependencies + run: | + go get -v -t -d ./... + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.58 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0b94f64..bbf0332 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,7 +20,7 @@ jobs: with: go-version-file: go.mod check-latest: true - - name: GoReleaser + - name: goreleaser uses: goreleaser/goreleaser-action@v5 with: version: latest