From f012dcc44974e72b1296daed89b8ebc15a822d5e Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Wed, 2 Dec 2026 14:07:01 -0800 Subject: [PATCH 1/2] chore(CI/CD): update GitHub Actions workflows and dependencies --- .github/workflows/publish-docker-image-prod.yml | 8 ++++---- .github/workflows/release.yml | 15 ++++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-docker-image-prod.yml b/.github/workflows/publish-docker-image-prod.yml index 941ada3de..61b21216d 100644 --- a/.github/workflows/publish-docker-image-prod.yml +++ b/.github/workflows/publish-docker-image-prod.yml @@ -11,17 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the repo - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Log in to Docker Hub - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v6 with: images: wiseberkeley/wise-api-server flavor: latest=true @@ -30,7 +30,7 @@ jobs: type=sha - name: Build and push Docker image - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . push: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d2e7a08c..05d5cb9d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,23 +2,28 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven name: Build API and release on GitHub -on: [push, pull_request] +on: + push: + branches: [develop] + pull_request: + branches: [develop] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 with: - node-version: 20 + node-version: 26 - name: Set up JDK 17 - uses: actions/setup-java@v4 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: 17 - name: Build with Maven run: mvn -B package --file pom.xml - name: Release + if: github.event_name == 'push' && github.ref == 'refs/heads/develop' env: GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} run: npx semantic-release From a8ef56056cc710e24f4775fbba5ee77693b9f2b8 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Wed, 2 Dec 2026 14:22:48 -0800 Subject: [PATCH 2/2] add CI workflow and update release workflow triggers and caching. --- .github/workflows/ci.yml | 19 +++++++++++++++++++ .github/workflows/release.yml | 4 +--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..4495f8f9b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: Build and Test API +on: + pull_request: + branches: [develop] + +jobs: + build: + name: Build with Maven + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - name: Set up JDK 17 + uses: actions/setup-java@v6 + with: + distribution: 'temurin' + java-version: 17 + cache: 'maven' + - name: Build with Maven + run: mvn -B package --file pom.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05d5cb9d7..569a2774a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,8 +5,6 @@ name: Build API and release on GitHub on: push: branches: [develop] - pull_request: - branches: [develop] jobs: build: runs-on: ubuntu-latest @@ -20,10 +18,10 @@ jobs: with: distribution: 'temurin' java-version: 17 + cache: 'maven' - name: Build with Maven run: mvn -B package --file pom.xml - name: Release - if: github.event_name == 'push' && github.ref == 'refs/heads/develop' env: GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} run: npx semantic-release