diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f910c76 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: daily + commit-message: + prefix: "[gomod] " + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily + commit-message: + prefix: "[gh-actions] " + diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml new file mode 100644 index 0000000..3fcd056 --- /dev/null +++ b/.github/workflows/create_release.yml @@ -0,0 +1,25 @@ +on: + push: + tags: + - 'v*' + +name: Upload release assets after tagging +jobs: + build: + name: create assets + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: 1.23.1 + - name: Checkout code + uses: actions/checkout@v4 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + if: startsWith(github.ref, 'refs/tags/') + with: + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test_and_build.yml b/.github/workflows/test_and_build.yml index 4908949..2da9e16 100644 --- a/.github/workflows/test_and_build.yml +++ b/.github/workflows/test_and_build.yml @@ -12,30 +12,26 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.23.x - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - version: v1.52.2 - - name: Run linters - run: | - export PATH=$PATH:$(go env GOPATH)/bin - ./pre-commit + version: latest test: runs-on: ubuntu-latest strategy: matrix: - goversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"] + goversion: ["1.20", "1.21", "1.22", "1.23"] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.goversion }} - name: Run tests @@ -47,21 +43,21 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - buildversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"] - testversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"] + buildversion: ["1.20", "1.21", "1.22", "1.23"] + testversion: ["1.20", "1.21", "1.22", "1.23"] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go to build artifact - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.buildversion }} - name: Build artifact for inttest run: | go version - GO111MODULE=on make build-linux + make build-linux - name: Install Go for inttest - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.testversion }} - name: Integration test @@ -69,24 +65,3 @@ jobs: go version make inttest - build: - runs-on: ubuntu-latest - needs: [lint, test, inttest] - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Install Go - uses: actions/setup-go@v4 - with: - go-version: 1.21.x - - name: build - run: | - go version - make build-linux - make build-windows - make build-darwin - - name: upload artifacts - uses: actions/upload-artifact@master - with: - name: bin - path: bin/ diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..b55599e --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,46 @@ +version: 2 +before: + hooks: + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + dir: . + goos: + - linux + - darwin + - windows + - freebsd + - openbsd + goarch: + - amd64 + - arm + - arm64 + goarm: + - 6 + - 7 + ignore: + - goos: darwin + goarch: arm + - goos: openbsd + goarch: arm64 + - goos: windows + goarch: arm +archives: + - files: + - README.md + - LICENSE + - CHANGELOG.md + format_overrides: + - goos: windows + format: zip +checksum: + name_template: 'checksums.txt' +snapshot: + version_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/CHANGELOG.md b/CHANGELOG.md index 79cd588..8ef63fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # changelog for gcov2lcov +## 1.1.0 [2024-10-11] + +* use gorealser for builds and provide additional versions +* dependency upgrades + ## 1.0.6 [2023-08-18] * performance otimizations (thanks to zzh8829, #16)