Skip to content

Commit

Permalink
Add test for multiple sites and an extra pubkey
Browse files Browse the repository at this point in the history
Signed-off-by: Konrad Gräfe <[email protected]>
  • Loading branch information
kgraefe authored and jon-turney committed Apr 7, 2023
1 parent e1237bb commit 006ad0b
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,32 @@ jobs:
shell: bash
env:
SHELLOPTS: igncr

multiple-sites-and-pubkeys:
runs-on: windows-latest
strategy:
fail-fast: false

name: 'Test multiple sites and extra pubkeys'

steps:
- run: git config --global core.autocrlf input

- uses: actions/checkout@v2

- name: Run repo HTTP server
uses: Eun/[email protected]
with:
directory: ${{ github.workspace }}\tests\repo

- name: Install Cygwin
uses: ./
with:
site: |
http://localhost:8080
http://mirrors.kernel.org/sourceware/cygwin/
packages: cygwin-install-action-test
pubkeys: ${{ github.workspace }}\tests\repo\key.pub

- name: Run test shell script
run: C:\cygwin\bin\bash.exe /cygwin-install-action-test.sh
Binary file added tests/repo/key.priv
Binary file not shown.
Binary file added tests/repo/key.pub
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
category: Debug
build-depends: cygport
sdesc: "test"
ldesc: "test"
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
category: Debug
requires: cygwin
sdesc: "test"
ldesc: "test"
Binary file not shown.
20 changes: 20 additions & 0 deletions tests/repo/x86_64/setup.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was automatically generated at 2023-04-06 23:08:13 CEST.
#
# If you edit it, your edits will be discarded next time the file is
# generated.
#
# See https://sourceware.org/cygwin-apps/setup.ini.html for a description
# of the format.
release: cygwin
arch: x86_64
setup-timestamp: 1680815293

@ cygwin-install-action-test
sdesc: "test"
ldesc: "test"
category: Debug
version: 1.0.0-1
install: x86_64/release/cygwin-install-action-test/cygwin-install-action-test-1.0.0-1.tar.xz 232 87295610f57d118b9c7f80949c220a71578d1e89ef4cf8d63ff785d0e1ba98b285fbc16ede73a66712aaa5f5ab3729bbbd1968247ee1e8bfb19f3fcbc3c8a576
source: x86_64/release/cygwin-install-action-test/cygwin-install-action-test-1.0.0-1-src.tar.xz 232 87295610f57d118b9c7f80949c220a71578d1e89ef4cf8d63ff785d0e1ba98b285fbc16ede73a66712aaa5f5ab3729bbbd1968247ee1e8bfb19f3fcbc3c8a576
depends2: cygwin
build-depends: cygport
Binary file added tests/repo/x86_64/setup.ini.sig
Binary file not shown.

0 comments on commit 006ad0b

Please sign in to comment.