-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (107 loc) · 3.15 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: CI
on:
push:
branches:
- master
- integration
- experimental*
- release_*
- ci*
- pci*
tags:
- v*
pull_request:
workflow_dispatch:
inputs:
workflow_branch:
description: branch to use
required: true
type: string
repository_dispatch:
types:
- metwork-trigger*
env:
# DOCKER_RUN_OPTIONS: "-v ${{ github.workspace }}:/src -e GITHUB_REF -e GITHUB_RUN_NUMBER -e GITHUB_SHA -e GITHUB_REPOSITORY"
WORKFLOW_SCRIPTS_DIR: .github/workflows
DOCKER_WORKFLOW_SCRIPTS_DIR: /src/.github/workflows
PAYLOAD_BRANCH: ${{ github.event.client_payload.branch }}
PAYLOAD_OS: ${{ github.event.client_payload.os }}
WORKFLOW_BRANCH: ${{ github.event.inputs.workflow_branch }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- rockylinux:8.5
- rockylinux:8.6
- rockylinux:8.7
- rockylinux:8.8
- rockylinux:8
- rockylinux:9.0
- rockylinux:9.1
- rockylinux:9.2
- rockylinux:9
- almalinux:8
- almalinux:9
- fedora:29
- fedora:30
- fedora:31
- fedora:32
- fedora:33
- fedora:34
- fedora:35
- fedora:36
- fedora:37
- fedora:38
- fedora:39
- dokken/centos-stream-8:latest
- dokken/centos-stream-9:latest
# - opensuse/leap:15.3
# - opensuse/leap:15.4
# - mageia:7
# - mageia:8
container:
image: ${{ matrix.container }}
steps:
- name: install git fedora
if: ${{ startsWith(matrix.container, 'fedora:') }}
run: |
yum -y install git
- name: install git rocky
if: ${{ startsWith(matrix.container, 'rockylinux:') }}
run: |
yum -y install git
- name: install git alma
if: ${{ startsWith(matrix.container, 'almalinux:') }}
run: |
yum -y install git
- name: install git centos-stream
if: ${{ startsWith(matrix.container, 'dokken/centos-stream') }}
run: |
yum -y install git
- name: install git opensuse
if: ${{ startsWith(matrix.container, 'opensuse') }}
run: |
zypper -n install git
- name: install git mageia
if: ${{ startsWith(matrix.container, 'mageia:') }}
run: |
yes |urpmi lib64apr1_0 lib64apr-util1_0 git
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.client_payload.branch || github.event.inputs.workflow_branch || github.ref }}
- name: set variables
id: SetVariables
run: |
${WORKFLOW_SCRIPTS_DIR}/set_variables.sh
- name: integration_tests
if: ${{ steps.SetVariables.outputs.branch != 'null' }}
run: |
export REPOSITORY=${{ steps.SetVariables.outputs.repository }}
export IMAGE=${{ matrix.container }}
export BRANCH=${{ steps.SetVariables.outputs.branch }}
${WORKFLOW_SCRIPTS_DIR}/integration_tests.sh