Skip to content

Commit

Permalink
prep for 0.3.0 release, some housekeeping (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
robherley authored Apr 7, 2024
1 parent 4c6caba commit 89f9398
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
groups:
npm:
patterns:
- "*"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
groups:
actions:
patterns:
- "*"
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
jest:
Expand All @@ -13,4 +16,4 @@ jobs:
with:
node-version: 20
- run: npm ci
- run: npm test
- run: npm test
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Powered by [Job Summaries](https://github.blog/2022-05-09-supercharging-github-a
| - | - | - |
| moduleDirectory | `.` | relative path to the directory containing the `go.mod` of the module you wish to test |
| testArguments | `./...` | arguments to pass to `go test`, `-json` will be prepended automatically |
| fromJSONFile | null | parse an exisiting [test2json](https://pkg.go.dev/cmd/test2json) file, instead of executing go test |
| omitUntestedPackages | `false` | omit any go packages that don't have any tests from the summary output |
| omitSuccessfulPackages | `false` | omit any go packages that didn't contain failed tests |
| omitPie | `false` | omit the pie chart from the summary output
Expand All @@ -36,17 +37,17 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.18
go-version-file: go.mod

- name: Build
run: go build -v ./...

- name: Test
uses: robherley/go-test-action@v0.1.0
uses: robherley/go-test-action@v0.3.0
```
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "go-test-action",
"version": "0.2.0",
"version": "0.3.0",
"description": "GitHub Action to run go tests with rich summary output and annotations.",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 89f9398

Please sign in to comment.