Release Droid - Prepare Original Checksum #20
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: Release Droid - Prepare Original Checksum | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space | |
run: | | |
sudo rm -rf /usr/local/lib/android | |
sudo rm -rf /usr/share/dotnet | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: "Install Lua" | |
uses: leafo/gh-actions-lua@v10 | |
with: | |
luaVersion: 5.4 | |
- name: "Install LuaRocks" | |
uses: leafo/gh-actions-luarocks@v4 | |
with: | |
luarocksVersion: "3.9.2" | |
- name: "Install dependencies" | |
run: | | |
luarocks --local install *.rockspec --deps-only | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 11 | |
cache: "maven" | |
- name: Enable testcontainer reuse | |
run: echo 'testcontainers.reuse.enable=true' > "$HOME/.testcontainers.properties" | |
- name: Run tests and build with Maven | |
run: | | |
eval $(luarocks path) | |
mvn --batch-mode clean verify | |
- name: Prepare checksum | |
run: find target -maxdepth 1 \( -name '*.lua' -o -name '*.sql' \) -exec sha256sum "{}" + > original_checksum | |
- name: "Upload checksum as artifact" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: original_checksum | |
retention-days: 5 | |
path: original_checksum |