Skip to content

Commit

Permalink
test and build on each commit of master
Browse files Browse the repository at this point in the history
  • Loading branch information
childe committed Jul 17, 2024
1 parent d112b58 commit bd7a98b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: test and build

on:
push:
branches:
- '*'

jobs:
make:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.22

- name: Test
run: go test -v ./...

- name: Build
run: go build -ldflags "-X main.version=$(git rev-parse --short HEAD)" -o build/gohangout

0 comments on commit bd7a98b

Please sign in to comment.