generated from fingerprintjs/library-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from fingerprintjs/feature/INTER-205-shared-wo…
…rkflows ci: use shared workflows
- Loading branch information
Showing
10 changed files
with
79 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Analyze Commit Messages | ||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
jobs: | ||
analyze-commits: | ||
name: Generate docs and coverage report | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Check coverage for PR | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
run-tests-check-coverage: | ||
name: Run tests & check coverage | ||
permissions: | ||
checks: write | ||
pull-requests: write | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/coverage-diff.yml@v1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Generate docs and coverage report | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
generate-docs-and-coverage: | ||
name: Generate docs and coverage report | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/docs-and-coverage.yml@v1 | ||
with: | ||
prepare-gh-pages-commands: | | ||
mv docs/* ./gh-pages | ||
mv coverage/lcov-report ./gh-pages/coverage |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,14 @@ | ||
name: Release | ||
|
||
name: release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- test | ||
|
||
jobs: | ||
release: | ||
environment: production | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build library | ||
run: yarn run package | ||
|
||
- name: Release | ||
run: yarn release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
HUSKY: 0 | ||
build-and-release: | ||
name: 'Build project, run CI checks and publish new release' | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1 | ||
secrets: | ||
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
# Reference on this file: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | ||
name: Lint, build and test | ||
on: | ||
pull_request: | ||
push: | ||
branches-ignore: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
name: Lint, build and test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
**/node_modules | ||
!**/dist/node_modules | ||
key: nodemodules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: nodemodules- | ||
- name: Install Node packages | ||
run: yarn install | ||
- name: Build | ||
run: yarn build-all | ||
env: | ||
VITE_API_KEY: ${{ secrets.API_KEY }} | ||
- name: Lint | ||
run: yarn lint && yarn check | ||
- name: Tests | ||
run: yarn test | ||
- name: Typecheck | ||
run: yarn test:dts | ||
build-and-check: | ||
name: Build project and run CI checks | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/build-typescript-project.yml@v1 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
{ | ||
"extends": "./.svelte-kit/tsconfig.json", | ||
"compilerOptions": { | ||
"importsNotUsedAsValues": "error", | ||
"isolatedModules": true, | ||
"preserveValueImports": true, | ||
"allowJs": true, | ||
"checkJs": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strict": true | ||
} | ||
"strict": true, | ||
"moduleResolution": "node", | ||
"module": "esnext", | ||
"target": "esnext" | ||
}, | ||
"include": [ | ||
"src/**/*.js", | ||
"src/**/*.ts", | ||
"src/**/*.svelte" | ||
], | ||
"exclude": [ | ||
"node_modules/**", | ||
] | ||
} |