Commit Graph

21 Commits (cfd565d1ad1683d9bf99d3520710998542c6bd7c)

Author SHA1 Message Date
Marc-Antoine Ruel 67ec1da964 Silence linting 2 years ago
Marc-Antoine Ruel 5de331625c Update go.mod to 1.22 and update github actions workflow 2 years ago
M-A c14e02d418
go.mod bump to go1.20 (#58)
Update github actions.
3 years ago
Çağlar Onur e271f7c07b
[inky] Add Inky Impression 5.7" and 4" support (#55)
It is a 7 colour ePaper/eInk HAT that comes with 5.7" (600 x 448 pixel) or 4" (640 x 400 pixel).

Refactors the existing 3 color Inky and adds additional fields to
auto-detect via EEPROM.

Tested with 5.7" version.
3 years ago
Marc-Antoine Ruel 212f060876 Remove compatibility with before 1.17 4 years ago
Marc-Antoine Ruel eb0d2cc2b9 Update to go1.17
Update dependencies
Update github actions
Ran gofmt
Fix one gosec warning
4 years ago
Marc-Antoine Ruel 4dd649e46c github actions: remove golint
It's been deprecated since 2020. Good bye
4 years ago
Marc-Antoine Ruel 0fff63390d github actions: fix actions/setup-go@v3
I was misusing semver, using ^ where I wanted ~
4 years ago
Marc-Antoine Ruel 4d03e3f68b github actions: update go get to go install for go1.17 4 years ago
hansmi 02831f4a67
Bump Go version in go.mod and for quick tests to 1.14 (#29)
Go 1.13 was released in September 2019, more than two years ago.
Updating to one later release should be fine.

The primary reason for doing this is the introduction of
"testing".T.Cleanup in Go 1.14 (https://pkg.go.dev/testing#T.Cleanup).

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
5 years ago
Marc-Antoine Ruel ecaf62d235 gohci and github actions: improve testing 5 years ago
Marc-Antoine Ruel b5024d6816 github actions: skip unnecessary checks
No need to test 1.14.7, 1.13.15 is already sufficient.
No need to test in GOPATH mode.
5 years ago
Marc-Antoine Ruel 97998e315b github action: update for go1.17 and fix checks for PRs
- Use go1.17 for github actions.
- Use go mod edit instead of go get for testing other packages. There's two
  benefits:
  - This removes the round trip to pkg.go.dev and use the already present local
    checkout.
  - The go get periph.io/x/conn/v3@${GITHUB_SHA} command worked if a maintainer
    push a branch, but fails for a PR. This is because the go get command does a
    clone with all the branches, so it finds the commit even if it's not in main.
    For a PR, one has to pull a specific refs/pull/ID/head ref that is not a
    branch, thus go get cannot find it because git clone doesn't know about it.
    The only way to work around is to git clone manually.
- Remove 'go version' and 'go env' since they are already run as part of
  setup-go@v2.
- Fix a new check in go vet in example code.
5 years ago
Marc-Antoine Ruel 440ba6e652 Fix ineffassign check 5 years ago
Marc-Antoine Ruel 823eae07fd staticcheck: enforce
This does result in a few awkward cases but in general it's worth
enforcing and most importantly will make my life as a code reviewer
easier.

It's mostly deletion of dead code.
5 years ago
Marc-Antoine Ruel a27238ec6e enforce no shadowed variable
Convert a few wrapped error from %v to %w.

This does result in a few awkward cases but the value outweighs the
downsides.
5 years ago
Marc-Antoine Ruel 31cac53e0a github: test on cmd in advance 5 years ago
Marc-Antoine Ruel 9d89bbe62d Update issue and PR github templates 5 years ago
Marc-Antoine Ruel 4d2d9a5ccb Bump go to 1.16 5 years ago
Marc-Antoine Ruel 16652c725e github actions: purge the cache
This is done by changing the cache key.

go get tools currently fail with:
  # cd /home/runner/go/src/golang.org/x/tools; git pull --ff-only
  From https://go.googlesource.com/tools
  + 63754364...8b4aab62 master             -> origin/master  (forced update)
    ab9934f0..f2d1c246  gopls-release-branch.0.6 -> origin/gopls-release-branch.0.6
  * [new branch]        internal-branch.issue43628 -> origin/internal-branch.issue43628
  * [new tag]           gopls/v0.6.2       -> gopls/v0.6.2
  * [new tag]           gopls/v0.6.3-pre.1 -> gopls/v0.6.3-pre.1
  fatal: Not possible to fast-forward, aborting.
  package golang.org/x/tools/go/analysis: exit status 128

See https://github.com/periph/devices/pull/2/checks?check_run_id=1693498363
5 years ago
Marc-Antoine Ruel dbc4b06abe Add a few things
- Update README.md to point at the right place.
- Add github actions.
- Add codecov.yml because the codecov.io defaults are not great.
5 years ago