This repository has been archived on 2024-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
docker-run-action/.gitea/workflows/tests.yml
Ivan Schaller 51996b4b33
Some checks failed
run tests / run-container (push) Failing after 5s
add debug and fix printf
2023-08-16 11:56:27 +02:00

39 lines
921 B
YAML

name: run tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
run-container:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: single-line options
uses: https://git.44net.ch/actions/docker-run-action@main
with:
debug: true
image: debian:11-slim
volumes: /tmp/:/tmp/
options: -e TESTENV=${{ gitea.workspace }}
run: echo "test"
- name: multi-line options
uses: https://git.44net.ch/actions/docker-run-action@main
with:
debug: true
image: debian:11-slim
volumes: >-
/tmp/:/tmp/
README.md:/README.md
options: >-
-e TESTENV=${{ gitea.workspace }}
-e TESTENV2=TESTENV2
run: >-
/bin/sh -c
echo "test"