From a69ecf9f35e57c814e32b7eb12958ac912bd1e54 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 29 May 2023 16:07:00 +0200 Subject: [PATCH] example: container --- .forgejo/workflows/integration.yml | 2 +- testdata/example-container/.forgejo/workflows/test.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 testdata/example-container/.forgejo/workflows/test.yml diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index 9f877e0..4281caa 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -18,7 +18,7 @@ jobs: # ./forgejo-runner.sh setup export FORGEJO_RUNNER_LOGS=forgejo-runner.log - for example in echo ; do + for example in echo container ; do echo "============================ example-$example ===================" ./forgejo-test-helper.sh run_workflow testdata/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token) done diff --git a/testdata/example-container/.forgejo/workflows/test.yml b/testdata/example-container/.forgejo/workflows/test.yml new file mode 100644 index 0000000..f4903a3 --- /dev/null +++ b/testdata/example-container/.forgejo/workflows/test.yml @@ -0,0 +1,8 @@ +on: [push] +jobs: + test: + runs-on: ubuntu-latest + container: + image: alpine:3.18 + steps: + - run: grep Alpine /etc/os-release