Skip to content

Fix JReleaser snapshot publishing: use Active.SNAPSHOT/RELEASE, add s… #538

Fix JReleaser snapshot publishing: use Active.SNAPSHOT/RELEASE, add s…

Fix JReleaser snapshot publishing: use Active.SNAPSHOT/RELEASE, add s… #538

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- 'master'
paths-ignore:
- 'kensa.dev/**'
- 'README.md'
pull_request:
branches:
- '*'
paths-ignore:
- 'kensa.dev/**'
- 'README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v6
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: ui/package-lock.json
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.22'
- name: Build Go CLI
run: |
cd cli
go mod tidy
mkdir -p build/bin
go build -o build/bin/kensa cmd/kensa/main.go
- name: Build
run: make build-ci
- name: Publish Test Report
uses: mikepenz/action-junit-report@v6
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
- name: Tag If Release
run: make tag-if-release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/')
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}