-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (47 loc) · 1.35 KB
/
CI-devmode.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
58
59
60
name: CI-devmode
on:
push:
branches: [main, rhoai-2.10]
paths-ignore:
- 'site/**'
pull_request:
branches: [main, rhoai-2.10]
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set latest tag and branch name
run: |
echo "GIT_BRANCH=gha-ci" >> $GITHUB_ENV
echo "TAG=$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run pre-commit checks
run: |
pip install pre-commit
pre-commit run --show-diff-on-failure --color=always --all-files
- name: Verify that generated manifests are up-to-date
run: make manifests && git diff --exit-code
- name: Build
run: make build
- name: Run Unit Tests
run: make test
- name: Create and configure cluster
run: ./hack/create-test-cluster.sh
- name: Deploy Kueue
run: ./hack/deploy-kueue.sh
- name: Install CRDs
run: |
make install -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.GIT_BRANCH }}-${{ env.TAG }}
- name: Run E2E tests using dev mode controller
run: ./hack/run-dev-mode-tests.sh