feat: change docker compose using docker api sdk #259
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: Lint | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
lint-go: | |
name: Go | |
runs-on: namespace-profile-linux-4vcpu-8gb-cached | |
env: | |
GO_VERSION: 1.21.1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
## skip cache, use Namespace volume cache | |
cache: false | |
- name: Setup Namespace cache | |
uses: namespacelabs/nscloud-cache-action@v1 | |
with: | |
cache: go | |
path: | | |
/home/runner/go/pkg | |
/home/runner/.cache/go-build | |
/home/runner/.cache/golangci-lint | |
- name: Find go path | |
id: go-dir | |
run: echo "path=$(go list -f '{{.Dir}}/...' -m | xargs)" >> $GITHUB_OUTPUT | |
## Equivalent to 'make lint' arguments | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.56.2 | |
args: --timeout=10m --concurrency 8 -v ${{ steps.go-dir.outputs.path }} | |
## skip cache, use Namespace volume cache | |
skip-cache: true |