mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
32 lines
717 B
YAML
32 lines
717 B
YAML
name: test
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macOS-latest
|
|
- windows-latest
|
|
steps:
|
|
- name: Set git to use LF
|
|
run: |
|
|
git config --global core.autocrlf false
|
|
git config --global core.eol lf
|
|
if: "matrix.os == 'windows-latest'"
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
- name: setup go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: test
|
|
run: sudo go test -coverprofile coverage.out -covermode atomic ./...
|
|
- name: Send coverage
|
|
uses: codecov/codecov-action@v1
|