Skip to content

Commit

Permalink
Merge pull request #29 from TykTechnologies/fix/artifact-ci
Browse files Browse the repository at this point in the history
Upgrading download-artifact and upload-artifact to fix CIs
  • Loading branch information
mativm02 authored Oct 21, 2024
2 parents 4144482 + c6f1422 commit ead7ac8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version-file: go.mod

- name: Verify dependencies
run: go mod verify
Expand All @@ -30,7 +30,9 @@ jobs:
run: go vet ./...

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Run staticcheck
run: staticcheck ./...
Expand All @@ -43,7 +45,7 @@ jobs:
- name: Run tests
run: task run-tests

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: structviewer
retention-days: 1
Expand Down Expand Up @@ -75,7 +77,7 @@ jobs:
if: ${{ contains(fromJSON('["push","pull_request"]'), github.event_name) }}
run: |
$(go env GOPATH)/bin/golangci-lint run --out-format checkstyle --timeout=300s --max-issues-per-linter=0 --max-same-issues=0 --issues-exit-code=0 --new-from-rev=origin/${{ github.base_ref }} ./... > golanglint.xml
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: golangcilint
retention-days: 1
Expand All @@ -96,11 +98,11 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- name: Download coverage artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: structviewer
- name: Download golangcilint artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: golangcilint
- name: Check reports existence
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/TykTechnologies/structviewer

go 1.19
go 1.22.6

require (
github.com/fatih/structs v1.1.0
Expand Down

0 comments on commit ead7ac8

Please sign in to comment.