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

40 lines
908 B
YAML
Raw Normal View History

2023-08-16 11:20:10 +02:00
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
2023-08-16 11:23:07 +02:00
uses: https://git.44net.ch/actions/docker-run-action@main
2023-08-16 11:20:10 +02:00
with:
2023-08-16 11:56:27 +02:00
debug: true
2023-08-16 11:20:10 +02:00
image: debian:11-slim
volumes: /tmp/:/tmp/
options: -e TESTENV=${{ gitea.workspace }}
2023-08-16 12:16:35 +02:00
run: env
2023-08-16 11:20:10 +02:00
- name: multi-line options
2023-08-16 11:23:07 +02:00
uses: https://git.44net.ch/actions/docker-run-action@main
2023-08-16 11:20:10 +02:00
with:
2023-08-16 11:56:27 +02:00
debug: true
2023-08-16 11:20:10 +02:00
image: debian:11-slim
2023-08-16 11:44:42 +02:00
volumes: >-
2023-08-16 11:20:10 +02:00
/tmp/:/tmp/
README.md:/README.md
2023-08-16 11:44:42 +02:00
options: >-
2023-08-16 11:20:10 +02:00
-e TESTENV=${{ gitea.workspace }}
-e TESTENV2=TESTENV2
2023-08-16 11:44:42 +02:00
run: >-
2023-08-16 12:05:57 +02:00
sh -c
2023-08-16 12:10:20 +02:00
echo "test"