Only changes test files.
---
- remove tests specific to running on a host with no container
they are the same as with the containers (TestRunEventHostEnvironment)
- prefix the name of the tests with a distinctive name to
more easily run them together
- use code.forgejo.org/oci images whereever possible
- remove some tests that are either
- difficult to understand (ancient bugs)
- not yet well understood (related to reusable workflows)
- depend on github (generation of workflows to be run on the fly
e.g. updateTestIfWorkflow)
- fix the TestSanitizeNetworkAlias tests that were not run
and make them easier to debug
- disable tests of options that are forbidden in Forgejo Actions
(testdata/container-hostname/push.yml)
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/202
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
18 lines
508 B
YAML
18 lines
508 B
YAML
name: Job Container
|
|
on: push
|
|
|
|
jobs:
|
|
with-volumes:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: code.forgejo.org/oci/node:22-bookworm
|
|
volumes:
|
|
- my_docker_volume:/path/to/volume
|
|
- /path/to/nonexist/directory
|
|
- /proc/sys/kernel/random/boot_id:/current/boot_id
|
|
steps:
|
|
- run: |
|
|
set -ex
|
|
test -d /path/to/volume
|
|
test "$(cat /proc/sys/kernel/random/boot_id)" = "$(cat /current/boot_id)"
|
|
test -d /path/to/nonexist/directory
|