Skip to content

Commit

Permalink
improve ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kolikons committed Oct 6, 2024
1 parent c07ee1e commit 4c0dfa3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go Build via release
on:
pull_request:
paths:
- "cmd/**"
- "pkg/**"
- .goreleaser.yaml
- Dockerfile
jobs:
ci-build:
runs-on: ubuntu-latest
name: Build & Test
steps:
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: actions/setup-go@v5
with:
go-version: 1.18

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: release --snapshot --clean --skip=publish,sign
13 changes: 1 addition & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,12 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
name: Build & Test
steps:
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: actions/setup-go@v5
with:
go-version: 1.18
Expand All @@ -35,8 +29,3 @@ jobs:
run: |
go build -v .
go test ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: release --snapshot --clean --skip=publish,sign

0 comments on commit 4c0dfa3

Please sign in to comment.