Skip to content

Commit

Permalink
adding actions
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Feb 15, 2024
1 parent 8eb505a commit c3dddc6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release-binaries
on:
release:
types: [created]
jobs:
releases:
name: release binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [arm, arm64, 386, amd64]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
goversion: 1.20
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/gocatcli"
binary_name: "gocatcli"
ldflags: "-s -w"
overwrite: true
extra_files: LICENSE README.md
pre_command: "go mod tidy"
19 changes: 19 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: Install test deps
run: |
go install golang.org/x/lint/golint@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/mgechev/revive@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run tests
run: |
./tests.sh

0 comments on commit c3dddc6

Please sign in to comment.