-
Notifications
You must be signed in to change notification settings - Fork 997
57 lines (49 loc) · 1.63 KB
/
e2e_parallel_jobs.yaml
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
name: E2E Parallel Jobs
on:
push:
branches:
- master
tags:
pull_request:
jobs:
e2e_parallel_jobs:
runs-on: ubuntu-24.04
name: E2E about Parallel Jobs
timeout-minutes: 40
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
- name: Install musl
run: |
wget http://musl.libc.org/releases/musl-1.2.1.tar.gz
tar -xf musl-1.2.1.tar.gz && cd musl-1.2.1
./configure
make && sudo make install
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Install dependences
run: |
GO111MODULE="on" go install sigs.k8s.io/[email protected]
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.31.0/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl
- name: Checkout code
uses: actions/checkout@v3
- name: Run E2E Tests
run: |
make e2e-test-jobp CC=/usr/local/musl/bin/musl-gcc
- name: export logs for e2e parallel jobs
if: failure()
run: |
export ARTIFACTS_PATH=${{ github.workspace }}/e2e-parallel-jobs-logs
mkdir -p $ARTIFACTS_PATH
kdir -p $ARTIFACTS_PATH/integration
kind export logs --name=integration $ARTIFACTS_PATH/integration
- name: upload e2e parallel jobs logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: volcano_e2e_parallel_jobs_logs
path: ${{ github.workspace }}/e2e-parallel-jobs-logs