From 03940a072c97274c04755d2ae9834e9dee840419 Mon Sep 17 00:00:00 2001 From: Tracey Jaquith Date: Wed, 14 Feb 2024 01:14:06 -0800 Subject: [PATCH] get GH Actions to work on oneself --- .github/workflows/cicd.yml | 2 ++ lint | 2 +- test.sh | 8 +++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 82ce248..44ecc33 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -14,3 +14,5 @@ jobs: with: REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} NOMAD_VAR_NO_DEPLOY: 'true' + # omit this next line -- used here so `dyno` can test itself in GitHub Actions: + TEST_SCRIPT: '/app/test.sh' diff --git a/lint b/lint index 32bdb0e..fa88303 100755 --- a/lint +++ b/lint @@ -2,7 +2,7 @@ # For a repo that's using our container in their CI [test] phase, [lint] job, # we'll use any of these files from _their_ repo (that they've customized). -# (Otherwise, use these files from us, the 'eslint' repo, located in /app/) +# (Otherwise, use these files from us, the 'dyno' repo, located in /app/) MYDIR=${0:a:h} diff --git a/test.sh b/test.sh index d8e3896..7437be6 100755 --- a/test.sh +++ b/test.sh @@ -1,7 +1,9 @@ -#!/bin/bash -ex +#!/bin/zsh -ex # runs lint then tests -./lint +MYDIR=${0:a:h} -./test/test.sh +$MYDIR/lint + +$MYMDIR/test/test.sh