GeezerVison is showing github.com — ci: regen sdk instead of failing tests · nocksock/opencode@df67ae9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +38Lines changed: 38 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: sdk |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches-ignore: |
| 6 | + - production |
| 7 | + pull_request: |
| 8 | + branches-ignore: |
| 9 | + - production |
| 10 | + workflow_dispatch: |
| 11 | +jobs: |
| 12 | + format: |
| 13 | + runs-on: blacksmith-4vcpu-ubuntu-2404 |
| 14 | + permissions: |
| 15 | + contents: write |
| 16 | + steps: |
| 17 | + - name: Checkout repository |
| 18 | + uses: actions/checkout@v4 |
| 19 | + with: |
| 20 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 21 | + |
| 22 | + - name: Setup Bun |
| 23 | + uses: ./.github/actions/setup-bun |
| 24 | + |
| 25 | + - name: run |
| 26 | + run: | |
| 27 | + bun ./packages/sdk/js/script/build.ts |
| 28 | + if [ -z "$(git status --porcelain)" ]; then |
| 29 | + echo "No changes to commit" |
| 30 | + exit 0 |
| 31 | + fi |
| 32 | + |
| 33 | + git config --local user.name "GitHub Action" |
| 34 | + git add -A |
| 35 | + git commit -m "chore: regen sdk" |
| 36 | + git push --no-verify |
| 37 | + env: |
| 38 | + CI: true |
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/test.yml -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
28 | 28 | bun turbo test |
29 | 29 | env: |
30 | 30 | CI: true |
31 | | - |
32 | | - - name: Check SDK is up to date |
33 | | - run: | |
34 | | - bun ./packages/sdk/js/script/build.ts |
35 | | - git diff --exit-code packages/sdk/js/src/gen packages/sdk/js/dist |
36 | | - continue-on-error: false |