mirror of
https://codeberg.org/scip/subst.git
synced 2025-12-16 20:21:04 +01:00
25 lines
613 B
YAML
25 lines
613 B
YAML
matrix:
|
|
include:
|
|
# - image: perl:5.36.0-slim-bullseye
|
|
# - image: perl:5.38.0-slim-bookworm
|
|
# - image: perl:5.40.0-slim-bookworm
|
|
# - image: perl:5.42.0-slim-bookworm
|
|
- image: perl:5.43.5-slim-bookworm
|
|
|
|
steps:
|
|
test:
|
|
when:
|
|
event: [push]
|
|
image: ${image}
|
|
commands:
|
|
- perl subst -r 's/2025/foobar/' t/file*
|
|
- grep foobar t/file*
|
|
- cp t/file1 t/huh.1
|
|
- cp t/file1 t/mor.2
|
|
- cd t
|
|
- perl ../subst -m 's/(huh|mor)/sub/g' '/.\d$/'
|
|
- cd ..
|
|
- ls -l t/sub.1 t/sub.2
|
|
- perl subst -R -m 's/sub/ord/g' t
|
|
- ls -l t/ord.1 t/ord.2
|