fix(worker): remove worker-node folder #99
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: Worker CI | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| paths: | |
| - 'worker/**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| paths: | |
| - 'worker/**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| fmt: | |
| name: Check formatting | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: worker | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.26' | |
| cache: true | |
| - name: Check go fmt | |
| run: | | |
| unformatted=$(go fmt ./...) | |
| if [ -n "$unformatted" ]; then | |
| echo "Unformatted files:" | |
| echo "$unformatted" | |
| exit 1 | |
| fi | |
| vet: | |
| name: Run go vet | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: worker | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.26' | |
| cache: true | |
| - run: go vet ./... | |
| build: | |
| name: Build binaries | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| target: [cli, app] | |
| defaults: | |
| run: | |
| working-directory: worker | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.26' | |
| cache: true | |
| - name: Build ${{ matrix.target }} | |
| run: go build -o /dev/null ./cmd/${{ matrix.target }} |