This repository has been archived on 2024-04-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
elektron/.github/workflows/actions.yml
PRADYUMNA KAUSHIK f1605503ef
setup build and test workflow actions
included actions yaml file to build and test code upon push/pull-request to master.
2019-10-24 21:24:43 -04:00

29 lines
535 B
YAML

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 ./...