This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
test(vlei): testing if the vlei server is up and running #142
Workflow file for this run
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 and Test on every push | |
on: | |
push: | |
branches: | |
- '*' | |
- '*/*' | |
- '**' | |
- '!main' | |
jobs: | |
build: | |
name: "Build and Test" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Calculate release version | |
run: | | |
echo "release_version=1.$(date +'%g%m%d%H%M').$(echo ${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV | |
- name: Set version | |
run: | | |
sed -i "s/1.SNAPSHOT/${{ env.release_version }}/g" build.gradle.kts src/main/kotlin/id/walt/Values.kt | |
- run: | | |
git tag v${{ env.release_version }} | |
git push --tags | |
- name: Setup java | |
uses: actions/[email protected] | |
with: | |
distribution: 'adopt-hotspot' | |
java-version: '16' | |
- name: Setup cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Gradle wrapper validation | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Running gradle build | |
uses: eskatos/[email protected] | |
with: | |
arguments: build --no-daemon | |
# Add the test step below | |
- name: Running gradle test | |
uses: eskatos/[email protected] | |
with: | |
arguments: test --no-daemon |