git-chglog/.github/workflows/ci.yml
renovate[bot] 65fd9c7cb6
fix(deps): update all non-major dependencies (#269)
* fix(deps): update all non-major dependencies

* chore: bump go to v1.24

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: build and lint

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: goreleaser

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: goveralls

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: remove deprecatad linter

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: goveralls latest version install

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: linter

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: bump ci linter to v1.64.7

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: bump ci linter to v1.64.7 and fix issues

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

* fix: remove version from linter yaml

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>

---------

Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com>
2025-03-26 17:06:17 +01:00

105 lines
2.3 KiB
YAML

name: ci
on:
pull_request:
types: ["opened", "synchronize"]
paths-ignore:
- "README.md"
push:
branches:
- master
paths-ignore:
- "README.md"
env:
GO_VERSION: "1.24"
GOLANGCI_VERSION: "v1.64.8"
jobs:
tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run tests
run: make test
- name: Install goveralls
run: |
go install github.com/mattn/goveralls@latest
echo $GOPATH
ls -lash $GOPATH
which goveralls
working-directory: /tmp
- name: Send coverage
run: goveralls -coverprofile=cover.out -service=github
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GOLANGCI_VERSION }}
docker-image-tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run tests
run: make build
- name: Test docker image
run: |
docker build -t git-chglog:ci-build .
docker run -v ${GITHUB_WORKSPACE}:/workdir -w /workdir git-chglog:ci-build > ${GITHUB_WORKSPACE}/ci-build.md
head ${GITHUB_WORKSPACE}/ci-build.md
goreleaser-test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean --skip=publish --snapshot