Ivan Schaller
0728da8404
All checks were successful
run tests / run-container (push) Successful in 7s
39 lines
908 B
YAML
39 lines
908 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
|
|
|
|
- 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: >-
|
|
sh -c
|
|
echo "test"
|