Skip to content

Commit

Permalink
Fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
helder-junior committed Jun 17, 2024
1 parent 558c8e7 commit 5dbbf1a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Run tests
on:
push:
on: push
jobs:
tests:
name: Run unit and integration tests
client-tests:
name: Run client tests
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.17'
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up ci
run: make setup-ci
- name: Test
run: GOPATH=/home/runner/go make test
- run: make build-dev
- run: make test
server-tests:
name: Run server tests
runs-on: ubuntu-latest
steps:
- run: cd server
- run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GOBIN="${GOPATH}/bin"
.PHONY: load-test producer spark-notebook

build-dev:
@docker build -t eventsgateway-client-dev -f dev.Dockerfile .
@docker build -t eventsgateway-client-dev --cache-from eventsgateway-client-dev -f dev.Dockerfile .

test:
docker compose up client-tests
Expand Down
2 changes: 1 addition & 1 deletion server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ run:
docker compose up eventsgateway-api

build-dev:
@docker build -t eventsgateway-server-dev -f dev.Dockerfile .
@docker build -t eventsgateway-server-dev --cache-from eventsgateway-server-dev -f dev.Dockerfile .

deps-start:
@docker compose -f ../docker-compose.yaml up -d \
Expand Down

0 comments on commit 5dbbf1a

Please sign in to comment.