feat(install): scan dataDir/skills/ to install all skills into agent directories #490
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: Build Test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| contents: read | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| build: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| env: | |
| GOOS: linux | |
| GOARCH: amd64 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| check-latest: true | |
| cache-dependency-path: go.sum | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.15.2 | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y pkg-config build-essential libc6-dev zlib1g-dev libseccomp-dev | |
| - name: Generate resources | |
| run: | | |
| mkdir -p build/data build/static | |
| make deps | |
| zig build download | |
| make generate | |
| - name: Go test | |
| id: gotest | |
| run: | | |
| export GOPATH="$HOME/go/" | |
| export PATH=$PATH:$GOPATH/bin | |
| go install github.com/jstemmer/go-junit-report/v2@latest | |
| CGO_ENABLED=1 GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn go test -v ./... 2>&1 | go-junit-report -set-exit-code > report.xml | |
| - name: Zig test (sandboxd) | |
| run: cd sandboxd && zig build test --summary all | |
| - name: Publish Unit Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2.23.0 | |
| if: always() | |
| with: | |
| files: "./report.xml" |