Add automation actions
This commit is contained in:
@@ -0,0 +1,50 @@
|
|||||||
|
name: Check Go code
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- '**.go'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build and test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.24.x'
|
||||||
|
|
||||||
|
- name: Download dependencies
|
||||||
|
run: go mod download
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: go test ./...
|
||||||
|
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.24.x'
|
||||||
|
|
||||||
|
- name: Run golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v8
|
||||||
|
with:
|
||||||
|
version: 'v2.1'
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
release:
|
||||||
|
name: Automatic release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create the release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
# :performing_arts: anon3anon [](https://opensource.org/license/MIT) [](https://goreportcard.com/report/github.com/nightnoryu/anon3anon)
|
# :performing_arts: anon3anon [](https://github.com/nightnoryu/anon3anon/releases) [](https://github.com/nightnoryu/anon3anon/actions/workflows/check-go.yml) [](https://goreportcard.com/report/github.com/nightnoryu/anon3anon)
|
||||||
|
|
||||||
Telegram bot for anonymous messages.
|
Telegram bot for anonymous messages.
|
||||||
|
|
||||||
Currently running at https://t.me/meme_me_a_meme_bot for my channel.
|
Currently running at https://t.me/meme_me_a_meme_bot for my channel.
|
||||||
|
|
||||||
## Local developemnt
|
## Local development
|
||||||
|
|
||||||
Prerequisites:
|
Prerequisites:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user