Compare commits
3 Commits
v1.0.3
...
6774c2f631
| Author | SHA1 | Date | |
|---|---|---|---|
| 6774c2f631 | |||
| eccef756a0 | |||
| 00d33aa41d |
@@ -1,14 +0,0 @@
|
|||||||
FROM golang:1.24.2 AS build
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN go mod download
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/bin/anon3anon ./cmd/anon3anon
|
|
||||||
|
|
||||||
FROM alpine:latest AS run
|
|
||||||
|
|
||||||
COPY --from=build /app/bin/anon3anon /app/bin/
|
|
||||||
|
|
||||||
CMD ["/app/bin/anon3anon"]
|
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
name: Check Go code
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version: '1.25.x'
|
||||||
|
|
||||||
|
- name: Download dependencies
|
||||||
|
run: go mod download
|
||||||
|
|
||||||
|
- name: Run build
|
||||||
|
run: go build ./cmd/anon3anon/
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: go test ./...
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
name: Check Go code
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
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.25.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.25.x'
|
|
||||||
|
|
||||||
- name: Run golangci-lint
|
|
||||||
uses: golangci/golangci-lint-action@v8
|
|
||||||
with:
|
|
||||||
version: 'v2.4'
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
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
|
|
||||||
with:
|
|
||||||
generate_release_notes: true
|
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
# :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)
|
# :performing_arts: 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.
|
|
||||||
|
|
||||||
## Local development
|
## Local development
|
||||||
|
|
||||||
Prerequisites:
|
Prerequisites:
|
||||||
@@ -15,7 +13,7 @@ Prerequisites:
|
|||||||
Clone the repository:
|
Clone the repository:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git clone git@github.com:nightnoryu/anon3anon.git
|
git clone ssh://git@gitea.nightnoryu.com:2222/nightnoryu/anon3anon.git
|
||||||
cd anon3anon
|
cd anon3anon
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user