Skip to content

Commit

Permalink
feature(tools): add fta (idrinth-api-bench#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth authored Apr 6, 2024
1 parent 54d9beb commit f3cb03c
Show file tree
Hide file tree
Showing 16 changed files with 2,768 additions and 3,117 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/cli.fta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: cli FTA
on:
push:
branches:
- master
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/**.json'
- 'cli/**.svelte'
- '.github/workflows/cli.fta.yml'
pull_request:
branches:
- master
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/**.json'
- 'cli/**.svelte'
- '.github/workflows/cli.fta.yml'
env:
PREVIOUS_NODE_VERSION: ${{ vars.PREVIOUS_NODE_VERSION || 'lts/*' }}
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd cli && npm ci && npm run language
- run: npm run fta -- cli || true
47 changes: 47 additions & 0 deletions .github/workflows/documentation-website.fta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: documentation-website FTA
on:
push:
branches:
- master
paths:
- 'documentation-website/**.ts'
- 'documentation-website/**.tsx'
- 'documentation-website/**.js'
- 'documentation-website/**.cjs'
- 'documentation-website/**.json'
- 'documentation-website/**.svelte'
- '.github/workflows/documentation-website.fta.yml'
pull_request:
branches:
- master
paths:
- 'documentation-website/**.ts'
- 'documentation-website/**.tsx'
- 'documentation-website/**.js'
- 'documentation-website/**.cjs'
- 'documentation-website/**.json'
- 'documentation-website/**.svelte'
- '.github/workflows/documentation-website.fta.yml'
env:
PREVIOUS_NODE_VERSION: ${{ vars.PREVIOUS_NODE_VERSION || 'lts/*' }}
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd documentation-website && npm ci && npm run language
- run: npm run fta -- documentation-website || true
47 changes: 47 additions & 0 deletions .github/workflows/framework.fta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: framework FTA
on:
push:
branches:
- master
paths:
- 'framework/**.ts'
- 'framework/**.tsx'
- 'framework/**.js'
- 'framework/**.cjs'
- 'framework/**.json'
- 'framework/**.svelte'
- '.github/workflows/framework.fta.yml'
pull_request:
branches:
- master
paths:
- 'framework/**.ts'
- 'framework/**.tsx'
- 'framework/**.js'
- 'framework/**.cjs'
- 'framework/**.json'
- 'framework/**.svelte'
- '.github/workflows/framework.fta.yml'
env:
PREVIOUS_NODE_VERSION: ${{ vars.PREVIOUS_NODE_VERSION || 'lts/*' }}
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd framework && npm ci && npm run language
- run: npm run fta -- framework || true
47 changes: 47 additions & 0 deletions .github/workflows/history-microservice.fta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: history-microservice FTA
on:
push:
branches:
- master
paths:
- 'history-microservice/**.ts'
- 'history-microservice/**.tsx'
- 'history-microservice/**.js'
- 'history-microservice/**.cjs'
- 'history-microservice/**.json'
- 'history-microservice/**.svelte'
- '.github/workflows/history-microservice.fta.yml'
pull_request:
branches:
- master
paths:
- 'history-microservice/**.ts'
- 'history-microservice/**.tsx'
- 'history-microservice/**.js'
- 'history-microservice/**.cjs'
- 'history-microservice/**.json'
- 'history-microservice/**.svelte'
- '.github/workflows/history-microservice.fta.yml'
env:
PREVIOUS_NODE_VERSION: ${{ vars.PREVIOUS_NODE_VERSION || 'lts/*' }}
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-microservice/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd history-microservice && npm ci
- run: npm run fta -- history-microservice
47 changes: 47 additions & 0 deletions .github/workflows/history-website.fta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: history-website FTA
on:
push:
branches:
- master
paths:
- 'history-website/**.ts'
- 'history-website/**.tsx'
- 'history-website/**.js'
- 'history-website/**.cjs'
- 'history-website/**.json'
- 'history-website/**.svelte'
- '.github/workflows/history-website.fta.yml'
pull_request:
branches:
- master
paths:
- 'history-website/**.ts'
- 'history-website/**.tsx'
- 'history-website/**.js'
- 'history-website/**.cjs'
- 'history-website/**.json'
- 'history-website/**.svelte'
- '.github/workflows/history-website.fta.yml'
env:
PREVIOUS_NODE_VERSION: ${{ vars.PREVIOUS_NODE_VERSION || 'lts/*' }}
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd history-website && npm ci && npm run language
- run: npm run fta -- history-website || true
3 changes: 2 additions & 1 deletion .knip.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": ["tools/**/*.js"],
"project": ["tools/**/*.js"]
"project": ["tools/**/*.js"],
"ignoreDependencies": ["fta-cli"]
}
Loading

0 comments on commit f3cb03c

Please sign in to comment.