Skip to content

Commit

Permalink
feat: add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyin committed May 3, 2021
1 parent 447edca commit 6f38124
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build

on: [push]

jobs:
test-build:
name: Test & Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.16.1
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: make test
- name: Build
run: |
GOOS=linux go build -o ./bin/myhttp myhttp.go
./bin/myhttp -h

0 comments on commit 6f38124

Please sign in to comment.