bump release version (#400) #942
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: Main Branch | |
on: | |
push: | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 21 ] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
cache: 'gradle' | |
distribution: 'temurin' | |
java-version: ${{ matrix.java-version }} | |
- name: Setup and execute Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Run Gradle build | |
shell: bash | |
run: >- | |
export SPRING_PROFILES_ACTIVE=test && ./gradlew build --no-daemon --info | |
- name: Generate file | |
run: | | |
cd build/libs/ | |
ls -ltra | |
mv trap-*.jar trap.jar | |
java -jar trap.jar | |
- name: Test file exists | |
run: | | |
cd build/libs/ | |
test -f league-data-*.xlsx || exit 1 | |
- name: Test file was generate properly | |
run: | | |
cd build/libs/ | |
file1size=$(stat -c %s league-data-*.xlsx) | |
echo "file 1 size successful" | |
file2size=$(stat -c %s ../../src/main/resources/main-template.xlsx) | |
echo "file 2 size successful" | |
echo "file1size" | |
echo $file1size | |
echo "file2size" | |
echo $file2size | |
if [ "$file1size" -lt "$file2size" ]; then | |
echo "file 1 is smaller" | |
exit 1 | |
fi |