Skip to content

Support providing an x.509 certificate for user authentication #1

Support providing an x.509 certificate for user authentication

Support providing an x.509 certificate for user authentication #1

Workflow file for this run

name: "Plugins"
on:
pull_request:
push:
branches:
- master
schedule:
- cron: "0 * * * 0" # Every day at 3am UTC.
workflow_dispatch:
inputs:
version:
required: true
type: string
default: 24.2.0-jammy
jobs:
tests:
name: "${{ matrix.group.name }}"
strategy:
fail-fast: false
matrix:
group:
- name: plugins
path: ./src/__test__/plugins
env:
# Github only passes secrets to the main repo, so we need to skip some things if they are unavailable
SECRETS_AVAILABLE: ${{ secrets.EVENTSTORE_CLOUD_ID != null }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Connect to tailscale
if: ${{ matrix.group.tailscale && env.SECRETS_AVAILABLE == 'true' }}
run: |
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/eoan.gpg | sudo apt-key add -
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/eoan.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update
sudo apt-get install tailscale
sudo tailscale up --authkey ${{ secrets.TAILSCALE_AUTH }} --hostname "node-client-ci-${{ inputs.version }}-$(date +'%Y-%m-%d-%H-%M-%S')" --advertise-tags=tag:ci --accept-routes
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "14.x"
- name: Install
run: yarn
- name: Run Tests
run: yarn test ${{ matrix.group.path }} --ci --run-in-band --forceExit
env:
EVENTSTORE_IMAGE: eventstore-ee:${{ inputs.version }}
EVENTSTORE_CLOUD_ID: ${{ secrets.EVENTSTORE_CLOUD_ID }}
- name: Disconnect from tailscale
if: ${{ always() && matrix.group.tailscale && env.SECRETS_AVAILABLE == 'true' }}
run: sudo tailscale down