From f3b92ea4eb7b5bc8166dc9bbd7de508c28919f02 Mon Sep 17 00:00:00 2001 From: PRADYUMNA KAUSHIK <9302481+pradykaushik@users.noreply.github.com> Date: Fri, 25 Oct 2019 00:03:40 -0400 Subject: [PATCH] setup build and test workflow actions (#6) setup build and test workflow actions Included actions yaml file to build and test code upon push/pull-request to master. --- .github/workflows/actions.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..c6b7557 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,29 @@ +name: Build and Test Elektron +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build-and-test: + name: Build and Test + runs-on: ubuntu-18.04 + steps: + - name: Golang Setup + uses: actions/setup-go@v1 + with: + go-version: 1.12.9 + id: go + + - name: Checkout Code + uses: actions/checkout@v1 + + - name: Get Dependencies using Go Modules + run: go mod download + + - name: Build Elektron + run: go build -v -o elektron + + - name: Run Unit Tests + run: go test -v ./...