From 00d33aa41d176447564dadf2f3c224fe7f355681 Mon Sep 17 00:00:00 2001 From: nightnoryu Date: Sat, 23 May 2026 23:55:26 +0300 Subject: [PATCH] Update workflows --- .gitea/workflows/check-go.yml | 32 +++++++++++++++++++++++ .github/workflows/check-go.yml | 48 ---------------------------------- .github/workflows/release.yml | 24 ----------------- 3 files changed, 32 insertions(+), 72 deletions(-) create mode 100644 .gitea/workflows/check-go.yml delete mode 100644 .github/workflows/check-go.yml delete mode 100644 .github/workflows/release.yml diff --git a/.gitea/workflows/check-go.yml b/.gitea/workflows/check-go.yml new file mode 100644 index 0000000..908b29f --- /dev/null +++ b/.gitea/workflows/check-go.yml @@ -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 ./... diff --git a/.github/workflows/check-go.yml b/.github/workflows/check-go.yml deleted file mode 100644 index 8f1502f..0000000 --- a/.github/workflows/check-go.yml +++ /dev/null @@ -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' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 257c860..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -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