-
Notifications
You must be signed in to change notification settings - Fork 3
99 lines (86 loc) · 2.84 KB
/
Copy pathci.yml
File metadata and controls
99 lines (86 loc) · 2.84 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: CI
on:
pull_request:
jobs:
lint:
name: Run golint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.4.0
unit-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- run: make test
e2e-test-granular:
name: End-to-end tests using granular commands
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: git config --global --add safe.directory /__w/fioup/fioup
- run: ./dev-shell.sh make build test-e2e-granular
env:
FACTORY: ${{ secrets.E2E_TEST_FACTORY }}
BASE_TARGET_VERSION: ${{ secrets.E2E_TEST_BASE_TARGET_VERSION }}
USER_TOKEN: ${{ secrets.E2E_TEST_USER_TOKEN }}
TAG: ${{secrets.E2E_TEST_TAG}}
e2e-test-single-command:
name: End-to-end tests using single update command
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: git config --global --add safe.directory /__w/fioup/fioup
- run: ./dev-shell.sh make build test-e2e-single-command
env:
FACTORY: ${{ secrets.E2E_TEST_FACTORY }}
BASE_TARGET_VERSION: ${{ secrets.E2E_TEST_BASE_TARGET_VERSION }}
USER_TOKEN: ${{ secrets.E2E_TEST_USER_TOKEN }}
TAG: ${{secrets.E2E_TEST_TAG}}
e2e-test-daemon:
name: End-to-end tests using daemon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: git config --global --add safe.directory /__w/fioup/fioup
- run: ./dev-shell.sh make build test-e2e-daemon
env:
FACTORY: ${{ secrets.E2E_TEST_FACTORY }}
BASE_TARGET_VERSION: ${{ secrets.E2E_TEST_BASE_TARGET_VERSION }}
USER_TOKEN: ${{ secrets.E2E_TEST_USER_TOKEN }}
TAG: ${{secrets.E2E_TEST_TAG}}
integration-test:
name: Standalone integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: git config --global --add safe.directory /__w/fioup/fioup
- run: ./dev-shell.sh make test-integration
package:
strategy:
fail-fast: true
matrix:
os:
- ubuntu-24.04
- ubuntu-24.04-arm
runs-on: ${{matrix.os}}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Build for Debian
run: |
make deb DEBS_DIR=/tmp/debs
docker run --rm -i -v /tmp:/host-tmp debian:trixie <<EOF
set -ex
apt update && apt install -y /host-tmp/debs/fioup_*.deb
test -x /usr/bin/fioup
test -x /usr/bin/docker-credential-fioup
test -f /usr/share/bash-completion/completions/fioup
test -f /lib/systemd/system/fioup.service
EOF