Skip to content

Commit

Permalink
Adjusted flow
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed Aug 10, 2024
1 parent 06634bd commit a1fbb3a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 125 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/changelog.yml

This file was deleted.

73 changes: 0 additions & 73 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

17 changes: 6 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Go

on:
push:
branches:
- main
branches: [ master ]
pull_request:
branches:
- main
branches: [ master ]

jobs:
build:
Expand All @@ -17,13 +15,13 @@ jobs:

steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
- run: go version

- name: Checkout repository
uses: actions/checfkout@v3
uses: actions/checkout@v4

- name: Examine source code
run: go vet -v ./...
Expand All @@ -33,9 +31,6 @@ jobs:

- name: Test
run: make test/codecov

- name: Finish
run: bash <(curl -s https://codecov.io/bash)

- name: Update Go report card
uses: creekorful/goreportcard-action@v1.0

13 changes: 7 additions & 6 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
tags:
- v*
branches:
- main
- master
pull_request:
branches:
- main
- master
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
Expand All @@ -20,16 +20,16 @@ jobs:

steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
- run: go version

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
Expand All @@ -48,3 +48,4 @@ jobs:

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true

10 changes: 5 additions & 5 deletions .github/workflows/staticcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
go: ["1.21.x"]
go: ["1.22.x"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: WillAbides/setup-go-faster@v1.7.0
- uses: WillAbides/setup-go-faster@v1.14.0
with:
go-version: ${{ matrix.go }}
- run: "go test ./..."
- run: "go vet ./..."
- uses: dominikh/staticcheck-action@v1.2.0
- uses: dominikh/staticcheck-action@v1.3.1
with:
version: "2022.1"
version: "latest"
install-go: false
cache-key: ${{ matrix.go }}

0 comments on commit a1fbb3a

Please sign in to comment.