-
Notifications
You must be signed in to change notification settings - Fork 116
58 lines (54 loc) · 1.69 KB
/
morpheusvm-unit-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
58
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
# See the file LICENSE for licensing terms.
name: MorpheusVM Unit Tests
on:
push:
branches:
- main
pull_request:
types: [labeled,synchronize,reopened]
jobs:
morpheusvm-unit-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run all ci') }}
runs-on:
labels: ubuntu-20.04-32
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
check-latest: true
cache: true
cache-dependency-path: |
go.sum
examples/morpheusvm/go.sum
- name: Run unit tests
working-directory: ./examples/morpheusvm
shell: bash
run: scripts/tests.unit.sh
- name: Run integration tests
working-directory: ./examples/morpheusvm
shell: bash
run: scripts/tests.integration.sh
- name: Archive code coverage results (text)
uses: actions/upload-artifact@v4
with:
name: code-coverage-out
path: ./examples/morpheusvm/integration.coverage.out
- name: Archive code coverage results (html)
uses: actions/upload-artifact@v4
with:
name: code-coverage-html
path: ./examples/morpheusvm/integration.coverage.html
- name: Run e2e tests
working-directory: ./examples/morpheusvm
shell: bash
run: scripts/run.sh
env:
MODE: "test"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true