-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (28 loc) · 1.19 KB
/
PR_testing.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
name: "Apps: Test PR"
on: [pull_request]
jobs:
test-apps:
runs-on: ubuntu-latest
container:
image: ixsystems/catalog_validation:latest
steps:
- name: Install Helm
run: /bin/bash -c "curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash"
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch base branch history
run: git fetch origin master:master
- name: Setup catalog validation
run: |
sudo apt update > /dev/null 2>&1
sudo apt install -y python3-all-dev python3-pip python3-setuptools > /dev/null 2>&1
git clone https://github.com/truenas/catalog_validation
sudo pip3 install --disable-pip-version-check --exists-action w -r catalog_validation/requirements.txt > /dev/null 2>&1
sudo pip3 install -U catalog_validation/.
- name: Validate catalog format
run: |
/bin/bash -c "PWD=${pwd}; /usr/local/bin/catalog_validate validate --path $PWD"
- name: Validate changed charts
run: /bin/bash -c "PWD=${pwd}; sudo /usr/local/bin/charts_validate deploy --path $PWD"