Skip to content

Commit

Permalink
Add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
markdingo committed Dec 16, 2021
1 parent 1fd65df commit fbc9a47
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Build
run: go build
28 changes: 28 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: codecov

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

codecov:
name: codecov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Generate Coverage Report
run: go test ./... -coverprofile=coverage.txt -covermode=atomic

- name: Upload coverage report
uses: codecov/codecov-action@v2
with:
file: ./coverage.txt
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Test
run: go test ./...
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# cslb Change Log
### v1.0.0 -- 2021-12-16
* Move from Travis to github actions
* Tag package
### v0.1.0 -- 2021-03-21
* Added go.mod
* Bumped travis upper go version to 1.16
Expand Down
4 changes: 2 additions & 2 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cslb

const (
// Version is auto-generated from ChangeLog.md
Version = "v0.1.0"
Version = "v1.0.0"
// ReleaseDate is also auto-generated from ChangeLog.md
ReleaseDate = "2021-03-21"
ReleaseDate = "2021-12-16"
)

0 comments on commit fbc9a47

Please sign in to comment.