From e64bab5d8f05ca2750c363ca8c6a84971ab274de Mon Sep 17 00:00:00 2001 From: Benjamin Forehand Jr Date: Tue, 18 Feb 2025 12:54:15 -0600 Subject: [PATCH] Update github workflow files. --- .github/workflows/linux_manual.yml | 13 ++++++++----- .github/workflows/windows_manual.yml | 9 +++++---- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/linux_manual.yml b/.github/workflows/linux_manual.yml index 55afc45..2fc3e18 100644 --- a/.github/workflows/linux_manual.yml +++ b/.github/workflows/linux_manual.yml @@ -38,7 +38,7 @@ jobs: uses: actions/checkout@v4 - name: Setup firefox id: setup-firefox - uses: ./.github/actions/setup_firefox/ + uses: browser-actions/setup-firefox@v1 with: firefox-version: ${{ matrix.firefox }} - run: | @@ -50,11 +50,14 @@ jobs: - name: Setup tests shell: bash run: ./setup_script.sh + - name: Create SSL Certificate Files + run: | + sudo openssl req -x509 -newkey rsa:2048 -keyout search_server/server.key -out search_server/server.cert -days 365 -nodes -subj "/CN=localhost" + cd search_server + ls -la - name: Run Tests - run: tox -e bdd-tests -- --experiment-branch ${{ matrix.branch }} --experiment-slug ${{ inputs.slug }} --private-browsing-enabled --firefox-path="/opt/hostedtoolcache/firefox/${{ matrix.firefox }}/x64/firefox" ${{ inputs.extra-arguments }} - env: - SSL_CERT: ${{ secrets.SSL_CERT }} - SSL_KEY: ${{ secrets.SSL_KEY }} + run: | + tox -e bdd-tests -- --experiment-branch ${{ matrix.branch }} --experiment-slug ${{ inputs.slug }} --private-browsing-enabled --firefox-path="/opt/hostedtoolcache/firefox/${{ matrix.firefox }}/x64/firefox" ${{ inputs.extra-arguments }} - uses: actions/upload-artifact@v4 if: ${{ always() }} with: diff --git a/.github/workflows/windows_manual.yml b/.github/workflows/windows_manual.yml index dcfa90f..09c0263 100644 --- a/.github/workflows/windows_manual.yml +++ b/.github/workflows/windows_manual.yml @@ -39,7 +39,7 @@ jobs: uses: actions/checkout@v4 - name: Setup firefox id: setup-firefox - uses: ./.github/actions/setup_firefox/ + uses: browser-actions/setup-firefox@v1 with: firefox-version: ${{ matrix.firefox }} - run: | @@ -68,11 +68,12 @@ jobs: - name: Setup tests shell: bash run: ./setup_script.sh + - name: Create SSL Certificate Files (Windows) + shell: bash + run: | + openssl req -x509 -newkey rsa:2048 -keyout /home/runner/work/klaatu/klaatu/search_server/server.key -out /home/runner/work/klaatu/klaatu/search_server/server.cert -days 365 -nodes -subj "/CN=localhost" - name: Run Tests run: tox -e bdd-tests -- --experiment-branch ${{ matrix.branch }} --experiment-slug ${{ inputs.slug }} --private-browsing-enabled --firefox-path="C:\Program Files\Firefox_${{ matrix.firefox }}\firefox.exe" ${{ inputs.extra-arguments }} - env: - SSL_CERT: ${{ secrets.SSL_CERT }} - SSL_KEY: ${{ secrets.SSL_KEY }} - uses: actions/upload-artifact@v4 if: ${{ always() }} with: