From 0651d41db127d18a8d1842a6f3d24f8c40ba147a Mon Sep 17 00:00:00 2001 From: commiter Date: Wed, 4 Sep 2024 17:51:24 +0530 Subject: [PATCH] fix: action yaml --- .github/workflows/test.yaml | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0108811b..33539830 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,8 +4,6 @@ on: push: branches: [main] pull_request: - branches: - - '**' jobs: run-tests: @@ -55,34 +53,18 @@ jobs: files: ./coverage.txt fail_ci_if_error: false if: env.GIT_DIFF - regression-test: name: Regression Test runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + - name: Check out repository code + uses: actions/checkout@v2 with: - ref: ${{ github.head_ref }} - - uses: technote-space/get-diff-action@v4 - with: - PATTERNS: | - **/**.go - go.mod - go.sum - - name: Set up Golang + fetch-depth: 0 + - name: Setup Golang uses: actions/setup-go@v3 with: - go-version-file: go.mod - - name: Setup Golang caches - uses: actions/cache@v3 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-golang- + go-version: 1.21.x - name: Install Compose uses: ndeloof/install-compose-action@v0.0.1 with: