gocheckout/.gitea/workflows/workflow.yaml
wispem-wantex ebfbfe8509
Some checks failed
Self Test / test (push) Failing after 0s
Add docker socket, go debug
2025-06-07 07:05:35 -04:00

43 lines
885 B
YAML

name: Self Test
on: [push]
jobs:
test:
container:
image: offline-twitter/go
volumes:
- woodpecker-gocache:/go-cache-volume
- /var/run/docker.sock:/var/run/docker.sock
env:
GOPATH: /go-cache-volume
GOCACHE: /go-cache-volume/build-cache
steps:
- name: checkout
uses: https://${{ secrets.GITHUB_TOKEN }}:@git.offline-twitter.com/offline-labs/shellcheckout@${{ github.ref }}
- name: wc -l
run: wc -l checkout.go
- name: Go build
run: go build -o checkout ./checkout.go
- name: Run checkout
run: |
mkdir -p testdir
cd testdir
../checkout
- name: wc -l 2
run: |
cd testdir
wc -l checkout.go
- name: debug
run: |
env
ls -l /go*
ls -l /var/run
go env