test(gh): Ordering steps...

I'm stupid... I need to upload artifacts after the creation.
This commit is contained in:
2024-12-05 07:08:16 +01:00
parent b93a3df98c
commit dcd282779f

View File

@@ -12,12 +12,6 @@ jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/upload-artifact@v4
with:
name: tests-results
path: |
coverprofile.out
gotest.json
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
@@ -31,6 +25,12 @@ jobs:
- name: Launch Test - name: Launch Test
run: | run: |
go vet ./... && go test -coverprofile=coverprofile.out -json -v ./... > gotest.json go vet ./... && go test -coverprofile=coverprofile.out -json -v ./... > gotest.json
- uses: actions/upload-artifact@v4
with:
name: tests-results
path: |
coverprofile.out
gotest.json
sonar: sonar:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: tests needs: tests