test-forgejo-runner/.forgejo/workflows/demo.yaml
Julien Oculi 9b10cd8125
Some checks failed
Named workflow / test (push) Failing after 9s
ci: fix command syntax
2024-01-17 17:31:55 +01:00

45 lines
1.3 KiB
YAML

name: Named workflow
on:
push:
branches: ["main"]
jobs:
test:
runs-on: docker
steps:
- name: Debug runner (act actions path)
run: ls -lah /var/run/act/workflow
- name: Debug get user and shell
run: users; whoami; echo $SHELL
- name: Test checkout commands
run: "\
git init /workspace/julien.oculi/test-forgejo-runner && \
git remote add origin http://localhost:10001/julien.oculi/test-forgejo-runner && \
git config --local http.http://localhost:10001/.extraheader AUTHORIZATION: basic *** && \
git git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +2b3aefde1b6cbdf9e0a3bce32f86a0d069fc7c37:refs/remotes/origin/main"
# - name: Debug runner (act help)
# run: act --help
# - name: Debug runner (act version)
# run: act --version
- 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
- name: Setup repo
uses: actions/checkout@v4
- name: Testing runner
run: echo All Good
- name: Testing local fs
run: ls -lah .
- name: Testing working directory
run: pwd