-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.66 KB
/
tests.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
name: Tests & Benchmarks
on: [push, workflow_dispatch]
env:
SMALLTALK_IMAGE: Squeak64-6.0
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: smalltalkci
uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ env.SMALLTALK_IMAGE }}
- name: Run tests
run: smalltalkci -s "${{ steps.smalltalkci.outputs.smalltalk-image }}" tests.smalltalk.ston
timeout-minutes: 15
env:
# for uploading coverage reports
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
benchmarks:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- id: smalltalkci
uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ env.SMALLTALK_IMAGE }}
- name: Run benchmarks
run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }} benchmarks.smalltalk.ston
timeout-minutes: 15
env:
TDB_BENCHMARK_RESULTS_PATH: ${{ runner.temp }}/benchmark-data.json
- name: Download previous benchmark data
uses: actions/cache@v1
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark data
uses: benchmark-action/github-action-benchmark@v1
with:
tool: customSmallerIsBetter
output-file-path: ${{ runner.temp }}/benchmark-data.json
auto-push: true
gh-pages-branch: gh-pages
comment-always: false
fail-on-alert: false
alert-threshold: "150%"
github-token: ${{ secrets.GITHUB_TOKEN }}