conf: Add tilde (~) expansion support for config_path #13
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: conf | |
| on: | |
| push: | |
| paths: | |
| - "conf/**" | |
| - ".github/workflows/conf.yml" | |
| pull_request: | |
| paths: | |
| - "conf/**" | |
| - ".github/workflows/conf.yml" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: "1.24.7" | |
| cache-dependency-path: conf/go.sum | |
| - name: Download dependencies | |
| working-directory: conf | |
| run: go mod download | |
| - name: Format check | |
| working-directory: conf | |
| run: | | |
| go fmt ./... | |
| git diff --exit-code | |
| - name: Run tests | |
| working-directory: conf | |
| run: go test -v -race ./... | |
| - name: Build | |
| working-directory: conf | |
| run: go build -v ./cmd/main.go |