Skip to content

Commit 4dd19c4

Browse files
committed
test ourself in main [build] [test] [deploy] setup
1 parent 37a9d5a commit 4dd19c4

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/cicd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
NOMAD_TOKEN_EXT: ${{ secrets.NOMAD_TOKEN_EXT }}
1313
NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }}
1414

15-
test:
16-
runs-on: ubuntu-latest
17-
needs: [cicd]
18-
container:
19-
# test using the just built-and-pushed docker image from the [cicd] job above
20-
image: 'docker://ghcr.io/${{ github.repository }}:${{ github.ref_name }}'
21-
steps:
22-
- run: env -i zsh -euax test/test.sh
15+
# test:
16+
# runs-on: ubuntu-latest
17+
# needs: [cicd]
18+
# container:
19+
# # test using the just built-and-pushed docker image from the [cicd] job above
20+
# image: 'docker://ghcr.io/${{ github.repository }}:${{ github.ref_name }}'
21+
# steps:
22+
# - run: test/test.sh

test/test.sh renamed to test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
# Runs various tests.
44

5-
# Run like this to avoid any env vars "leaking" in to this script:
6-
# env -i zsh -euax ./test/test.sh
5+
# Avoid any env vars "leaking" in to this script
6+
unset $(printenv |cut -f1 -d= |grep -Ev '^PATH$')
7+
78

89
function banner() {
910
set +x

0 commit comments

Comments
 (0)