From 3f17d992884bc29bbb97bc6396c4b50ccc9ebe44 Mon Sep 17 00:00:00 2001 From: Michael Freeman Date: Fri, 21 Feb 2025 21:05:57 -0600 Subject: [PATCH] adding separate test workflow --- .github/workflows/go-coverage.yml | 7 ++----- .github/workflows/test.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/go-coverage.yml b/.github/workflows/go-coverage.yml index 53638e3..545965d 100644 --- a/.github/workflows/go-coverage.yml +++ b/.github/workflows/go-coverage.yml @@ -1,10 +1,9 @@ -name: test +name: go-coverage on: [push] permissions: contents: write jobs: - test: - name: test + coverage: runs-on: ubuntu-latest steps: - name: checkout @@ -13,8 +12,6 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: go.mod - - name: test - run: make test - name: Run Tests with Coverage run: | go test -coverprofile=cover.out ./... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7fa5d85 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,14 @@ +name: test +on: [push] +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: setup go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: test + run: make test \ No newline at end of file