This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
prepare release 1.7.0 #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
name: run tests | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: ['1.18.x', '1.19.x', '1.20.x'] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
if: success() | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup udev device correctly | |
run: | | |
sudo modprobe -i uinput | |
echo KERNEL==\"uinput\", GROUP=\"$USER\", MODE:=\"0666\" | sudo tee /etc/udev/rules.d/99-$USER.rules | |
sudo udevadm trigger | |
sudo udevadm info /dev/uinput | |
- name: Run tests | |
run: go test -coverprofile=coverage.txt -covermode=atomic | |
- name: Upload coverage | |
run: bash <(curl -s https://codecov.io/bash) | |