Skip to content

Commit

Permalink
fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Jun 24, 2024
1 parent 5c8e5d6 commit 5fa08fc
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: '^1.22.3'
Expand All @@ -26,6 +27,7 @@ jobs:
with:
path: |
~/.cache/go-build
~/go/pkg/mod
/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
Expand All @@ -47,21 +49,22 @@ jobs:
- name: Run Static Code Analysis
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && golangci-lint run

- name: Run Unit Tests
run: bash coverage.sh

- name: Upload Test Coverage
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage.out

- name: Build
run: go build -o wpokt-oracle .

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: wpokt-oracle
path: wpokt-oracle
# - name: Upload Test Coverage
# uses: actions/upload-artifact@v3
# with:
# name: coverage-report
# path: coverage.out
#
# - name: Upload Build Artifact
# uses: actions/upload-artifact@v3
# with:
# name: wpokt-oracle
# path: wpokt-oracle
#

0 comments on commit 5fa08fc

Please sign in to comment.