Skip to content

Commit

Permalink
support go 1.16 and 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Jekubczyk committed Feb 27, 2022
1 parent d2039c9 commit 86641c9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 11 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: test
name: execute validation runs
on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.16, 1.17]
steps:
- run: |
echo "$HOME/bin" >> "$GITHUB_PATH"
Expand All @@ -17,8 +14,7 @@ jobs:
uses: arduino/setup-task@v1
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
check-latest: true
go-version: '1.17'
- uses: actions/checkout@v2
- name: install
run: |
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: run matrix test with different go versions
on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.16, 1.17]
steps:
- run: |
echo "$HOME/bin" >> "$GITHUB_PATH"
echo "$HOME/gopath/bin" >> "$GITHUB_PATH"
- name: Install Task
uses: arduino/setup-task@v1
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
check-latest: true
- uses: actions/checkout@v2
- name: install
run: |
task install-tools && \
task install
- name: verify preconditions
run: task verify
- run: task test integration-test
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ Yet another tp-link HS100 library for golang
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=golang-tplink-hs100&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=golang-tplink-hs100)
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=golang-tplink-hs100&metric=sqale_index)](https://sonarcloud.io/dashboard?id=golang-tplink-hs100)

## Usage
## Supported Go versions:

### With a project using go modules
- 1.16
- 1.17

install library `go get github.com/jaedle/golang-tplink-hs100`
## Usage

### Without using go modules
Please make sure to have go-modules enabled.

install library `go get github.com/jaedle/golang-tplink-hs100/...`
Run within your go project folder: `go get -u github.com/jaedle/golang-tplink-hs100`

### Usage example

Expand Down

0 comments on commit 86641c9

Please sign in to comment.