Skip to content

Commit

Permalink
create GHA env for mod testing, update secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Worm <tony@hofstadter.io>
  • Loading branch information
verdverm committed Sep 13, 2021
1 parent 01ec0ec commit a05413f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test_mod.cue
Expand Up @@ -6,14 +6,17 @@ common.#Workflow & {
name: "test_mod"
on: pull_request: { paths: ["lib/mod/**"] }
jobs: test: {
environment: "hof mod testing"
steps: [ for step in common.#BuildSteps {step} ] + [{
name: "Run mod tests"
run: """
hof test test.cue -s lib -t test -t mod
"""
env: {
HOFMOD_SSHKEY: "${{secrets.HOFMOD_SSHKEY}}"
GITHUB_TOKEN: "${{secrets.HOFMOD_TOKEN}}"
GITLAB_TOKEN: "${{secrets.GITLAB_TOKEN}}"
BITBUCKET_TOKEN: "${{secrets.BITBUCKET_TOKEN}}"
}
}]
}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test_mod.yml
Expand Up @@ -15,6 +15,7 @@ jobs:
- macos-latest
fail-fast: false
runs-on: ${{ matrix.os }}
environment: hof mod testing
steps:
- name: Install Go
uses: actions/setup-go@v2
Expand All @@ -29,5 +30,7 @@ jobs:
- name: Run mod tests
run: hof test test.cue -s lib -t test -t mod
env:
HOFMOD_SSHKEY: ${{secrets.HOFMOD_SSHKEY}}
GITHUB_TOKEN: ${{secrets.HOFMOD_TOKEN}}
GITLAB_TOKEN: ${{secrets.GITLAB_TOKEN}}
BITBUCKET_TOKEN: ${{secrets.BITBUCKET_TOKEN}}
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -23,8 +23,7 @@ clocdev: hof.cue design schema lang lib docs test cue.mods go.mod
cloc --read-lang-def=$$HOME/hof/jumpfiles/assets/cloc_defs.txt --exclude-dir=cue.mod,vendor $^

WORKFLOWS = default \
test_mod \
windows
test_mod

.PHONY: workflow
workflows = $(addprefix workflow_, $(WORKFLOWS))
Expand Down

0 comments on commit a05413f

Please sign in to comment.