Skip to content

Commit

Permalink
Fix GH workflow command for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ptzianos authored and northdpole committed Feb 15, 2024
1 parent 9b83530 commit 2c9ded9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,33 @@ permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-build
cancel-in-progress: true
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Cache plz
id: cache-plz
uses: actions/cache@v3
with:
path: .plz-cache
key: ${{ runner.os }}-plz

- name: Build
env:
# This uses a public read-only PAT tied to VJftw, please don't abuse! :pray:
# See: https://github.com/actions/setup-node/issues/49 for reasons.
GITHUB_TOKEN: ${{ secrets.VJFTW_GITHUB_TOKEN }}
CONSUMER_JIRA_API_TOKEN: ${{secrets.CONSUMER_JIRA_API_TOKEN}}
CONSUMER_JIRA_USER: ${{secrets.CONSUMER_JIRA_USER}}
CONSUMER_JIRA_URL: ${{secrets.CONSUMER_JIRA_URL}}
run: make build

test:
name: Test
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ lint:
go-tests:
go test -race -json $(GO_TEST_PACKAGES)

tests: go-tests
test: go-tests

$(component_binariess):
$(shell \
Expand Down

0 comments on commit 2c9ded9

Please sign in to comment.