This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
Implement global shortcuts #8
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Install dependencies | |
run: go mod download | |
- name: Run tests | |
run: go test -race -covermode atomic -coverprofile=covprofile ./... | |
- if: github.event_name != 'pull_request' | |
name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
run: | | |
go install github.com/mattn/goveralls@latest | |
goveralls -coverprofile=covprofile -service=github |