-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (43 loc) · 1.05 KB
/
main.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
name: main
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- name: checkout
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
lxd-channel: 5.20/stable
- name: format
run: |
tox -e format
- name: lint
run: |
tox -e lint
- name: static
run: |
tox -e static
- name: store cert & pk secrets
env:
CERT: ${{ secrets.TEST_CERTIFICATE }}
PK: ${{ secrets.TEST_CERTIFICATE_PK }}
run: |
echo $CERT > src/configs/cert.pem
echo $PK > src/configs/key.pem
- name: unit tests
run: |
tox -e unit
- name: integration tests
run: |
tox -e integration