Skip to content

Commit

Permalink
Fix test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Jan 24, 2024
1 parent 32fcdc6 commit 5b4b894
Showing 1 changed file with 37 additions and 36 deletions.
73 changes: 37 additions & 36 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,40 +113,41 @@ jobs:
# name: "${{ github.sha }}-integration-coverage"
# path: ./tests/integration-profile.out

# test-e2e:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v4
# with:
# go-version: "1.21"
# check-latest: true
# cache: true
# cache-dependency-path: go.sum
# - uses: technote-space/get-diff-action@v6.1.2
# id: git_diff
# with:
# PATTERNS: |
# **/*.go
# go.mod
# go.sum
# **/go.mod
# **/go.sum
# **/Makefile
# Makefile
# - name: e2e tests
# if: env.GIT_DIFF
# run: |
# make test-e2e-cov
# - uses: actions/upload-artifact@v3
# if: env.GIT_DIFF
# with:
# name: "${{ github.sha }}-e2e-coverage"
# path: ./tests/e2e-profile.out
test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true
cache: true
cache-dependency-path: go.sum
- uses: technote-space/get-diff-action@v6.1.2
id: git_diff
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/go.mod
**/go.sum
**/Makefile
Makefile
- name: e2e tests
if: env.GIT_DIFF
run: |
make test-e2e-cov
- uses: actions/upload-artifact@v3
if: env.GIT_DIFF
with:
name: "${{ github.sha }}-e2e-coverage"
path: ./tests/e2e-profile.out

repo-analysis:
runs-on: ubuntu-latest
needs: [tests, test-integration, test-e2e]
# needs: [tests, test-integration, test-e2e]
needs: [tests, test-e2e]
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6.1.2
Expand Down Expand Up @@ -178,11 +179,11 @@ jobs:
# if: env.GIT_DIFF
# with:
# name: "${{ github.sha }}-integration-coverage"
# - uses: actions/download-artifact@v3
# if: env.GIT_DIFF
# with:
# name: "${{ github.sha }}-e2e-coverage"
# continue-on-error: true
- uses: actions/download-artifact@v3
if: env.GIT_DIFF
with:
name: "${{ github.sha }}-e2e-coverage"
continue-on-error: true
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }}
uses: SonarSource/sonarcloud-github-action@master
Expand Down

0 comments on commit 5b4b894

Please sign in to comment.