Skip to content

Commit

Permalink
ci: add github action for go tests (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
xx4h authored Oct 12, 2024
1 parent eb5d4cc commit 7bb63bf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Tests

on:
workflow_dispatch:
push:
branches: main
pull_request:
branches: main

permissions: {}

jobs:
build:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed
# files within `super-linter`
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5

- name: Go Build
run: CGO_ENABLED=0 go build -v -trimpath -ldflags '-w -s' ./main.go

- name: Go test
uses: robherley/go-test-action@v0

0 comments on commit 7bb63bf

Please sign in to comment.