Skip to content

Commit

Permalink
Issue GoTestTools/gotestfmt#8: JSON support
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos committed Dec 5, 2021
1 parent 4e82a43 commit 6c7d998
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/selftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install gotestfmt
uses: haveyoudebuggedit/gotestfmt-action@main
uses: .
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand All @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v2
- name: Run gotestfmt
working-directory: testdata
run: go test -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
run: go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Upload test log
uses: actions/upload-artifact@v2
if: always()
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:

# Install gotestfmt on the VM running the action.
- name: Set up gotestfmt
uses: haveyoudebuggedit/gotestfmt-action@v1
uses: haveyoudebuggedit/gotestfmt-action@v2
with:
# Optional: pass GITHUB_TOKEN to avoid rate limiting.
token: ${{ secrets.GITHUB_TOKEN }}
# Optional: pass the gotestfmt version you want to run.
version: v1.0.0
version: v2.0.0
# Optional: pass an organization name and repo to use a fork
org: haveyoudebuggedit
repo: gotestfmt
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function downloadGofmt(octokit, version, versionPrefix, org, repo, token)
async function main() {
try {
// versionPrefix is the prefix of the version gotestfmt-action supports.
const versionPrefix = "v1."
const versionPrefix = "v2."
const token = core.getInput('token');
const version = core.getInput('version');
const org = core.getInput("org")
Expand Down

0 comments on commit 6c7d998

Please sign in to comment.