summaryrefslogtreecommitdiff
path: root/.github/workflows/validate-installer-iso.yml
blob: 37f5496705124f0a20b906716815fb8339403eac (plain)
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
name: Validate installer ISO

on:
  pull_request:
    paths:
      - "Justfile"
      - "installer/**"
      - "just_scripts/build-installer-iso.sh"
      - ".github/workflows/build-installer-iso.yml"
      - ".github/workflows/validate-installer-iso.yml"

permissions:
  contents: read

jobs:
  validate-installer-iso:
    name: Validate installer ISO inputs
    runs-on: ubuntu-24.04

    steps:
      - name: Checkout
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7

      - name: Install just
        uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4

      - name: Validate workflow YAML
        run: |
          ruby -e 'require "yaml"; Dir[".github/workflows/*.yml"].each { |file| YAML.load_file(file) }'

      - name: Validate Justfile formatting
        run: |
          just --unstable --fmt --check -f Justfile

      - name: Validate build scripts
        run: |
          for script in build_files/*.sh installer/*.sh just_scripts/*.sh; do
            bash -n "$script"
          done
          bash -n system_files/usr/libexec/aerocore-instruments-setup