name: build on: [push, pull_request] jobs: build: name: Build runs-on: ubuntu-latest steps: - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.17 - name: Check out code into the Go module directory uses: actions/checkout@v2 - name: Download GQL schema run: "npx graphqurl http://localhost:5020/v2/query --introspect -H 'content-type: application/json' > schema.graphql" - name: Go Generate run: go generate -tags tools -x ./... - name: golangci-lint uses: golangci/golangci-lint-action@v2 - name: Build run: go build -v -o ficsit-cli . env: CGO_ENABLED: 1