Skip to content

Try different var syntax #25

Try different var syntax

Try different var syntax #25

Workflow file for this run

name: GitHub server tests
on:
push:
# why is workflow dispatch not showing up in actions?
workflow_dispatch:
inputs:
tags:
required: False
description: 'Optional. Use a "tag expression" specify which tagged tests to run (https://cucumber.io/docs/cucumber/api/#tag-expressions)'
# Only test 2 tests - one uses an env var, the other uses AL.
# They test if env vars get set correctly and depencencies get
# pulled in correctly.
default: '@e6 or @al1'
enable_tmate:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: true
# TODO: alkiln_version:
jobs:
github-server-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
env:
USER1_EMAIL: ${{ secrets.USER1_EMAIL }}
USER1_PASSWORD: ${{ secrets.USER1_PASSWORD }}
SECRET_VAR1: secret-var1-value
SECRET_VAR2: secret-var2-value
SECRET_FOR_MISSING_FIELD: secret for missing field
BRANCH: ${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Setup tmate session
if: ${{ inputs.enable_tmate }}
uses: mxschmitt/action-tmate@v3
with:
detached: true
- name: Start the temporary GitHub server
id: github_server
# TODO: Research how to get this to always be the same branch we're on
# Would ${{ ref or whatever }} work?
uses: SuffolkLITLab/ALKiln/github_server@$BRANCH
with:
CONFIG_CONTENTS: "${{ secrets.CONFIG_CONTENTS }}"
#
- run: echo "Finished starting the GitHub server"
- name: "Run ALKiln tests"
if: ${{ success() }}
# TODO: Research how to get this to always be the same branch we're on
# Would ${{ ref or whatever }} work?
uses: SuffolkLITLab/ALKiln@$BRANCH
with:
SERVER_URL: "${{ steps.github_server.outputs.SERVER_URL }}"
DOCASSEMBLE_DEVELOPER_API_KEY: "${{ steps.github_server.outputs.DOCASSEMBLE_DEVELOPER_API_KEY }}"
INSTALL_METHOD: "server"
ALKILN_VERSION: "5.0.2-feat-github-server-1"
- run: echo "Finished running ALKiln tests"