-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 962 Bytes
/
Copy pathtest.yaml
File metadata and controls
41 lines (34 loc) · 962 Bytes
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
name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 55
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup Go environment
uses: actions/setup-go@v2.1.4
with:
go-version: 1.17.2
- name: Install tool for test summary
uses: jaxxstorm/action-install-gh-release@v1.3.1
with:
repo: gotestyourself/gotestsum
tag: v1.7.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: protocol/download-ipfs-distribution-action@master
- uses: protocol/start-ipfs-daemon-action@master
- name: Test
run: |
#!/bin/bash
set -e
gotestsum --format=testname --junitfile test-report.xml -- -race --cover -p=1 --timeout 5m ./...
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: test-report.xml