forked from aergoio/aergo
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.19 KB
/
short_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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Short Test
on:
push:
branches-ignore: # master and develop run complete tests on another workflow
- master
- develop
jobs:
check_if_pull_request:
runs-on: ubuntu-latest
steps:
- name: Check if Pull Request
uses: 8BitJonny/[email protected]
id: pr_check
outputs:
is_pull_request: ${{ steps.pr_check.outputs.pr_found }}
build_and_test:
needs: check_if_pull_request
if: needs.check_if_pull_request.outputs.is_pull_request != 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Install dependencies
run: |
sudo apt-get install -y jq m4 make cmake
- name: Build
run: make
- name: Short Unit Tests
run: go test -short -timeout 999s ./...
env:
ARGLIB_LOGCONFIG: "${{ github.workspace }}/.github/arglog-shorttest.toml"