diff --git a/.github/workflows/gh-actions.yml b/.github/workflows/gh-actions.yml new file mode 100644 index 0000000..a9b7175 --- /dev/null +++ b/.github/workflows/gh-actions.yml @@ -0,0 +1,34 @@ +name: gh-actions +run-name: ${{ github.actor }} triggered a Github Action +on: [push] +jobs: + sanity-checks: + env: + MC_TOKEN_USER: ${{ secrets.MAVEN_CENTRAL_TOKEN_USER }} + MC_TOKEN_PASS: ${{ secrets.MAVEN_CENTRAL_TOKEN_PASSWORD }} + SBT_VERSION: 1.11.4 + SBT_OPTS: "-Xms512M -Xmx1536M -Xss1M" + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + - name: Setup sbt launcher + uses: sbt/setup-sbt@v1 + - name: Cache SBT + uses: actions/cache@v4 + with: + path: | + ~/.ivy2/cache + ~/.sbt + key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} + - name: Organisation secrets + run: | + echo "MAVEN_CENTRAL_TOKEN_USER starts with ${MC_TOKEN_USER:0:1} and is ${#MC_TOKEN_USER} long" + echo "MAVEN_CENTRAL_TOKEN_PASSWORD starts with ${MC_TOKEN_PASS:0:1} and is ${#MC_TOKEN_PASS} long" + - name: Perform the tests + run: sbt clean test:compile scripted