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 e30de98e6a
Some checks failed
run tests / run-container (push) Failing after 6s
make entrypoint optional
2023-08-16 12:10:20 +02:00

40 lines
938 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: env; 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: >-
env;
sh -c
echo "test"