forked from oVirt/ovirt-engine-nodejs-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.28 KB
/
check.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
name: check the PR
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: el8
container-image: quay.io/ovirt/buildcontainer:el8stream
- name: el9
container-image: quay.io/ovirt/buildcontainer:el9stream
name: ${{ matrix.name }}, run check.sh to verify content
container:
image: ${{ matrix.container-image }}
env:
# The check version script needs to know the PR base and head commits to be able to
# look at the contents of the range of commits for the PR. The required spec file
# change must be contained somewhere in one of those commits! This env var will
# be picked up by the script and used as the range.
CHECK_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
steps:
- name: make sure check.sh required packages are installed
run: |
dnf -y install git jq wget rpmlint
- name: checkout sources (PR head, not the PR merge)
uses: ovirt/checkout-action@main
with:
fetch-depth: 20
- name: run automation/check.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./automation/check.sh