From 6136c1f333e6d0030a93f0cba5666c5224fa91aa Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Sun, 4 Aug 2024 10:59:21 +0300 Subject: [PATCH] separate --- github-ci/actions-for-nodejs.md | 11 +++ github-ci/actions-for-perl.md | 38 ++++++++++ github-ci/actions-for-python.md | 34 +++++++++ github-ci/actions.md | 71 ------------------- .../workflows/perl_makefile_tester.yml | 38 ---------- github-ci/github-ci.json | 2 + 6 files changed, 85 insertions(+), 109 deletions(-) create mode 100644 github-ci/actions-for-nodejs.md create mode 100644 github-ci/actions-for-python.md delete mode 100644 github-ci/examples/workflows/perl_makefile_tester.yml diff --git a/github-ci/actions-for-nodejs.md b/github-ci/actions-for-nodejs.md new file mode 100644 index 000000000..fcd63c0a4 --- /dev/null +++ b/github-ci/actions-for-nodejs.md @@ -0,0 +1,11 @@ +# GitHub Actions for NodeJS +{id: actions-for-nodejs} + + +## NodeJS and OS matrix +{id: nodejs-os-matrix} + +![](examples/workflows/nodejs-os-matrix.yml) + + + diff --git a/github-ci/actions-for-perl.md b/github-ci/actions-for-perl.md index 64d52c152..f1c7da91d 100644 --- a/github-ci/actions-for-perl.md +++ b/github-ci/actions-for-perl.md @@ -18,6 +18,12 @@ e.g. [DBI](https://metacpan.org/pod/DBI) and [DBI Matrix](http://matrix.cpantesters.org/?dist=DBI+1.643) + +## Perl with Makefile.PL +{id: perl-with-makefile} + +* [Makefile.PL](https://github.com/szabgab/github-actions-perldocker-perl-tester) with perldocker/perl-tester image. + ## Case studies {id: github-actions-for-per-case-studies} @@ -31,4 +37,36 @@ e.g. [DBI](https://metacpan.org/pod/DBI) and [DBI Matrix](http://matrix.cpantest * [DBD::Pg](https://metacpan.org/pod/DBD::Pg) +## Examples - Perl +{id: examples-perl} + +* [docker-perl-tester](https://github.com/Perl/docker-perl-tester/tree/master/.github/workflows) +* [Test2-Harness](https://github.com/Test-More/Test2-Harness/tree/master/.github/workflows) +* [Perl Power Tools](https://github.com/briandfoy/PerlPowerTools) + +* [Perl tester Docker image](https://hub.docker.com/r/perldocker/perl-tester) + +* [CI Perl Tester Helpers](https://github.com/oalders/ci-perl-tester-helpers) +* [Presentation](https://www.youtube.com/watch?v=WfXo71I7LmE&list=PLA9_Hq3zhoFznY_cvm5iAbUZ9T6-6zbIu&index=38) of Olaf Alders +* [Slides](https://github.com/oalders/presentations/blob/master/slides/4-github-actions/marp.pdf) of Olaf Alders + +auto-build-and-test-dist + + +## Perl and OS matrix +{id: perl-os-matrix} + +![](examples/workflows/perl-os-matrix.yml) + +## Perl and OS matrix - show error logs +{id: perl-os-matrix-show-error-logs} + +![](examples/workflows/perl-os-matrix-show-logs.yml) + +## Perl and OS matrix - avoid warnings +{id: perl-os-matrix-avoid-warnings} + +![](examples/workflows/perl-os-matrix-no-warnings.yml) + + diff --git a/github-ci/actions-for-python.md b/github-ci/actions-for-python.md new file mode 100644 index 000000000..37131843f --- /dev/null +++ b/github-ci/actions-for-python.md @@ -0,0 +1,34 @@ +# GitHub Actions for Python +{id: actions-for-python} + + +## Python +{id: github-actions-python} + +* A demo to show a simple task before we start learning about the YAML files from scratch + +![](examples/workflows/python.yml) + +![](examples/requirements.txt) + +![](examples/test_demo.py) + + + +## Examples - Python +{id: examples-python} + +* [TFkit](https://github.com/voidful/TFkit/blob/master/.github/workflows/python-package.yml) + +* [Awesome actions](https://github.com/sdras/awesome-actions) + +* [Run GitHub Actions locally](https://github.com/nektos/act) + +## Python with Matrix +{id: github-actions-python-matrix} + +![](examples/workflows/python_matrix.yml) + + + + diff --git a/github-ci/actions.md b/github-ci/actions.md index 86486956c..1e54e9bef 100644 --- a/github-ci/actions.md +++ b/github-ci/actions.md @@ -39,18 +39,6 @@ * There are many ready-made workflows one can get started with in a few clicks. -## Python -{id: github-actions-python} - -* A demo to show a simple task before we start learning about the YAML files from scratch - -![](examples/workflows/python.yml) - -![](examples/requirements.txt) - -![](examples/test_demo.py) - - ## Minimal Ubuntu Linux configuration {id: minimal-linux-configuration} @@ -173,18 +161,6 @@ jobs: ![](examples/workflows/schedule_and_conditional.yml) -## Python with Matrix -{id: github-actions-python-matrix} - -![](examples/workflows/python_matrix.yml) - - -## Perl with Makefile.PL -{id: perl-with-makefile} - -![](examples/workflows/perl_makefile_tester.yml) - - ## Available GitHub actions {id: available-github-actions} @@ -203,32 +179,6 @@ a script that will copy it, if necessary. Then I'd call that script in my YAML f ![](examples/workflows/create_file.yml) -## Examples - Perl -{id: examples-perl} - -* [docker-perl-tester](https://github.com/Perl/docker-perl-tester/tree/master/.github/workflows) -* [Test2-Harness](https://github.com/Test-More/Test2-Harness/tree/master/.github/workflows) -* [Perl Power Tools](https://github.com/briandfoy/PerlPowerTools) - -* [Perl tester Docker image](https://hub.docker.com/r/perldocker/perl-tester) - -* [CI Perl Tester Helpers](https://github.com/oalders/ci-perl-tester-helpers) -* [Presentation](https://www.youtube.com/watch?v=WfXo71I7LmE&list=PLA9_Hq3zhoFznY_cvm5iAbUZ9T6-6zbIu&index=38) of Olaf Alders -* [Slides](https://github.com/oalders/presentations/blob/master/slides/4-github-actions/marp.pdf) of Olaf Alders - -auto-build-and-test-dist - - - -## Examples - Python -{id: examples-python} - -* [TFkit](https://github.com/voidful/TFkit/blob/master/.github/workflows/python-package.yml) - -* [Awesome actions](https://github.com/sdras/awesome-actions) - -* [Run GitHub Actions locally](https://github.com/nektos/act) - ## OS Matrix (Windows, Linux, Mac OSX) {id: os-matrix} @@ -250,27 +200,6 @@ auto-build-and-test-dist ![](examples/workflows/generate-github-pages.yml) -## Perl and OS matrix -{id: perl-os-matrix} - -![](examples/workflows/perl-os-matrix.yml) - -## Perl and OS matrix - show error logs -{id: perl-os-matrix-show-error-logs} - -![](examples/workflows/perl-os-matrix-show-logs.yml) - -## Perl and OS matrix - avoid warnings -{id: perl-os-matrix-avoid-warnings} - -![](examples/workflows/perl-os-matrix-no-warnings.yml) - -## NodeJS and OS matrix -{id: nodejs-os-matrix} - -![](examples/workflows/nodejs-os-matrix.yml) - - ## Workflow Dispatch (manually and via REST call) {id: workflow-dispatch} diff --git a/github-ci/examples/workflows/perl_makefile_tester.yml b/github-ci/examples/workflows/perl_makefile_tester.yml deleted file mode 100644 index 7a45ef66a..000000000 --- a/github-ci/examples/workflows/perl_makefile_tester.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: CI - -on: [push, pull_request] - -jobs: - perl-job: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - perl-version: - - '5.30' -# - '5.32' -# - 'latest' - container: - image: perldocker/perl-tester:${{ matrix.perl-version }} # https://hub.docker.com/r/perldocker/perl-tester - name: Perl ${{ matrix.perl-version }} - steps: - - uses: actions/checkout@v3 - - name: Regular tests - run: | - cpanm --installdeps --notest . - perl Makefile.PL - make - make test - - - - name: Prepare for release tests - run: | - cpanm --installdep . - cpanm --notest Test::CheckManifest Test::Pod::Coverage Pod::Coverage Test::Pod - - name: Release tests - env: - RELEASE_TESTING: 1 - run: | - perl Makefile.PL - make - make test diff --git a/github-ci/github-ci.json b/github-ci/github-ci.json index 563fd6370..a8d344a21 100755 --- a/github-ci/github-ci.json +++ b/github-ci/github-ci.json @@ -13,6 +13,8 @@ "coveralls.md", "actions.md", "actions-for-perl.md", + "actions-for-python.md", + "actions-for-nodejs.md", "circleci.md" ] }