Skip to content

Commit 4281e78

Browse files
committed
github actions
1 parent 611c00d commit 4281e78

File tree

4 files changed

+63
-46
lines changed

4 files changed

+63
-46
lines changed

.drone.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/go.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
2+
# This workflow will build a golang project
3+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
4+
5+
name: Go
6+
7+
on:
8+
workflow_call:
9+
push:
10+
branches: [ "master" ]
11+
pull_request:
12+
branches: [ "master" ]
13+
14+
jobs:
15+
go:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version-file: "go.mod"
24+
check-latest: true
25+
cache: true
26+
27+
- name: Build
28+
run: go build .
29+
- name: Test
30+
run: go test -race -cover -v ./...
31+
32+
- name: Golangci-lint
33+
uses: golangci/golangci-lint-action@v6

.github/workflows/release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
2+
name: Release
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
go:
11+
name: Go
12+
uses: ./.github/workflows/go.yaml
13+
secrets: inherit
14+
15+
changelog:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
name: Changelog
20+
needs: [ "go", "build" ]
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
gh release create --generate-notes --verify-tag "${GITHUB_REF#refs/*/}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yagostatus

0 commit comments

Comments
 (0)