Skip to content

Update golangci-lint action #210

Update golangci-lint action

Update golangci-lint action #210

Workflow file for this run

name: Test gatewayd-plugin-cache
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
test:
name: Test gatewayd-plugin-cache
runs-on: ubuntu-latest
# Timeout after 5 minutes, to avoid hanging tests
timeout-minutes: 5
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Go πŸ§‘β€πŸ’»
uses: actions/setup-go@v3
with:
go-version: "1.23"
- name: Lint code issues 🚨
uses: golangci/golangci-lint-action@v6
- name: Run Go tests πŸ”¬
run: go test -cover -covermode atomic -coverprofile=profile.cov -v ./...
- name: Report coverage to coveralls πŸ“ˆ
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov