Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarlatorre committed Feb 8, 2024
1 parent 8449731 commit 9db3f8e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches: [main]
pull_request:
branches: [ main ]

jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: make get
- name: Run tests
run: make test
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: all test clean

run:
go run ./cmd/bookmark

test:
go test ./test/... -v

get:
go get ./cmd/bookmark

0 comments on commit 9db3f8e

Please sign in to comment.