Skip to content

Commit

Permalink
setup CI for running build + tests on PR and push (#54)
Browse files Browse the repository at this point in the history
* setup CI for running build + tests on PR and push

* allow .todocheck.yaml in gitignore & commit missing test artefacts

* run CI pipeline on push only

* separate test step in separate job

* test failing build

* test failing tests

* finish testing CI steps

* fix issues from code review
  • Loading branch information
preslavmihaylov authored Sep 6, 2020
1 parent 30cd6ad commit 5bf8e69
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: master

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build binary
run: make build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
tmp/
todocheck
.todocheck.yaml
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build:
go build

test: build
go test -v -count=1 ./testing

.PHONY: build test
2 changes: 2 additions & 0 deletions testing/scenarios/basepath_config/.todocheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
origin: "no_issue_tracker"
issue_tracker: JIRA

0 comments on commit 5bf8e69

Please sign in to comment.