diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 10 | ||||
| -rw-r--r-- | .github/workflows/pull_requests.yml | 28 |
2 files changed, 26 insertions, 12 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 506ca7b..1c459ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,19 +16,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - name: Setup Docker buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Log into DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ github.actor }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Extract Docker metadata id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.IMAGE_NAME }} tags: | @@ -39,7 +39,7 @@ jobs: - name: Build and push Docker image id: build-and-push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: . push: true diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 37f756c..16bcb8e 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -5,34 +5,48 @@ on: branches: [ "trunk" ] jobs: - build: - + react: runs-on: ubuntu-latest + defaults: + run: + working-directory: './src/main/webui' + strategy: matrix: - node-version: [ 16.x, 18.x ] + node-version: [ '18.x', '20.x', '22.x' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'yarn' + cache-dependency-path: './src/main/webui/yarn.lock' - name: Install Node.js packages run: yarn install --immutable --immutable-cache --check-cache - name: Run linter run: yarn lint - name: Run test build - run: yarn next build + run: yarn build + + quarkus: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v5 - name: Use Java 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '17' cache: 'maven' + - name: Build & Install + run: mvn -B install -D skipTests --no-transfer-progress + - name: Ensure browsers are installed + run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" - name: Run maven test run: mvn test |
