diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..fa21ecb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build Pipeline for Test +'on': + - pull_request +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Set up Go 1.x + uses: actions/setup-go@v3 + with: + go-version: '^1.21' + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + + - name: run recursive test + run: | + set -e + go test -v ./... diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index afd9314..a0612a6 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -22,4 +22,4 @@ jobs: GOOS=linux GOARCH=amd64 make echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.GHCR_USER }}" --password-stdin docker build . --tag ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }} -f docker/Dockerfile --build-arg "ghcr_token=${{ secrets.GHCR_TOKEN }}" - docker push ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }} \ No newline at end of file + docker push ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }}