Skip to content

Bump codecov/codecov-action from 4.5.0 to 4.6.0 #337

Bump codecov/codecov-action from 4.5.0 to 4.6.0

Bump codecov/codecov-action from 4.5.0 to 4.6.0 #337

Workflow file for this run

name: "Code Analysis"
on:
push:
tags:
- v*
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 0"
concurrency:
group: ${{ format('{0}-{1}', github.workflow, github.head_ref) }}
cancel-in-progress: true
env:
GO: "1.19"
jobs:
CodeQL:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
UnitTests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO }}
- name: Run Unit Tests
run: go test -race -cover -coverprofile=coverage.out -covermode=atomic
- name: Codecov
uses: codecov/codecov-action@v4.6.0
with:
file: ./coverage.out
GolangCI-Lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO }}
- name: Run GolangCi-Lint
uses: golangci/golangci-lint-action@v6.1.0
with:
version: latest
skip-build-cache: true