Skip to content

Commit

Permalink
Configure github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerasimchuk committed Oct 26, 2023
1 parent ea79828 commit a9226d7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on: push

jobs:
test-unit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Test Unit
run: make test-unit
# test-integration-api:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Test Unit
# run: make test-integration-api
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ logs-api:
docker-compose -f ${DOCKER_COMPOSE_FILENAME} logs -f api
logs-verifier:
docker-compose -f ${DOCKER_COMPOSE_FILENAME} logs -f verifier
test:
test-unit: vendor-install
docker run -v $(shell pwd):/app golang:1.20.0 /bin/bash -c 'cd /app && GO111MODULE=on go test -mod vendor -covermode=count -coverprofile=assets/coverage/coverage.out -v ./... && go tool cover -html=assets/coverage/coverage.out -o=assets/coverage/coverage.html'
test-integration-api:
docker-compose -f ${DOCKER_COMPOSE_FILENAME} run test-integration-api
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![example workflow](https://github.com/github/docs/actions/workflows/push.yml/badge.svg)

# Space Trouble

## Requirements
Expand Down

0 comments on commit a9226d7

Please sign in to comment.