forked from hwameistor/hwameistor
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.04 KB
/
pr.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
name: HwameiStor PR
on:
pull_request:
branches:
- main
paths:
- "pkg/**"
- "test/**"
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: 1.17
- name: Setup smartmontools
run: sudo apt install smartmontools
- name: unit-test
run: make unit-test
pr-test:
runs-on: ["vsphere"]
timeout-minutes: 180
steps:
- name: delete
run: |
sudo rm -rf /github/actions-runner/_work/hwameistor/hwameistor/_build
sudo rm -rf /github/actions-runner/_work/hwameistor/hwameistor/test/e2e/drbd-adapter/
sudo rm -rf /home/github/actions-runner/_work/hwameistor/hwameistor/_build
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: pr test
env:
E2E_TESTING_LEVEL: "pr-e2e"
run: make pr-test