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