From 87dea167f7849cca64d198c12514e279502d8b30 Mon Sep 17 00:00:00 2001 From: tsutsu3 Date: Fri, 29 Nov 2024 00:22:18 +0900 Subject: [PATCH] CI workflow: Upload and download generated keys as artifacts --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0554325..dcadef3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,15 +37,16 @@ jobs: openssl genrsa -out tests/key/unbound_server.key 2048 openssl req -new -key tests/key/unbound_server.key -out tests/key/unbound_server.csr -subj "/CN=server" openssl x509 -req -in tests/key/unbound_server.csr -signkey tests/key/unbound_server.key -out tests/key/unbound_server.pem -days 365 - - name: Generate client key run: | openssl genrsa -out tests/key/unbound_control.key 2048 openssl req -new -key tests/key/unbound_control.key -out tests/key/unbound_control.csr -subj "/CN=client" openssl x509 -req -in tests/key/unbound_control.csr -signkey tests/key/unbound_control.key -out tests/key/unbound_control.pem -days 365 - - - name: List generated files - run: ls -l + - name: Upload generated keys + uses: actions/upload-artifact@v4 + with: + name: test-keys + path: tests/key/ test: name: Test needs: generate-certs @@ -55,6 +56,11 @@ jobs: node-version: [16.x, 18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4 + - name: Download generated keys + uses: actions/download-artifact@v4 + with: + name: test-keys + path: tests/key/ - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: