test-forgejo-runner/.forgejo/workflows/demo.yaml

35 lines
1.1 KiB
YAML
Raw Normal View History

2024-01-17 13:29:07 +01:00
name: Named workflow
2024-01-17 13:54:25 +01:00
on:
push:
branches: ["main"]
2024-01-16 13:31:33 +01:00
jobs:
test:
runs-on: docker
2024-01-17 13:54:25 +01:00
2024-01-16 13:31:33 +01:00
steps:
2024-01-17 17:37:40 +01:00
- name: Test checkout commands (init)
run: git init /workspace/julien.oculi/test-forgejo-runner
2024-01-18 11:11:38 +01:00
2024-01-17 17:37:40 +01:00
- name: Test checkout commands (remote)
2024-01-18 11:26:41 +01:00
run: git remote add origin http://localhost:10001/julien.oculi/test-forgejo-runner.git
2024-01-17 17:37:40 +01:00
- name: Test checkout commands (config)
run: "git config --local http.http://localhost:10001/.extraheader AUTHORIZATION: basic"
2024-01-18 11:07:03 +01:00
- name: Debug env
2024-01-18 10:44:58 +01:00
run: env
2024-01-18 11:09:57 +01:00
- name: Debug git config (local)
2024-01-18 11:12:37 +01:00
run: cd /workspace/julien.oculi/test-forgejo-runner && git config --local -l
2024-01-18 11:09:57 +01:00
2024-01-18 11:26:41 +01:00
- name: Test checkout commands (fetch)
run: git -c protocol.version=2 fetch -v --no-tags --prune --no-recurse-submodules --depth=1 origin +2b3aefde1b6cbdf9e0a3bce32f86a0d069fc7c37:refs/remotes/origin/main
2024-01-17 14:11:21 +01:00
2024-01-18 10:44:58 +01:00
# - name: 'FIX: fetch actions/checkout@v4'
# run: curl -vL --create-dirs -o /var/run/act/actions/actions-checkout@v4/dist/index.js https://raw.githubusercontent.com/actions/checkout/main/dist/index.js
2024-01-18 10:44:58 +01:00
# - name: Setup repo
2024-01-18 11:11:38 +01:00
# uses: actions/checkout@v4