From f1605503efb1cb5965a59148211e711a39b1a251 Mon Sep 17 00:00:00 2001 From: PRADYUMNA KAUSHIK <9302481+pradykaushik@users.noreply.github.com> Date: Thu, 24 Oct 2019 21:24:43 -0400 Subject: [PATCH 1/2] 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..4c988c2 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,29 @@ +name: Go +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 ./... -- 2.47.2 From 796b90c8a1a0cff5fda2427679e58ec6037684e8 Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Thu, 24 Oct 2019 21:35:29 -0400 Subject: [PATCH 2/2] updated name of action. --- .github/workflows/actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 4c988c2..c6b7557 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,4 +1,4 @@ -name: Go +name: Build and Test Elektron on: push: branches: [master] -- 2.47.2