Skip to content

Commit

Permalink
fix: action yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
commiter committed Sep 4, 2024
1 parent 2b21a72 commit 0651d41
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches: [main]
pull_request:
branches:
- '**'

jobs:
run-tests:
Expand Down Expand Up @@ -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/[email protected]
with:
Expand Down

0 comments on commit 0651d41

Please sign in to comment.