Release 2.0.0 — Stable release of the SurrealDB Java driver (#132) #247
This file contains hidden or 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: Reports | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install dependencies | |
| run: sudo apt-get update | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - uses: actions/checkout@v4 | |
| - name: Cache Rust | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Set up JDK 22 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 22 | |
| - name: Build native lib | |
| env: | |
| RUSTFLAGS: '--cfg surrealdb_unstable' | |
| run: cargo build | |
| - name: Setup Gradle | |
| run: chmod +x gradlew | |
| - name: Start SurrealDB | |
| uses: surrealdb/setup-surreal@v2 | |
| with: | |
| surrealdb_version: v3.0.4 | |
| surrealdb_port: 8000 | |
| surrealdb_auth: false | |
| surrealdb_strict: false | |
| surrealdb_log: info | |
| surrealdb_additional_args: --allow-all | |
| surrealdb_retry_count: 30 | |
| - name: Clean | |
| run: ./gradlew -i clean | |
| - name: Test & Coverage | |
| run: ./gradlew -i test jacocoTestReport | |
| - name: Javadoc | |
| run: ./gradlew -i javadoc | |
| - name: Report | |
| run: ./gradlew -i clean createCombinedReport | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build/reports |