Skip to content

Commit

Permalink
ci: stop use Makefile (#29)
Browse files Browse the repository at this point in the history
try to fix release process ...
  • Loading branch information
PascalBourdier committed Jun 7, 2024
1 parent 328466b commit c12a94b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

on: push
Expand All @@ -8,27 +9,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.22'
id: go

- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Test
run: make test
run: go test ./... -v
linter:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.22'
id: go

- name: lint
run: make check
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Create Release

on:
Expand Down Expand Up @@ -27,24 +28,24 @@ jobs:
steps:
- name: Set up Go
# Github Action as the label "Verified creator" https://github.com/marketplace/actions/setup-go-environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.22'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Go check
run: make check
- name: golangci-lint
uses: golangci/golangci-lint-action@v6

- name: Go test
run: make test
run: go test ./... -v

- name: Release the Go application
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ check: setup
setup: ./bin/golangci-lint

./bin/golangci-lint:
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.2
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.0

0 comments on commit c12a94b

Please sign in to comment.