-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (41 loc) · 1.35 KB
/
pr.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
43
44
45
46
47
48
name: Pull Request Check
on:
pull_request:
paths:
- "*.yaml"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint using Wolfictl
uses: wolfi-dev/actions/wolfictl-lint@main
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/wolfi-dev/sdk:latest
options: |
--cap-add NET_ADMIN --cap-add SYS_ADMIN --device /dev/fuse --security-opt seccomp=unconfined --security-opt apparmor:unconfined
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate key
run: melange keygen
- name: Look for changed files
id: changes
uses: tj-actions/changed-files@v45
with:
files_yaml: |
melange:
- ./*.yaml
- name: Build all packages
run: |
make init
for file in ${{ steps.changes.outputs.melange_all_changed_files }}; do
if [[ $file == ".yam.yaml" ]]; then
continue
fi
make package/"${file%.yaml}"
make test/"${file%.yaml}"
done