Skip to content

Commit 52c680f

Browse files
committed
chore: github actions added
1 parent a3c51bb commit 52c680f

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Main
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
Main:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Set up Go
16+
uses: actions/setup-go@v3
17+
with:
18+
go-version: 1.19
19+
- name: Test
20+
run: make test
21+
- name: golangci-lint
22+
uses: golangci/golangci-lint-action@v3
23+
with:
24+
version: latest

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
jobs:
7+
Release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
- name: Set up Go
13+
uses: actions/setup-go@v3
14+
with:
15+
go-version: 1.19
16+
- name: Test
17+
run: make test
18+
- name: golangci-lint
19+
uses: golangci/golangci-lint-action@v3
20+
with:
21+
version: latest
22+
- uses: "marvinpinto/action-automatic-releases@latest"
23+
with:
24+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
25+
prerelease: false
26+
files: ./bin/*
27+

0 commit comments

Comments
 (0)