diff options
| author | Tero Marttila <[email protected]> | 2022-06-24 11:54:58 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-24 11:54:58 +0300 |
| commit | 51b9e521aee6807f4bfcea9b6a38bdbcdb2bc5b1 (patch) | |
| tree | bdc4661f88682915d8dca26996ce61af94abb625 /.github | |
| parent | ff4182b7a58281656ea345027a1c874a4a6acc6b (diff) | |
| parent | fefb9ea80745893a2203576bdc2872d33e539064 (diff) | |
Merge pull request #7 from SpComb/github-actions
Setup GitHub Actions
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 |
