Skip to content

Commit f83972a

Browse files
authored
Merge pull request #66 from initia-labs/feat/pre-release-0.0.2
Update Makefile and Actions for releasing
2 parents 4f52028 + 9d5108a commit f83972a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build-release.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
basic-checks:
1010
name: Basic Checks
1111
runs-on: ubuntu-latest
12+
env:
13+
GOLANGCI_LINT_VERSION: v1.61.0
1214

1315
steps:
1416
- uses: actions/checkout@v4
@@ -17,8 +19,9 @@ jobs:
1719
with:
1820
go-version: ^1.22
1921

20-
- name: Check lint
21-
run: go fmt ./...
22+
- run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}
23+
- name: Run golangci-lint
24+
run: make lint
2225

2326
- name: Run unit tests
2427
run: go test -v ./...
@@ -36,7 +39,9 @@ jobs:
3639
go-version: ^1.22
3740

3841
- name: Run Integration Tests
39-
run: cd tests && go test -v ./...
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
run: go test -v ./... -tags=integration
4045

4146
build:
4247
name: Build Go binaries

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ release:
7070
fi
7171
git tag -a $(release_version) -m "$(release_version)"
7272
git push origin $(release_version)
73-
gh release create $(release_version) --title "$(release_version)" --notes "Release notes for version $(release_version)"
73+
@echo "Paste the release notes below (end with Ctrl+D):"
74+
@notes=$$(cat); \
75+
gh release create $(release_version) --title "$(release_version)" --notes "$$notes"
7476

7577
# Development purpose
7678
local: build

0 commit comments

Comments
 (0)