Skip to content

Commit

Permalink
Improve CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Oct 26, 2023
1 parent aa5f1ca commit 018128e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 48 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,41 @@ on:

jobs:
Perfecto:
permissions:
contents: read
pull-requests: write
name: Perfecto
runs-on: ubuntu-latest

strategy:
matrix:
image: [ 'ol7', 'ol8', 'ol9']
uses: ./.github/workflows/perfecto.yml
with:
image: ${{ matrix.image }}


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:${{matrix.image}}
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:${{matrix.image}}
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
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/perfecto.yml

This file was deleted.

0 comments on commit 018128e

Please sign in to comment.