Remove repository clone logic and validate the runner-provided workspace directly before executing Go and Bun test steps. Made-with: Cursor
This commit is contained in:
@@ -10,13 +10,10 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout (manual for self-hosted TLS)
|
||||
- name: Prepare workspace
|
||||
run: |
|
||||
rm -rf .git
|
||||
git init .
|
||||
git remote add origin "https://git.produktor.io/${{ github.repository }}"
|
||||
git -c http.sslVerify=false fetch --depth=1 origin "${{ github.sha }}"
|
||||
git checkout --detach FETCH_HEAD
|
||||
ls -la
|
||||
test -f go.mod
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
|
||||
Reference in New Issue
Block a user