From 46bc22ef0f904e1e74eb9dfed3e439d99f57fc03 Mon Sep 17 00:00:00 2001 From: Mikolaj Pawlikowski Date: Thu, 3 Feb 2022 12:12:07 +0000 Subject: [PATCH] Re-add basic CI with GH actions Signed-off-by: Mikolaj Pawlikowski --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3c30484 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + - name: Compile the binary + run: | + make bin/goldpinger + ./bin/goldpinger -h + - name: Build the Docker image + run: | + make build