-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (31 loc) · 1.03 KB
/
build.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
name: Build project
on:
push:
branches:
- main
pull_request:
jobs:
test-code:
runs-on: ubuntu-latest
container: registry.fedoraproject.org/fedora:latest
steps:
- name: Install packages
run: |
dnf -q -y update
dnf -q -y install python3-pip git ShellCheck gcc python3-devel
pip3 install --upgrade pip
pip3 install --upgrade ansible-core kubernetes ansible-lint netaddr
ansible-galaxy collection install -U kubernetes.core community.general ansible.utils
git config --global --add safe.directory /__w/openshift-edge-installer/openshift-edge-installer
- uses: actions/checkout@v4
- name: Check code
run: |
ansible-lint -s -x yaml[line-length],var-naming[no-role-prefix] --exclude .github
shellcheck -o all edge/roles/edge_csr_approver/files/csr_approver.sh
test-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build container
run: |
podman build .