Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions act/execute-pullrequest-workflow.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pushd ..
act --workflows .\.github\workflows\pullrequest.yaml pull_request -P ubuntu-latest=-self-hosted
popd
18 changes: 18 additions & 0 deletions act/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# using act on Windows to run GitHub Actions locally
## introduction
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
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 <root>/act/)