Skip to content

Commit

Permalink
CI workflow: Upload and download generated keys as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 committed Nov 28, 2024
1 parent 5ff7e42 commit 87dea16
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 87dea16

Please sign in to comment.