Skip to content

Commit

Permalink
fix(test): decouple unit from e2e test workflows (#662)
Browse files Browse the repository at this point in the history
* feat(test): decouple unit from e2e test workflows

* fix(test): rename unit test step
  • Loading branch information
brandtkeller authored Sep 13, 2024
1 parent 89be460 commit a4097a1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:

- name: e2e Tests
run: |
make test
make test-e2e
29 changes: 29 additions & 0 deletions .github/workflows/test-unit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Unit Testing

permissions:
contents: read

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow).
types: [milestoned, opened, reopened, synchronize]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup golang
uses: ./.github/actions/golang

- name: Display Go version
run: go version

- name: Unit Tests
run: |
make test-unit

0 comments on commit a4097a1

Please sign in to comment.