chore(deps): bump github.com/prometheus/client_golang from 1.18.0 to 1.20.4 #508
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Import | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
# Abort prior jobs in the same workflow / PR | |
concurrency: | |
group: import-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-import: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Setup Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Run test Go program that imports Zarf | |
run: | | |
cd $(mktemp -d) | |
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.event.pull_request.head.repo.full_name }}@${COMMIT_SHA:0:12} | |
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 | |
import ( | |
"fmt" | |
"github.com/zarf-dev/zarf/src/api/v1alpha1" | |
"github.com/zarf-dev/zarf/src/pkg/packager" | |
) | |
func main() { | |
fmt.Println(packager.Packager{}) | |
fmt.Println(v1alpha1.ZarfComponent{}) | |
} |