Skip to content

Commit

Permalink
ci: improve lint and test jobs (#339)
Browse files Browse the repository at this point in the history
- Add a renovate regex comment to renovate the golangci-lint version
- Merge golangci-lint workflow in the ci workflow
- Rename build job to test job
- Cleanup
  • Loading branch information
jooola authored Nov 6, 2023
1 parent 9558239 commit 7927ef1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 42 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
name: Continuous Integration
name: CI

on:
pull_request:
push:
branches:
- main
- release-1.x
pull_request:

jobs:
build:
name: Build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: false

- uses: golangci/golangci-lint-action@v3
with:
version: v1.55.1 # renovate: datasource=github-releases depName=golangci/golangci-lint

test:
strategy:
matrix:
go-version: ["1.19", "1.20", "1.21"]

runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Run tests
run: go test -v ./...

- run: go test -v ./...
32 changes: 0 additions & 32 deletions .github/workflows/golangci-lint.yml

This file was deleted.

0 comments on commit 7927ef1

Please sign in to comment.