z-ai-sdk-java/.github/workflows/build.yml
tomsun28 0b09e46478
init: initial the repo (#1)
* init project

* init project

* init project

* init project

* init project

* init project

* update action

* update action

* update action

* update action

* java format

* java format

* update code and format

* update code and format

* update code and format

* update code and format

* update code and format

* update code and format

* update version

* fix publish

* fix publish

* fix publish

* fix publish

* fix publish

* fix publish

* fix publish

* fix publish

* fix publish

* fix publish

* fix publish

* fix publish
2025-07-12 14:30:39 +08:00

27 lines
515 B
YAML

name: Build and Test
on:
pull_request:
branches:
- main
push:
branches:
- 'action*'
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Validate Java Format
run: mvn spring-javaformat:validate
- name: Build with Maven
run: mvn -B package