gocheckout/.gitea/workflows/workflow.yaml
wispem-wantex c5c566f85c
All checks were successful
Self Test / test (push) Successful in 23s
Try adding cache volume
2025-06-07 06:58:08 -04:00

34 lines
729 B
YAML

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