From a4097a1fbc2e01a0feb37f368fc126b0de7f5e2e Mon Sep 17 00:00:00 2001 From: Brandt Keller <43887158+brandtkeller@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:32:08 -0600 Subject: [PATCH] fix(test): decouple unit from e2e test workflows (#662) * feat(test): decouple unit from e2e test workflows * fix(test): rename unit test step --- .github/workflows/test-e2e.yml | 2 +- .github/workflows/test-unit.yaml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-unit.yaml diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 97898c97..a3f03a8c 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -26,4 +26,4 @@ jobs: - name: e2e Tests run: | - make test \ No newline at end of file + make test-e2e \ No newline at end of file diff --git a/.github/workflows/test-unit.yaml b/.github/workflows/test-unit.yaml new file mode 100644 index 00000000..5327cd45 --- /dev/null +++ b/.github/workflows/test-unit.yaml @@ -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 \ No newline at end of file