diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..9a0bf43a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +on: push +name: Build and release on push +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.14.x + - name: Checkout code + uses: actions/checkout@v2 + - name: Test + run: sudo make test-integration test-coverage + - name: Build + run: make multiarch-build + - name: Release + uses: fnkr/github-action-ghr@v1 + if: startsWith(github.ref, 'refs/tags/') + env: + GHR_PATH: release/ + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..aa093005 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ + +on: pull_request +name: Build and Test +jobs: + test: + strategy: + matrix: + go-version: [1.14.x] + platform: [ubuntu-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: setup-docker + uses: docker-practice/actions-setup-docker@0.0.1 + - name: Test + run: sudo make multiarch-build test-integration test-coverage \ No newline at end of file