Skip to content

Commit 27540b6

Browse files
committed
ci: Add test for artifact-name
Also removes an unnecessary 'needs' from the debug bundle test
1 parent 64d974d commit 27540b6

1 file changed

Lines changed: 42 additions & 1 deletion

File tree

‎.github/workflows/flatpak-test.yml‎

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ jobs:
117117
flatpak-builder-debug-bundle:
118118
name: Flatpak Builder Debug Bundle
119119
runs-on: ubuntu-latest
120-
needs: flatpak-builder
121120
container:
122121
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
123122
options: --privileged
@@ -131,6 +130,48 @@ jobs:
131130
cache-key: flatpak-builder-${{ github.sha }}-debug-bundle
132131
verbose: true
133132

133+
flatpak-builder-artifact-name:
134+
name: Flatpak Builder Artifact Name
135+
runs-on: ubuntu-latest
136+
container:
137+
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
138+
options: --privileged
139+
strategy:
140+
fail-fast: false
141+
matrix:
142+
include:
143+
- bundle:
144+
artifact-name:
145+
expected-artifact: app-x86_64.flatpak
146+
147+
- bundle: org.example.MyApp.Devel-artifact-name.flatpak
148+
artifact-name:
149+
expected-artifact: org.example.MyApp.Devel-artifact-name-x86_64.flatpak
150+
151+
- bundle: org.example.MyApp.Devel-artifact-empty-name.flatpak
152+
artifact-name: ""
153+
expected-artifact: org.example.MyApp.Devel-artifact-empty-name-x86_64.flatpak
154+
155+
- bundle: org.example.MyApp.Devel-artifact-name.flatpak
156+
artifact-name: org.example.MyApp.Devel-artifact-name.flatpak
157+
expected-artifact: org.example.MyApp.Devel-artifact-name.flatpak
158+
159+
- bundle:
160+
artifact-name: artifact-name-test
161+
expected-artifact: artifact-name-test
162+
steps:
163+
- uses: actions/checkout@v6
164+
- uses: ./flatpak-builder
165+
with:
166+
bundle: ${{ matrix.bundle }}
167+
artifact-name: ${{ matrix.artifact-name }}
168+
manifest-path: ./flatpak-builder/tests/test-project/org.example.MyApp.yaml
169+
verbose: true
170+
arch: x86_64
171+
- uses: actions/download-artifact@v4
172+
with:
173+
name: ${{ matrix.expected-artifact }}
174+
134175
tests:
135176
name: Tests
136177
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)