-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.94 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
52
53
54
55
56
57
name: Tests & Benchmarks
on: [push, workflow_dispatch]
env:
SMALLTALK_IMAGE: Squeak64-Trunk
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: smalltalkci
uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ env.SMALLTALK_IMAGE }}
- id: download-vm
name: Download latest VM
run: scripts/download_vm.sh
- name: Run tests
run: smalltalkci -s "${{ steps.smalltalkci.outputs.smalltalk-image }}" --vm "${{ steps.download-vm.outputs.vm-path }}" 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@v4
- id: smalltalkci
uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ env.SMALLTALK_IMAGE }}
- id: download-vm
name: Download latest VM
run: scripts/download_vm.sh
- name: Run benchmarks
run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }} --vm "${{ steps.download-vm.outputs.vm-path }}" 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 }}