Skip to content

Fix: Fix tests failing because of no predefined names #49

Fix: Fix tests failing because of no predefined names

Fix: Fix tests failing because of no predefined names #49

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
JAVA_VERSION: 17
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "corretto"
java-version: "${{ env.JAVA_VERSION }}"
- name: Setup Gradle and run build
uses: gradle/gradle-build-action@v2
with:
arguments: assemble
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "corretto"
java-version: "${{ env.JAVA_VERSION }}"
- name: Setup Gradle and run tests
uses: gradle/gradle-build-action@v2
with:
arguments: check