2 Commits

Author SHA1 Message Date
dc0040c2d1 Add workflow to check Go code on push and pull requests 2025-10-24 23:34:15 +02:00
9950282d6e Update build-and-release workflow to use Gitea-hosted setup-go action
Some checks failed
Release binary for cl-cli / build-and-release (push) Failing after 7s
2025-10-24 23:33:31 +02:00
2 changed files with 19 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ jobs:
with:
path: .changes/${{ github.ref_name }}.md
- name: Setup go for using go gitea actions
uses: https://github.com/actions/setup-go@v4
uses: https://gitea.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Use Go Action to release

View File

@@ -0,0 +1,18 @@
name: Check go code
on:
push: *
pull_request: *
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: https://github.com/actions/checkout@v4
- name: Install rust toolchain
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build binaries
run: cargo build
- name: Run tests
run: cargo test