1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-26 05:37:18 +02:00

32 lines
892 B
YAML
Raw Normal View History

2020-03-19 12:17:27 +01:00
name: Continuous Integration
on: push
jobs:
ci:
runs-on: ubuntu-latest
container:
image: golang:1.14
env:
GOFLAGS: -mod=vendor
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run gofmt -s
run: |
if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then
find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;
exit 1;
fi
- name: Run tests
run: |
2020-03-19 12:21:23 +01:00
./test.sh
2020-03-19 12:17:27 +01:00
- name: Push on codecov result
uses: codecov/codecov-action@v1
2020-03-19 12:28:50 +01:00
- name: Run golangci-lint
uses: actions-contrib/golangci-lint@v1
2020-03-19 12:17:27 +01:00
- name: Compile project on every platform
run: |
go get github.com/mitchellh/gox
2020-03-19 12:30:07 +01:00
gox -parallel 4 -os "linux freebsd netbsd windows" -osarch "darwin/i386 darwin/amd64"