Skip to content

Commit

Permalink
ci: gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorsalgado committed Feb 18, 2024
1 parent b5fa9c4 commit 7f2f8b0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ci

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.22

- name: checkout
uses: actions/checkout@v4

- name: deps
run: make deps

- name: build
run: make build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
go.work

.vscode/
build/

.env
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ up: ## start all systems
down: ## close everything
@docker-compose down

.PHONY: build
build: ## builds the reader application
@go build -o build/ ./...

.PHONY: rm
rm: ## cleanup everything
@docker-compose down --remove-orphans --volumes
Expand Down

0 comments on commit 7f2f8b0

Please sign in to comment.