Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(tools): add fta #699

Merged
merged 3 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the duplicate entry for history-microservice/package-lock.json in the cache-dependency-path.

            history-microservice/package-lock.json
-           history-microservice/package-lock.json

Having duplicate entries does not provide any benefit and could potentially lead to confusion or errors in cache handling.


Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
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
Loading