oh-my-posh/.github/workflows/code.yml

35 lines
750 B
YAML
Raw Normal View History

2019-03-13 04:14:30 -07:00
on:
pull_request:
paths-ignore:
- 'README.md'
2020-10-06 10:21:00 -07:00
- 'CONTRIBUTING.md'
- 'COPYING'
2019-03-13 04:14:30 -07:00
- 'docs/**'
2020-10-06 10:43:18 -07:00
- '.github/*.md'
- '.github/FUNDING.yml'
2019-03-13 04:14:30 -07:00
name: Validate Code
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
2020-12-25 11:02:25 -08:00
defaults:
run:
working-directory: ${{ github.workspace }}/src
2019-03-13 04:14:30 -07:00
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
2022-03-20 23:17:33 -07:00
go-version: 1.18
2019-03-13 04:14:30 -07:00
- name: Checkout code
uses: actions/checkout@v2
- name: Golang CI
uses: golangci/golangci-lint-action@v2
with:
2021-03-27 09:10:35 -07:00
version: latest
2020-12-25 11:02:25 -08:00
working-directory: src
2019-03-13 04:14:30 -07:00
- name: Unit Tests
2022-02-01 05:38:25 -08:00
run: go test -v ./...