gohci and github actions: improve testing

pull/22/head
Marc-Antoine Ruel 5 years ago
parent 3b2961221d
commit ecaf62d235

@ -139,7 +139,7 @@ jobs:
- name: 'Check: go test -cover' - name: 'Check: go test -cover'
run: go test -timeout=40s -covermode=count -coverprofile coverage.txt ./... run: go test -timeout=40s -covermode=count -coverprofile coverage.txt ./...
# Don't send code coverage if anything failed to reduce spam. # Don't send code coverage if anything failed to reduce spam.
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v2
- name: 'Cleanup' - name: 'Cleanup'
run: rm coverage.txt run: rm coverage.txt
# Don't run go test -race if anything failed, to speed up the results. # Don't run go test -race if anything failed, to speed up the results.
@ -194,7 +194,7 @@ jobs:
git clone https://github.com/periph/cmd git clone https://github.com/periph/cmd
cd cmd cd cmd
go mod edit -replace=periph.io/x/devices/v3=../devices go mod edit -replace=periph.io/x/devices/v3=../devices
go get ./... go get -t ./...
go test -short ./... go test -short ./...
- name: 'Send comments' - name: 'Send comments'

@ -17,26 +17,35 @@ workers:
- -benchtime=1000ms - -benchtime=1000ms
- -benchmem - -benchmem
- ./... - ./...
# Test in advance. # Test in advance: cmd
- cmd: - dir: ..
cmd:
- git - git
- clone - clone
- --depth - --depth
- 1 - 1
- https://github.com/periph/cmd - https://github.com/periph/cmd
dir: .. - dir: ../cmd
- cmd: cmd:
- go
- mod
- edit
- -replace=periph.io/x/devices/v3=../devices
- dir: ../cmd
cmd:
- go - go
- get - get
- periph.io/x/devices/v3@${GIT_SHA} - -t
dir: ../cmd - ./...
- cmd: - dir: ../cmd
cmd:
- go - go
- test - test
- -short
- ./... - ./...
dir: ../cmd
# Test commands. # Test commands.
- cmd: - dir: ../cmd
cmd:
- go - go
- install - install
- -v - -v
@ -45,7 +54,6 @@ workers:
- ./periph-info - ./periph-info
- ./periph-smoketest - ./periph-smoketest
- ./spi-list - ./spi-list
dir: ../cmd
- cmd: - cmd:
- periph-info - periph-info
- cmd: - cmd:
@ -75,26 +83,35 @@ workers:
- -benchtime=1000ms - -benchtime=1000ms
- -benchmem - -benchmem
- ./... - ./...
# Test in advance. # Test in advance: cmd
- cmd: - dir: ..
cmd:
- git - git
- clone - clone
- --depth - --depth
- 1 - 1
- https://github.com/periph/cmd - https://github.com/periph/cmd
dir: .. - dir: ../cmd
- cmd: cmd:
- go
- mod
- edit
- -replace=periph.io/x/devices/v3=../devices
- dir: ../cmd
cmd:
- go - go
- get - get
- periph.io/x/devices/v3@${GIT_SHA} - -t
dir: ../cmd - ./...
- cmd: - dir: ../cmd
cmd:
- go - go
- test - test
- -short
- ./... - ./...
dir: ../cmd
# Test commands. # Test commands.
- cmd: - dir: ../cmd
cmd:
- go - go
- install - install
- -v - -v
@ -104,7 +121,6 @@ workers:
- ./periph-info - ./periph-info
- ./periph-smoketest - ./periph-smoketest
- ./spi-list - ./spi-list
dir: ../cmd
- cmd: - cmd:
- periph-info - periph-info
- cmd: - cmd:
@ -147,26 +163,35 @@ workers:
- -benchtime=1000ms - -benchtime=1000ms
- -benchmem - -benchmem
- ./... - ./...
# Test in advance. # Test in advance: cmd
- cmd: - dir: ..
cmd:
- git - git
- clone - clone
- --depth - --depth
- 1 - 1
- https://github.com/periph/cmd - https://github.com/periph/cmd
dir: .. - dir: ../cmd
- cmd: cmd:
- go
- mod
- edit
- -replace=periph.io/x/devices/v3=../devices
- dir: ../cmd
cmd:
- go - go
- get - get
- periph.io/x/devices/v3@${GIT_SHA} - -t
dir: ../cmd - ./...
- cmd: - dir: ../cmd
cmd:
- go - go
- test - test
- -short
- ./... - ./...
dir: ../cmd
# Test commands. # Test commands.
- cmd: - dir: ../cmd
cmd:
- go - go
- install - install
- -v - -v
@ -176,7 +201,6 @@ workers:
- ./periph-info - ./periph-info
- ./periph-smoketest - ./periph-smoketest
- ./spi-list - ./spi-list
dir: ../cmd
- cmd: - cmd:
- periph-info - periph-info
- cmd: - cmd:
@ -223,6 +247,11 @@ workers:
- periph-smoketest - periph-smoketest
- bcm283x - bcm283x
- -quick - -quick
- cmd:
- periph-smoketest
- ftdi
- -type
- ft232h
# Old MacBook Pro on 10.9. # Old MacBook Pro on 10.9.
- name: mbp - name: mbp
@ -235,26 +264,35 @@ workers:
- -benchtime=1000ms - -benchtime=1000ms
- -benchmem - -benchmem
- ./... - ./...
# Test in advance. # Test in advance: cmd
- cmd: - dir: ..
cmd:
- git - git
- clone - clone
- --depth - --depth
- 1 - 1
- https://github.com/periph/cmd - https://github.com/periph/cmd
dir: .. - dir: ../cmd
- cmd: cmd:
- go
- mod
- edit
- -replace=periph.io/x/devices/v3=../devices
- dir: ../cmd
cmd:
- go - go
- get - get
- periph.io/x/devices/v3@${GIT_SHA} - -t
dir: ../cmd - ./...
- cmd: - dir: ../cmd
cmd:
- go - go
- test - test
- -short
- ./... - ./...
dir: ../cmd
# Test commands. # Test commands.
- cmd: - dir: ../cmd
cmd:
- go - go
- install - install
- -v - -v
@ -264,7 +302,6 @@ workers:
- ./periph-info - ./periph-info
- ./periph-smoketest - ./periph-smoketest
- ./spi-list - ./spi-list
dir: ../cmd
- cmd: - cmd:
- periph-info - periph-info
- cmd: - cmd:
@ -277,6 +314,11 @@ workers:
- i2c-list - i2c-list
- cmd: - cmd:
- spi-list - spi-list
- cmd:
- periph-smoketest
- ftdi
- -type
- ft232r
# Laptop on Windows 10. # Laptop on Windows 10.
- name: win10 - name: win10
@ -289,26 +331,35 @@ workers:
- -benchtime=1000ms - -benchtime=1000ms
- -benchmem - -benchmem
- ./... - ./...
# Test in advance. # Test in advance: cmd
- cmd: - dir: ..
cmd:
- git - git
- clone - clone
- --depth - --depth
- 1 - 1
- https://github.com/periph/cmd - https://github.com/periph/cmd
dir: .. - dir: ../cmd
- cmd: cmd:
- go
- mod
- edit
- -replace=periph.io/x/devices/v3=../devices
- dir: ../cmd
cmd:
- go - go
- get - get
- periph.io/x/devices/v3@${GIT_SHA} - -t
dir: ../cmd - ./...
- cmd: - dir: ../cmd
cmd:
- go - go
- test - test
- -short
- ./... - ./...
dir: ../cmd
# Test commands. # Test commands.
- cmd: - dir: ../cmd
cmd:
- go - go
- install - install
- -v - -v
@ -318,7 +369,6 @@ workers:
- ./periph-info - ./periph-info
- ./periph-smoketest - ./periph-smoketest
- ./spi-list - ./spi-list
dir: ../cmd
- cmd: - cmd:
- periph-info - periph-info
- cmd: - cmd:

Loading…
Cancel
Save