improve Moto project positioning #4
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version: 1.25.13 | |
| cache: true | |
| cache-dependency-path: go.sum | |
| - name: Check formatting | |
| run: make fmt-check | |
| - name: Validate workflows | |
| run: make workflow-check | |
| - name: Verify modules | |
| run: make mod-check | |
| - name: Test | |
| run: make test | |
| - name: Vet | |
| run: make vet | |
| - name: Static analysis | |
| run: make staticcheck | |
| - name: Test with race detector | |
| run: make race | |
| - name: Check reachable vulnerabilities | |
| run: make vuln | |
| - name: Validate sample config | |
| run: make config-check | |
| - name: Check benchmark script syntax | |
| run: make bench-check | |
| - name: Run loopback-only benchmark smoke | |
| run: make bench-smoke | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| goos: linux | |
| goarch: amd64 | |
| - os: ubuntu-latest | |
| goos: linux | |
| goarch: arm64 | |
| - os: macos-latest | |
| goos: darwin | |
| goarch: arm64 | |
| - os: windows-latest | |
| goos: windows | |
| goarch: amd64 | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version: 1.25.13 | |
| cache: true | |
| cache-dependency-path: go.sum | |
| - run: go build -trimpath -buildvcs=false ./... | |
| env: | |
| CGO_ENABLED: "0" | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: ${{ matrix.goarch }} |