Skip to content

Commit 006ad0b

Browse files
kgraefejon-turney
authored andcommitted
Add test for multiple sites and an extra pubkey
Signed-off-by: Konrad Gräfe <[email protected]>
1 parent e1237bb commit 006ad0b

9 files changed

+57
-0
lines changed

.github/workflows/test.yml

+29
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,32 @@ jobs:
228228
shell: bash
229229
env:
230230
SHELLOPTS: igncr
231+
232+
multiple-sites-and-pubkeys:
233+
runs-on: windows-latest
234+
strategy:
235+
fail-fast: false
236+
237+
name: 'Test multiple sites and extra pubkeys'
238+
239+
steps:
240+
- run: git config --global core.autocrlf input
241+
242+
- uses: actions/checkout@v2
243+
244+
- name: Run repo HTTP server
245+
246+
with:
247+
directory: ${{ github.workspace }}\tests\repo
248+
249+
- name: Install Cygwin
250+
uses: ./
251+
with:
252+
site: |
253+
http://localhost:8080
254+
http://mirrors.kernel.org/sourceware/cygwin/
255+
packages: cygwin-install-action-test
256+
pubkeys: ${{ github.workspace }}\tests\repo\key.pub
257+
258+
- name: Run test shell script
259+
run: C:\cygwin\bin\bash.exe /cygwin-install-action-test.sh

tests/repo/key.priv

3.63 KB
Binary file not shown.

tests/repo/key.pub

1.73 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
category: Debug
2+
build-depends: cygport
3+
sdesc: "test"
4+
ldesc: "test"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
category: Debug
2+
requires: cygwin
3+
sdesc: "test"
4+
ldesc: "test"

tests/repo/x86_64/setup.ini

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was automatically generated at 2023-04-06 23:08:13 CEST.
2+
#
3+
# If you edit it, your edits will be discarded next time the file is
4+
# generated.
5+
#
6+
# See https://sourceware.org/cygwin-apps/setup.ini.html for a description
7+
# of the format.
8+
release: cygwin
9+
arch: x86_64
10+
setup-timestamp: 1680815293
11+
12+
@ cygwin-install-action-test
13+
sdesc: "test"
14+
ldesc: "test"
15+
category: Debug
16+
version: 1.0.0-1
17+
install: x86_64/release/cygwin-install-action-test/cygwin-install-action-test-1.0.0-1.tar.xz 232 87295610f57d118b9c7f80949c220a71578d1e89ef4cf8d63ff785d0e1ba98b285fbc16ede73a66712aaa5f5ab3729bbbd1968247ee1e8bfb19f3fcbc3c8a576
18+
source: x86_64/release/cygwin-install-action-test/cygwin-install-action-test-1.0.0-1-src.tar.xz 232 87295610f57d118b9c7f80949c220a71578d1e89ef4cf8d63ff785d0e1ba98b285fbc16ede73a66712aaa5f5ab3729bbbd1968247ee1e8bfb19f3fcbc3c8a576
19+
depends2: cygwin
20+
build-depends: cygport

tests/repo/x86_64/setup.ini.sig

438 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)