Skip to content

Commit

Permalink
Create GitHub action for build
Browse files Browse the repository at this point in the history
Add build GitHub action based on template.
  • Loading branch information
HeavyWombat committed Dec 10, 2020
1 parent 708b1f9 commit e105db2
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go mod download
go get -u github.com/jteeuwen/go-bindata/...
make internal/img/font-hack.go
- name: Build
run: |
go build ./...
- name: Test
run: |
go get github.com/onsi/ginkgo/ginkgo
go get github.com/onsi/gomega/...
make test

0 comments on commit e105db2

Please sign in to comment.