-
Notifications
You must be signed in to change notification settings - Fork 8
61 lines (51 loc) · 1.74 KB
/
on_pull_request.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
61
name: Lint and Test on Pull Request
on:
pull_request:
jobs:
lint:
name: Lint Code
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: sudo apt update && sudo apt install tox
- run: tox -e lint
branch_creation_tests:
name: Branch Creation Script Tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: sudo apt update && sudo apt install tox
- run: tox -e test_branch_creation
batch_release_charms_tests:
name: Batch Release Charms Script Tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: sudo apt update && sudo apt install tox
- run: tox -e test_batch_release_charms
test-dump-charm-debug-artifacts:
name: Test dump-charm-debug-artifacts
runs-on: ubuntu-22.04
steps:
# Set things up like a charm would. Get juju and microk8s
- name: Check out repo
uses: actions/checkout@v4
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: 1.29-strict/stable
juju-channel: 3.4/stable
charmcraft-channel: latest/candidate
microk8s-addons: "dns storage rbac metallb:10.64.140.43-10.64.140.49"
- name: Add model
run: |
juju add-model kubeflow
juju switch kubeflow
- name: Make some fake charmcraft logs
run: |
mkdir -p /home/runner/snap/charmcraft/common/cache/charmcraft/log/
echo fakelog1 > /home/runner/snap/charmcraft/common/cache/charmcraft/log/charmcraft-fake1.log
echo fakelog2 > /home/runner/snap/charmcraft/common/cache/charmcraft/log/charmcraft-fake2.log
- uses: ./actions/dump-charm-debug-artifacts/
if: always()