forked from submariner-io/admiral
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 868 Bytes
/
unit.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
---
name: Unit Tests
on:
pull_request:
push:
tags:
- 'v**'
permissions: {}
jobs:
unit-testing:
name: Go Unit Tests
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Create artifacts directory
run: mkdir artifacts
- name: Run Go unit tests
run: |
set -o pipefail
make unit 2>&1 | tee artifacts/unittest.log
- name: Collect artifacts
run: |
for f in $(find ./pkg -name "*.xml"); do
mkdir -p artifacts/$(dirname $f)
cp $f -rfp artifacts/$f
done
- name: Upload artifacts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
with:
name: Unit test artifacts
path: artifacts