-
Notifications
You must be signed in to change notification settings - Fork 7
65 lines (53 loc) · 1.65 KB
/
ci.yml
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
62
63
64
65
name: CI
on:
push:
branches: [master, develop]
pull_request:
branches: [master]
jobs:
Perfecto:
name: Perfecto
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run Perfecto docker image
uses: docker://ghcr.io/essentialkaos/perfecto:ol8
with:
args: --version
- name: Install perfecto-container
run: |
wget https://kaos.sh/perfecto/perfecto-container
chmod +x perfecto-container
- name: Run Perfecto check
env:
IMAGE: ghcr.io/essentialkaos/perfecto:ol8
run: ./perfecto-container -A PF20 $(git diff --name-status origin/master | tr '\t' ' ' | grep -Ev '(^D| test/)' | grep '\.spec' | rev | cut -f1 -d' ' | rev | sort)
Bibop:
name: Bibop Validation
runs-on: ubuntu-latest
steps:
- name: Setup PATH
run: |
echo "${{ github.workspace }}" >> "$GITHUB_PATH"
- name: Code checkout
uses: actions/checkout@v3
- name: Install bibop and bibop-massive
run: |
wget https://apps.kaos.st/bibop/latest/linux/x86_64/bibop
wget https://kaos.sh/bibop/scripts/bibop-massive
chmod +x bibop bibop-massive
bibop -v
bibop-massive -v
- name: Run bibop recipes validation
env:
TERM: xterm-256color
run: bibop-massive -V tests