Skip to content

Commit

Permalink
ci-cd: update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
i-sevostyanov committed Aug 6, 2024
1 parent 1c54fc6 commit 7570d5f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 122 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

40 changes: 22 additions & 18 deletions .github/workflows/lint-n-test.yml → .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
---
name: "Lint and test"
name: Go
on:
push:
tags:
- v*
paths-ignore:
- '*.md'
branches:
- master
- main
pull_request:

jobs:
golangci-lint:
vuln-check:
runs-on: ubuntu-latest
steps:
- uses: golang/govulncheck-action@v1
with:
go-version-file: go.mod

tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
skip-cache: true
tests:
needs: golangci-lint
- name: Run tests
run: make test

golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run test coverage
run: make coverage
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
- uses: golangci/golangci-lint-action@v6
with:
version: latest
skip-cache: true
37 changes: 0 additions & 37 deletions .github/workflows/tag.yml

This file was deleted.

0 comments on commit 7570d5f

Please sign in to comment.