Skip to content

Commit

Permalink
test import
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Aug 29, 2024
1 parent d7eb999 commit 39b54de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:

- name: Run test Go program that imports Zarf
run: |
cd $(mktemp -d)
cd ..
mkdir test-import
cd test-import
echo "$GO_MAIN" > main.go
go mod init github.com/zarf-dev/test-import
go mod edit -replace github.com/zarf-dev/zarf=github.com/${{ github.repository }}@${COMMIT_SHA:0:12}
go mod edit -replace github.com/zarf-dev/zarf=../zarf
go mod tidy
cat go.mod | grep -q ${COMMIT_SHA:0:12}
go run main.go
env:
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
GO_MAIN: |
package main
Expand Down

0 comments on commit 39b54de

Please sign in to comment.