@@ -1,4 +1,4 @@
|
|||||||
name: Debug
|
name: Go Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -10,18 +10,24 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Show workspace
|
- name: Checkout repository
|
||||||
|
run: |
|
||||||
|
git clone \
|
||||||
|
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" \
|
||||||
|
.
|
||||||
|
|
||||||
|
git checkout "${GITHUB_SHA}"
|
||||||
|
|
||||||
|
- name: Verify checkout
|
||||||
run: |
|
run: |
|
||||||
echo "=== Workspace ==="
|
|
||||||
pwd
|
pwd
|
||||||
ls -la
|
ls -la
|
||||||
|
test -f go.mod
|
||||||
|
|
||||||
- name: Dump environment variables
|
- name: Download dependencies
|
||||||
run: |
|
run: |
|
||||||
echo "=== Environment Variables ==="
|
go mod download
|
||||||
env | sort
|
|
||||||
|
|
||||||
- name: Dump relevant variables only
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
echo "=== Repository-related Variables ==="
|
go test ./... -v
|
||||||
env | grep -Ei 'gitea|github|repo|repository|workspace|ci'
|
|
||||||
Reference in New Issue
Block a user