Skip to content

Bump codecov/codecov-action from 3.1.4 to 3.1.5 #215

Bump codecov/codecov-action from 3.1.4 to 3.1.5

Bump codecov/codecov-action from 3.1.4 to 3.1.5 #215

Workflow file for this run

name: "Code Analysis"
on:
push:
tags:
- v*
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 0"
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
strategy:
matrix:
go:
- "1.18"
- "1.19"
- "1.20"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
- name: Run Unit Tests
run: go test -race -cover -coverprofile=coverage.out -covermode=atomic
- name: Codecov
uses: codecov/codecov-action@v3.1.5
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
- name: Run GolangCi-Lint
uses: golangci/golangci-lint-action@v3.7.0
with:
version: latest
skip-build-cache: true