-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix kv-warmer, format files and run tests in CI
- Loading branch information
1 parent
46d4129
commit c97c555
Showing
11 changed files
with
905 additions
and
37 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,46 @@ | ||
name: Test | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tiles-unit-tests: | ||
name: Tiles | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./tiles | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: './server/.nvmrc' | ||
|
||
- name: Run npm install | ||
run: npm ci | ||
|
||
- name: Run linter | ||
run: npm run lint | ||
if: ${{ !cancelled() }} | ||
|
||
- name: Run formatter | ||
run: npm run format | ||
if: ${{ !cancelled() }} | ||
|
||
- name: Run tsc | ||
run: npm run check | ||
if: ${{ !cancelled() }} | ||
|
||
- name: Run unit tests & coverage | ||
run: npm run test:cov | ||
if: ${{ !cancelled() }} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
*.md | ||
*.json | ||
coverage | ||
dist | ||
worker-configuration.d.ts | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
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,8 +1,8 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"semi": true, | ||
"organizeImportsSkipDestructiveCodeActions": true, | ||
"plugins": ["prettier-plugin-organize-imports"] | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"semi": true, | ||
"organizeImportsSkipDestructiveCodeActions": true, | ||
"plugins": ["prettier-plugin-organize-imports"] | ||
} |
Oops, something went wrong.