diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27dd605..1fafa17 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,17 @@ name: build-container on: push jobs: + test: + runs-on: ubuntu-24.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Go 1.22 + uses: actions/setup-go@v5 + with: + go-version: 1.22 + - name: Run tests + run: make ci-test build: runs-on: ubuntu-latest steps: @@ -25,13 +36,3 @@ jobs: run: | docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG . docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG - ## - name: Docker setup - ## uses: docker/setup-buildx-action@v3 - ## - name: Build and push - development - ## uses: docker/build-push-action@v5 - ## if: github.ref != 'refs/heads/master' - ## with: - ## context: . - ## file: ./Dockerfile - ## push: false - ## tags: eigenlayer-payment-updater:${{ github.sha }} diff --git a/Makefile b/Makefile index 6cbd8bc..19f9225 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,9 @@ clean: test: ${GO} test ./... +.PHONY: ci-test +ci-test: deps test + .PHONY: docker docker: docker build -t payments-updater:latest .