Skip to content

gradle 5

gradle 5 #17

Workflow file for this run

#GitHhub actions demo
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
# This workflow contains a single job called "build"
jobs:
# The build job runs on an ubuntu-latest machine
build:
runs-on: self-hosted
strategy:
matrix:
arch: [ arm64 ]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Run the Gradle package task
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
- name: Grant Permissions to gradlew
run: chmod +x gradlew
- name: Test
run: ./gradlew test
- name: Check for test
run: |
if [ -f src/main/kotlin/util/BarcodeUtilTest.kt ]; then
echo "Barcode util test found!"
else
echo "Test script not found" > error.txt
ls -l
exit 1
fi
continue-on-error: true
- name: Prepare environment
run: |
./gradlew test --tests util.BarcodeUtilTest