Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Sep 30, 2024
1 parent 6b278cd commit c4879fe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/nolus-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
protogen-image:
name: Ensure protogen image exists
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
outputs:
tag: ${{ steps.ensure.outputs.tag }}
steps:
Expand Down Expand Up @@ -73,6 +76,9 @@ jobs:
builder-image:
name: Ensure builder image exists
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
outputs:
tag: ${{ steps.ensure.outputs.tag }}
steps:
Expand Down Expand Up @@ -165,7 +171,8 @@ jobs:
runs-on: ubuntu-latest
needs: [test-unit-coverage, builder-image]
container:
image: "ghcr.io/${{ github.repository }}/builder:${{ needs.builder-image.outputs.tag }}"
# image name needs to be hardcoded: https://github.com/orgs/community/discussions/26324
image: "ghcr.io/nolus-protocol/nolus-core/builder:1.22.3"

steps:
- uses: actions/checkout@v4
Expand Down
19 changes: 9 additions & 10 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
run:
tests: false
concurrency: 4
timeout: 5m
skip-dirs:
- build # docker files
- .cicd #
- doc

linters:
disable-all: true
enable:
Expand All @@ -7,28 +16,18 @@ linters:
- govet
- ineffassign
- staticcheck
- typecheck
- unused
# Enable linters that are disabled by default
- asciicheck
- bidichk
- bodyclose
# - contextcheck
# - depguard
- godot
- gofmt
- gofumpt
- goimports
- misspell
- whitespace

run:
timeout: 5m
skip-dirs:
- build # docker files
- .cicd #
- doc

output:
# Sort results by: filepath, line and column.
sort-results: true
Expand Down

0 comments on commit c4879fe

Please sign in to comment.