diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..86d6f70 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Go build + +on: + pull_request: + branches: + - 'master' + push: + branches: + - 'master' + +jobs: + go-build: + 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 + cache: true + + - name: Download dependencies + run: go mod download + + - name: Build + run: go build -v + + - name: Test + run: go test -v + + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: go-build + path: ./go-nsupdate |
