From 4a0ae6a8ca0ea4ebc1b3c44da988764cb806b4bd Mon Sep 17 00:00:00 2001 From: chewiebug Date: Sat, 6 Dec 2025 18:26:10 +0100 Subject: [PATCH 1/2] add local Github Actions execution support --- .github/workflows/pullrequest.yaml | 10 +++++----- act/execute-pullrequest-workflow.bat | 3 +++ act/readme.md | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 act/execute-pullrequest-workflow.bat create mode 100644 act/readme.md diff --git a/.github/workflows/pullrequest.yaml b/.github/workflows/pullrequest.yaml index e880289b..25e7a9a3 100644 --- a/.github/workflows/pullrequest.yaml +++ b/.github/workflows/pullrequest.yaml @@ -18,14 +18,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '8' , '11', '17' , '21'] - name: build with Java ${{ matrix.Java }} + java: [ '8', '17', '21', '25'] + name: build with Java ${{ matrix.java }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Java - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: - java-version: ${{ matrix.Java }} + java-version: ${{ matrix.java }} distribution: 'temurin' cache: maven - name: run headless maven build diff --git a/act/execute-pullrequest-workflow.bat b/act/execute-pullrequest-workflow.bat new file mode 100644 index 00000000..f0427958 --- /dev/null +++ b/act/execute-pullrequest-workflow.bat @@ -0,0 +1,3 @@ +pushd .. +act --workflows .\.github\workflows\pullrequest.yaml pull_request -P ubuntu-latest=-self-hosted +popd \ No newline at end of file diff --git a/act/readme.md b/act/readme.md new file mode 100644 index 00000000..93fad753 --- /dev/null +++ b/act/readme.md @@ -0,0 +1,18 @@ +# using act on Windows to run GitHub Actions locally +## introduction +Some notes on how to use [act](https://nektos.github.io/act/) on Windows to run GitHub Actions workflows locally for +quick testing without pushing changes to GitHub. + +The current setup uses the "self-hosted" runner type, which requires all necessary tools to be installed on the host +system (see preconditions). + +## preconditions +the following tools must be installed and available in the system PATH: +- act.exe (https://nektosact.com/installation/index.html) +- node.exe (https://nodejs.org/en/download/) +- apache-maven-3.x (mvn command) (https://maven.apache.org/download.cgi) +- git.exe (https://git-scm.com/install/windows) + +## execution +- open a command prompt (cmd.exe) or PowerShell +- execute one of the batch files inside this directory (assumption: current directory is /act/) From db6ea7b4dcbdc3c3780e207c80700dfb73bb6a01 Mon Sep 17 00:00:00 2001 From: chewiebug Date: Sat, 6 Dec 2025 18:33:28 +0100 Subject: [PATCH 2/2] fix link to "act" --- act/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/readme.md b/act/readme.md index 93fad753..3c1a7701 100644 --- a/act/readme.md +++ b/act/readme.md @@ -1,6 +1,6 @@ # using act on Windows to run GitHub Actions locally ## introduction -Some notes on how to use [act](https://nektos.github.io/act/) on Windows to run GitHub Actions workflows locally for +Some notes on how to use [act](https://nektosact.com/) on Windows to run GitHub Actions workflows locally for quick testing without pushing changes to GitHub. The current setup uses the "self-hosted" runner type, which requires all necessary tools to be installed on the host