Skip to content

Commit

Permalink
Pipelines updates
Browse files Browse the repository at this point in the history
* `.github/dependabot.yml`: Remove unnecessary properties
* `.github/workflows/tests.yaml`:
  * Ignore failing Windows tests: Should we even support it?
  * Downgrade `codecov/codecov-action@v3` for "obvious reasons"

Additionally, pin all non-GitHub actions

Signed-off-by: Stavros Ntentos <[email protected]>
  • Loading branch information
stdedos committed Jun 25, 2024
1 parent 4c62d9c commit d278479
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
13 changes: 1 addition & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,18 @@ updates:
directory: "/"
schedule:
interval: "weekly"
time: "08:00"
labels:
- "dependencies"
commit-message:
prefix: "feat"
include: "scope"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
time: "08:00"
labels:
- "dependencies"
commit-message:
prefix: "chore"
include: "scope"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
time: "08:00"
labels:
- "dependencies"
commit-message:
prefix: "feat"
include: "scope"
6 changes: 1 addition & 5 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: GoReleaser

on:
push:
# run only against tags
tags:
- "*"

Expand All @@ -25,13 +24,10 @@ jobs:
cache: true
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
- uses: goreleaser/goreleaser-action@v2
- uses: goreleaser/goreleaser-action@d33b6f6aeabd7fed8bb3fbf32c4d890d29f48545 # v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit-ci-lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: go mod tidy

- uses: pre-commit/[email protected]
- uses: pre-commit/action@f7acafac0271bdd064cdfa1b13f17b4350e565ed # v3.0.1

- uses: pre-commit-ci/[email protected]
- uses: pre-commit-ci/lite-action@9d882e7a565f7008d4faf128f27d1cb6503d4ebf # v1.0.2
if: always()
5 changes: 3 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ jobs:
run: go mod tidy

- name: Run tests
continue-on-error: ${{ matrix.os == 'windows-latest' && 'true' || 'false' }}
run: go test $(go list ./... | grep -v /junit2html/example) -race -coverprofile=coverage.out

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.os }},go${{ steps.go_version.outputs.version }}
fail_ci_if_error: ${{ github.repository_owner == 'stdedos' && 'true' || 'false' }}
fail_ci_if_error: ${{ matrix.os == 'windows-latest' && 'false' || github.repository_owner == 'stdedos' && 'true' || 'false' }}

0 comments on commit d278479

Please sign in to comment.