Skip to content

Update sbt to 1.9.4 #92

Update sbt to 1.9.4

Update sbt to 1.9.4 #92

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11]
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
env:
cache-name: cache-sbt-libs
with:
path: |
~/.ivy2/cache
~/.sbt
~/.coursier
key: build-${{ env.cache-name }}-${{ hashFiles('build.sbt') }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Run tests
run: |
git clone https://github.com/gitbucket/gitbucket.git
cd gitbucket
sbt publishLocal
cd ../
sbt test
- name: Assembly
run: sbt assembly
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: gitbucket-notifications-plugin-java${{ matrix.java }}-${{ github.sha }}
path: ./target/scala-2.13/*.jar