-
-
Notifications
You must be signed in to change notification settings - Fork 61
49 lines (43 loc) · 1.1 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
42
43
44
45
46
47
48
49
name: "Test"
on:
pull_request:
jobs:
init:
name: Initialize build
runs-on: ubuntu-latest
outputs:
architectures: ${{ steps.info.outputs.architectures }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Get information
id: info
uses: home-assistant/actions/helpers/info@master
build:
name: Test action build
needs: init
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
architecture: ${{ fromJson(needs.init.outputs.architectures) }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Build the builder
uses: home-assistant/builder@2024.03.5
with:
args: |
--test \
--amd64 \
--target /data \
--generic latest
- name: Test ${{ matrix.architecture }} builder
uses: ./
with:
args: |
--test \
--${{ matrix.architecture }} \
--target /data \
--generic ${{ github.sha }}
no-pull: true