-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (41 loc) · 1.16 KB
/
test.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
name: Validate Package Lists
run-name: Package list validation for ${{ github.ref_name }} at ${{ github.sha }}
on:
push:
paths:
- 'etc/calamares/modules/netinstall.yaml'
- 'etc/calamares/modules/packagechooser_DE.conf'
- '.github.workflows/test.yml'
- 'tests/index.ts'
pull_request:
paths:
- 'etc/calamares/modules/netinstall.yaml'
- 'etc/calamares/modules/packagechooser_DE.conf'
- '.github.workflows/test.yml'
- 'tests/index.ts'
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
branch:
description: "Branch to validate"
required: true
default: "main"
sha:
description: "SHA to validate"
required: true
default: "HEAD"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup libarchive-tools
run: sudo apt update && sudo apt install -y libarchive-tools
- name: Validate Package Lists
run: cd tests && bun install && bun index.ts