-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (40 loc) · 1.07 KB
/
installation-tests.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
name: Installation tests
on:
pull_request:
push:
branches:
- main
jobs:
installation-tests:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- archlinux
- ubuntu
- fedora
if: "${{ !startsWith(github.event.head_commit.message, 'docs: ') && !startsWith(github.event.head_commit.message, 'chore: ') && !startsWith(github.event.head_commit.message, 'style: ') }}"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install on ${{ matrix.os }}
uses: docker/build-push-action@v6
with:
context: .
file: tests/${{ matrix.os }}/Dockerfile
push: false
build-args: SOURCE=${{ github.repository }}@${{ github.sha }}
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Installation test results
needs: [installation-tests]
steps:
- run: |
result="${{ needs.installation-tests.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi