Skip to content

ci:update build action #71

ci:update build action

ci:update build action #71

Workflow file for this run

name: build
on: [push,pull_request]
jobs:
check_fmt:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'go.mod'
- name: Intsall Golangci-lint
run: |
# add executables installed with go get to PATH
# TODO: this will hopefully be fixed by
# https://github.com/actions/setup-go/issues/14
export PATH=${PATH}:`go env GOPATH`/bin
echo $GOPATH
echo $PATH
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2
go install mvdan.cc/sh/cmd/shfmt@latest
go install mvdan.cc/sh/cmd/gosh@latest
- name: Lint
run: |
make largefile-check
make checkgofmt && make fmt
make linter
build:
name: build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: set go env
run: export PATH=${PATH}:`go env GOPATH`/bin
- name: deploy
run: make