Skip to content

Commit 101f218

Browse files
authored
Merge pull request #22 from coderbirju/add-deb-canary-test
ci: Add deb canary test
2 parents 30290cc + 25bf616 commit 101f218

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/canary-deb.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deb Canary
2+
3+
on:
4+
# This workflow will run from the release-automation.yaml automation on each merge
5+
workflow_dispatch:
6+
inputs:
7+
ref_name:
8+
required: true
9+
type: string
10+
workflow_call:
11+
inputs:
12+
ref_name:
13+
required: true
14+
type: string
15+
pull_request:
16+
branches:
17+
- main
18+
paths:
19+
- '**.go'
20+
- 'go.mod'
21+
- 'go.sum'
22+
- '.github/workflows/e2e-macos.yaml'
23+
- '.github/workflows/e2e-windows.yaml'
24+
- '.github/workflows/e2e-linux.yaml'
25+
- 'contrib/packaging/**'
26+
- 'deps/**'
27+
- 'finch.yaml.d/**'
28+
- 'winres'
29+
- 'Makefile*'
30+
- '.golangci.yaml'
31+
- '!contrib/hello-finch/**'
32+
# This workflow will run every 5 min
33+
schedule:
34+
- cron: '*/5 * * * *'
35+
36+
jobs:
37+
canary-deb:
38+
# define all different arch's our supported CodeBuild fleets can run on
39+
runs-on: ubuntu-latest
40+
timeout-minutes: 3
41+
steps:
42+
- name: Clean ubuntu runner workspace
43+
run: |
44+
rm -rf ${{ github.workspace }}/*
45+
- name: Install Finch with APT
46+
run: |
47+
sudo apt install runfinch-finch -y
48+
- name: Verify version
49+
run: |
50+
version=$(finch -v)
51+
if [[ $version == "finch version ${{inputs.ref_name}}" ]]; then
52+
echo "Version matches: $version"
53+
else
54+
echo "Version mismatch. Found: $version, Expected: ${{inputs.ref_name}}"
55+
exit 1
56+
fi
57+
- name: Clean up environment
58+
run: |
59+
sudo apt remove runfinch-finch -y

0 commit comments

Comments
 (0)