-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (50 loc) · 1.42 KB
/
scala.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Scala CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: actions/setup-node@v2
with:
node-version: '12'
- name: Cache SBT ivy cache
uses: actions/cache@v1
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-sbt-ivy-cache-
- name: Cache Coursier cache
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: ${{ runner.os }}-sbt-coursier-cache-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-sbt-coursier-cache-
- name: Cache SBT
uses: actions/cache@v1
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-cache-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-sbt-cache-
- name: Cache Yarn
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Run build
run: |
yarn install --frozen-lockfile --production=false
npx webpack
sbt assembly
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: plugin-jar
path: target/scala-*/gitbucket-*-plugin-*.jar