Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into cube-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jun 28, 2024
2 parents 3d2fc29 + 5a13941 commit 9e5de23
Show file tree
Hide file tree
Showing 46 changed files with 1,421 additions and 554 deletions.
5 changes: 0 additions & 5 deletions .changeset/dull-gifts-sniff.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-terms-sing.md

This file was deleted.

30 changes: 30 additions & 0 deletions .github/ensureManifests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { findWorkspaces } from 'find-workspaces'
import { existsSync } from 'node:fs'

let result = 0

for (const workspace of findWorkspaces()) {
if(workspace.package.private) {
continue
}

if (!(existsSync(workspace.location + '/manifest.ttl'))) {
console.log(`⚠️ ${workspace.package.name} - no manifest.ttl`)
continue
}

if(!workspace.package.files) {
console.log(`✅ ${workspace.package.name} - all files included in package`)
continue
}

if(workspace.package.files.includes('manifest.ttl')) {
console.log(`✅ ${workspace.package.name} - manifest.ttl file listed`)
continue
}

console.error(`❌ ${workspace.package.name} - manifest.ttl file not listed`)
result += 1
}

process.exit(result)
20 changes: 14 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- validation
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
Expand All @@ -56,7 +56,7 @@ jobs:
- "20"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
Expand All @@ -73,10 +73,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run lint

ensure-manifests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: node .github/ensureManifests.js

smoke-test-cli:
strategy:
fail-fast: false
Expand All @@ -91,7 +99,7 @@ jobs:
runs-on: ${{ matrix.env.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.env.node }}
cache: npm
Expand Down Expand Up @@ -119,7 +127,7 @@ jobs:
runs-on: ${{ matrix.env.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.env.node }}
cache: npm
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/fig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Fig integration

on:
push:
tags: '*'

concurrency: ${{ github.workflow }}-${{ github.sha }}

jobs:
push-autocomplete-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: npm ci
- run: npm run generate-autocomplete-spec
working-directory: packages/cli

- name: Create Autocomplete PR
uses: withfig/push-to-fig-autocomplete-action@v2
with:
token: ${{ secrets.FIG_PAT }}
autocomplete-spec-name: barnard59
spec-path: packages/cli/fig-spec.ts
integration: commander
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20

Expand Down
Loading

0 comments on commit 9e5de23

Please sign in to comment.