Skip to content

Commit

Permalink
update .github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Dec 30, 2024
1 parent 4dbce2d commit e7e4dd6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 34 deletions.
6 changes: 1 addition & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

---
version: 2
updates:
- package-ecosystem: "gomod"
Expand Down
3 changes: 1 addition & 2 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# .github/release.yml

---
changelog:
exclude:
labels:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
---
name: 'Dependency Review'
on: [pull_request]

Expand Down
32 changes: 15 additions & 17 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

---
name: Go

on:
Expand All @@ -16,23 +14,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.21.x','1.22.x']
go: ['1.21.x', '1.22.x', '1.23.x']
name: Go ${{ matrix.go }} job
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Test
run: make test
- name: Test
run: make test

- name: Coverage
run: make coverage
- name: Coverage
run: make coverage

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7 changes: 3 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: golangci-lint

on:
Expand All @@ -8,8 +9,6 @@ on:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

jobs:
lint:
Expand All @@ -20,8 +19,8 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: stable
- run: make info tidy go_fix go_vet
- run: make info go_fix go_vet
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.58
version: v1.62.2

0 comments on commit e7e4dd6

Please sign in to comment.