From 3cad02483681e4846df2c682918c785d869b15a0 Mon Sep 17 00:00:00 2001 From: ATechnoHazard Date: Mon, 21 Oct 2019 04:51:38 +0530 Subject: [PATCH] Add a workflow for CI using github actions Signed-off-by: ATechnoHazard --- .github/workflows/CI.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..fad59d1 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,35 @@ +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + go: [ '1.11', '1.12', '1.13' ] + + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + id: go + + - name: Checkout repo + uses: actions/checkout@v1 + + - name: Get dependencies + run: | + go get -v -t -d + + - name: Build + run: | + go build . \ No newline at end of file