Bump the npm-dependencies group in /next-app with 2 updates (#144) #300
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: next-app run tests, build and push Docker | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
paths: | |
- 'next-app/**' | |
pull_request: | |
paths: | |
- 'next-app/**' | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Run tests with Gradle | |
run: ./gradlew -p next-app check --build-cache --info | |
build-and-push-docker: | |
needs: run-tests | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
uses: ./.github/workflows/docker-build-template.yml | |
secrets: inherit | |
with: | |
appName: "next-app" | |
buildWithGradle: false | |
permissions: | |
contents: read | |
packages: write |