Skip to content

Commit

Permalink
Merged workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoozhoo committed Sep 11, 2024
1 parent 3d56139 commit 0aed0ad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 41 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build.yml

This file was deleted.

33 changes: 15 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

workflow_dispatch:

jobs:
build:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven

- name: compile the project
run: mvn compile

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
- name: run test case
run: mvn test

0 comments on commit 0aed0ad

Please sign in to comment.