diff options
| author | Tero Marttila <[email protected]> | 2022-06-24 11:36:41 +0300 | 
|---|---|---|
| committer | Tero Marttila <[email protected]> | 2022-06-24 11:37:33 +0300 | 
| commit | 31c8d113f3fd11f85ebf1d0d84629c503615bfcd (patch) | |
| tree | dbeefb1458df54c4e976915ba342f34b4c93a556 | |
| parent | ff4182b7a58281656ea345027a1c874a4a6acc6b (diff) | |
github workflows: add go build workflow
| -rw-r--r-- | .github/workflows/build.yml | 31 | 
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..29bd97d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Go build + +on: +  pull_request: +    branches: +      - 'master' +  push: +    branches: +      - 'master' + +jobs: +  build-go: +    runs-on: ubuntu-20.04 + +    steps: +      - name: Checkout +        uses: actions/checkout@v3 + +      - name: Setup Go +        uses: actions/setup-go@v3 +        with: +          go-version: 1.15 + +      - name: Go Get +        run: go get -d -u + +      - name: Go Build +        run: go build -v + +      - name: Go Test +        run: go test -v  | 
