Skip to content

Commit

Permalink
try adding gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Aug 18, 2024
1 parent d734624 commit b8d55be
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test-docker-ci-debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is GENERATED BY CI-testing/generate_gh_actions.py

jobs:
test-docker-ci-debian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update -qq
- run: sudo apt-get -y remove libgd3 libunwind-14 nginx
- run: sudo apt-get --no-install-recommends install -y eatmydata
- run: sudo eatmydata apt-get --no-install-recommends install
-y build-essential
cpanminus libperl-dev libxml2-dev
libxslt1-dev perl xz-utils zip
- run: sudo cpanm --verbose Carp Carp::Always
Docker::CLI::Wrapper::Container
Moo Path::Tiny
- run: perl bin/docker-ci-run.pl --regex-filter='debian'
timeout-minutes: 20
name: test-docker-ci-debian
'on':
- push
22 changes: 22 additions & 0 deletions .github/workflows/test-docker-ci-fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is GENERATED BY CI-testing/generate_gh_actions.py

jobs:
test-docker-ci-fedora:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update -qq
- run: sudo apt-get -y remove libgd3 libunwind-14 nginx
- run: sudo apt-get --no-install-recommends install -y eatmydata
- run: sudo eatmydata apt-get --no-install-recommends install
-y build-essential
cpanminus libperl-dev libxml2-dev
libxslt1-dev perl xz-utils zip
- run: sudo cpanm --verbose Carp Carp::Always
Docker::CLI::Wrapper::Container
Moo Path::Tiny
- run: perl bin/docker-ci-run.pl --regex-filter='fedora'
timeout-minutes: 20
name: test-docker-ci-fedora
'on':
- push
33 changes: 33 additions & 0 deletions CI-testing/generate_gh_actions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file is GENERATED BY
# bin/CI-testing/translate-travis.yml-to-github-actions.py
TMPL = """
jobs:
test-docker-ci-{sys}:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update -qq
- run: sudo apt-get -y remove libgd3 libunwind-14 nginx
- run: sudo apt-get --no-install-recommends install -y eatmydata
- run: sudo eatmydata apt-get --no-install-recommends install
-y build-essential
cpanminus libperl-dev libxml2-dev
libxslt1-dev perl xz-utils zip
- run: sudo cpanm --verbose Carp Carp::Always
Docker::CLI::Wrapper::Container
Moo Path::Tiny
- run: perl bin/docker-ci-run.pl --regex-filter='{sysregex}'
timeout-minutes: 20
name: test-docker-ci-{sys}
'on':
- push
"""

for rec in [{'dist': "debian", }, {'dist': "fedora", }, ]:
dist = rec['dist']
outs = TMPL.format(sys=dist, sysregex=dist)
with open(".github/workflows/test-docker-ci-{sys}.yml".format(sys=dist),
"wt") as fh:
fh.write("# This file is GENERATED BY {}\n".format(
"CI-testing/generate_gh_actions.py"))
fh.write(outs)

0 comments on commit b8d55be

Please sign in to comment.