-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (55 loc) · 2.03 KB
/
Copy pathsetup.yml
File metadata and controls
63 lines (55 loc) · 2.03 KB
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
name: Setup & validate
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
inputs:
zlb_source:
description: "Skad wziac zlb: latest-release | version | source"
required: false
type: choice
default: "latest-release"
options:
- latest-release
- version
- source
zlb_version:
description: "Konkretna wersja zlb (np. v0.1) -- tylko gdy zlb_source=version"
required: false
default: ""
jobs:
validate:
runs-on: ubuntu-latest
env:
# NAPRAWIONE: 'needrestart' na obrazie ubuntu-latest (noble) potrafi po
# apt-get install wyskoczyc z INTERAKTYWNYM oknem "ktore uslugi
# zrestartowac?" i czekac na Enter, ktorego nikt nie nacisnie w CI --
# job wtedy wisi w nieskonczonosc zamiast zakonczyc sie bledem. Te dwie
# zmienne wylaczaja wszystkie interaktywne prompty apt/debconf/needrestart
# dla KAZDEGO kroku w tym jobie (w tym krokow z .github/actions/*).
DEBIAN_FRONTEND: noninteractive
NEEDRESTART_MODE: a
steps:
- uses: actions/checkout@v4
- name: Install janet
uses: ./.github/actions/install-janet
- name: Zainstaluj zlb
uses: ./.github/actions/install-zlb
with:
mode: ${{ github.event.inputs.zlb_source || 'latest-release' }}
version: ${{ github.event.inputs.zlb_version || '' }}
- name: Validate distro.hcl
run: zlb manifest validate
- name: Validate devcontainer.hcl (headless dev-obraz)
run: zlb manifest validate --manifest=devcontainer.hcl
- name: Lint janet hooks (modules/**/scripts/*.janet)
run: |
find modules -name '*.janet' -print0 | xargs -0 -r -n1 janet -c
- name: Check keys/default.hcl and package lists are non-empty
run: |
test -s distro.hcl
test -s keys/default.hcl
test -s modules/core/package.list
test -s modules/devcontainer/package.list
echo "OK -- pliki manifestu nie są puste."