Create new generate adapter exec #184
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: Go lint provider & node | |
on: | |
push: | |
branches: ["wip-*", "feature-*", "hot-fix-*"] | |
pull_request: | |
branches: ["main", "stage", "development"] | |
jobs: | |
golang-ci: | |
strategy: | |
matrix: | |
go: [1.18, 1.19] | |
directory: ["node", "data-provider"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup branch | |
uses: actions/checkout@v3 | |
- name: Setup go environment | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go }} | |
- name: cd Directory, copy .golangci.yml, run linter | |
run: | | |
cd ${{ matrix.directory }} | |
cp ../.golangci.yml . | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 | |
$(go env GOPATH)/bin/golangci-lint run . -v -E goimports --fix |