Skip to content

Commit baa3724

Browse files
authored
Setup GitHub Actions for CI (#19)
1 parent 24717b5 commit baa3724

2 files changed

Lines changed: 35 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Cache
11+
uses: actions/cache@v2
12+
env:
13+
cache-name: cache-sbt-libs
14+
with:
15+
path: |
16+
~/.ivy2/cache
17+
~/.sbt
18+
~/.coursier
19+
key: build-${{ env.cache-name }}-${{ hashFiles('build.sbt') }}
20+
- name: Set up JDK
21+
uses: actions/setup-java@v2
22+
with:
23+
java-version: '8'
24+
distribution: 'adopt'
25+
- name: Run tests
26+
run: sbt test
27+
- name: Assembly
28+
run: |
29+
npm install
30+
npm run-script release
31+
- name: Upload artifacts
32+
uses: actions/upload-artifact@v2
33+
with:
34+
name: gitbucket-explorer-plugin-${{ github.sha }}
35+
path: ./target/scala-2.13/*.jar

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)