gocheckout/.gitea/workflows/workflow.yaml
wispem-wantex cc08cf2ee9
Some checks failed
Self Test / test (push) Has been cancelled
Fix env var syntax
2025-06-07 06:59:39 -04:00

34 lines
719 B
YAML

name: Self Test
on: [push]
jobs:
test:
container:
image: offline-twitter/go
volumes:
- woodpecker-gocache:/go-cache-volume
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