New release #28
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: Build project | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- ".github/**" | |
- "src/**" | |
- "test-page/**" | |
- "build.gradle" | |
- "gradle.properties" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "corretto" | |
java-version: "17" | |
cache: "gradle" | |
- name: Validate | |
uses: pre-commit/[email protected] | |
- uses: docker/setup-buildx-action@v3 | |
- name: Install playwright | |
run: npx playwright install-deps | |
- name: Build and Run Test Page | |
run: | | |
docker compose build | |
docker compose up -d --wait | |
- name: Build and Test | |
run: ./gradlew clean build | |
- name: Upload coverage to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Stop containers | |
if: always() | |
continue-on-error: true | |
run: docker compose down -v |