chore: upgrade workflow-plugin-agent v0.4.1 (critical SDK fixes) #114
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26' | |
| - name: Build | |
| run: go build ./... | |
| - name: Test | |
| run: go test -race ./... | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| version: latest | |
| ui: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Checkout workflow-ui | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: GoCodeAlone/workflow-ui | |
| path: workflow-ui-dep | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| registry-url: 'https://npm.pkg.github.com' | |
| cache: 'npm' | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Build workflow-ui | |
| run: | | |
| cd workflow-ui-dep | |
| npm ci | |
| npm run build | |
| - name: Link workflow-ui | |
| run: | | |
| # package-lock.json resolves workflow-ui as ../../workflow-ui relative to ui/ | |
| # which is ../workflow-ui from the repo root — create a symlink there | |
| ln -s "$GITHUB_WORKSPACE/workflow-ui-dep" "$GITHUB_WORKSPACE/../workflow-ui" | |
| - name: Install | |
| run: cd ui && npm ci | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build | |
| run: cd ui && npm run build | |
| - name: Test | |
| run: cd ui && npm test -- --run |