test-project/.gitea/workflows/test-flow.yml

45 lines
1.1 KiB
YAML

name: Test Workflow
on:
pull_request:
branches: '*'
push:
branches: '*'
env:
DOCKER_HOST: unix:///var/run/dind.sock
DOCKER_DRIVER: overlay2
jobs:
test:
name: "Publish"
runs-on: ubuntu-latest
steps:
- name: "Clone project repository"
uses: actions/checkout@v3
- name: "Dump environment"
run: env
- name: Dump GitHub context
run: echo '${{ toJSON(github) }}'
- name: Dump job context
run: echo '${{ toJSON(job) }}'
- name: Dump steps context
run: echo '${{ toJSON(steps) }}'
- name: Dump runner context
run: echo '${{ toJSON(runner) }}'
- name: Dump strategy context
run: echo '${{ toJSON(strategy) }}'
- name: Dump matrix context
run: echo '${{ toJSON(matrix) }}'
- name: Dump vars context
run: echo '${{ toJSON(vars) }}'
- name: Dump secrets context
run: echo '${{ toJSON(secrets) }}'
- name: Start dockerd
run: |
dockerd -H $DOCKER_HOST --userland-proxy=false &
sleep 5
- name: Run test script
run: ./scripts/run-test.sh