Skip to content

Commit

Permalink
Add step to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed May 22, 2024
1 parent ba55e89 commit 48e5389
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ clean:
test:
${GO} test ./...

.PHONY: ci-test
ci-test: deps test

.PHONY: docker
docker:
docker build -t payments-updater:latest .

0 comments on commit 48e5389

Please sign in to comment.