forked from d2iq-archive/marathon
-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (33 loc) · 932 Bytes
/
test.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
---
name: Test
on:
- pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Fetch all history for all tags and branches
- run: |
git fetch --prune --unshallow
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build artifact
run: sbt clean universal:packageZipTarball
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Identify artifact
id: identify_artifact
run: ./identify_artifact.sh
- name: Run tests
run: sbt test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish artifact
uses: actions/upload-artifact@v2-preview
if: success()
with:
name: ${{ steps.identify_artifact.outputs.artifact }}
path: ${{ steps.identify_artifact.outputs.path }}