Skip to content

Update actions to Node 20 #72

Update actions to Node 20

Update actions to Node 20 #72

name: TileDB-Cloud-JDBC
on:
workflow_dispatch:
push:
tags:
- '*'
branches:
- 'main'
pull_request:
jobs:
Test_Windows:
runs-on: windows-2019
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
check-latest: false
- name: checkFormat
uses: gradle/gradle-build-action@v3
with:
arguments: checkFormat
- name: assemble
uses: gradle/gradle-build-action@v3
with:
arguments: assemble
- name: test
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
uses: gradle/gradle-build-action@v3
with:
arguments: test
Test_Ubuntu_macOS:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-12 ]
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
check-latest: true
- run: |
./gradlew checkFormat
shell: bash
name: checkFormat
- run: |
./gradlew assemble
shell: bash
name: assemble
- name: test
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
run: |
./gradlew test
shell: bash
Release:
if: startsWith(github.ref, 'refs/tags/')
needs: [Test_Ubuntu_macOS, Test_Windows]
name: Create-Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
check-latest: false
- name: Create-Jars
run: unset SYSTEM; set +e; ./gradlew assemble; ./gradlew shadowJar; mkdir jars/; cp ./build/libs/*.jar jars/
- name: Create-Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: jars/*.jar
tag_name: ${{ github.event.release.tag_name }}
name: ${{ github.event.release.tag_name }}
draft: false
prerelease: false