Skip to content

Commit

Permalink
Merge pull request #27 from acelaya-forks/feature/testing
Browse files Browse the repository at this point in the history
Feature/testing
  • Loading branch information
acelaya authored May 11, 2024
2 parents b654c78 + 61a023a commit 0bec874
Show file tree
Hide file tree
Showing 16 changed files with 1,901 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"overrides": [
{
"files": ["**/app/routes/**"],
"files": ["**/app/routes/**", "vite*.config.ts"],
"rules": {
"no-restricted-exports": "off"
}
Expand Down
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: ['acelaya']
custom: ['https://slnk.to/donate']
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
Before opening an issue, just take into account that this is a completely free of charge and open source project.
I'm always happy to help and provide support, but some understanding will be expected.
I do this in my own free time, so expect some delays when implementing new features and fixing bugs, and don't take it personal if an issue gets eventually closed.
You may also be asked to provide tests or ways to reproduce reported bugs.
Try to be polite, and understand it is impossible for an OSS project to cover all use cases.
-->
54 changes: 54 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
day: saturday
time: '09:00'
timezone: 'Europe/Madrid'
open-pull-requests-limit: 10
groups:
fontawesome:
patterns:
- '@fortawesome/*'
eslint:
patterns:
- '@shlinkio/eslint-config-js-coding-standard'
- '@typescript-eslint/*'
- 'eslint'
shlink:
patterns:
- '@shlinkio/*'
remix:
patterns:
- '@remix-run/*'
react:
patterns:
- 'react'
- 'react-dom'
types:
patterns:
- '@types/*'
testing:
patterns:
- '@testing-library/*'
vite:
patterns:
- 'vite'
- '@vitejs/*'
vitest:
patterns:
- 'vitest'
- '@vitest/*'
ignore:
# Bootstrap can introduce visual breaking changes on styles
# Ignore it, since the plan is to remove it anyway
- dependency-name: 'bootstrap'
- package-ecosystem: docker
directory: '/'
schedule:
interval: weekly
day: saturday
time: '09:00'
timezone: 'Europe/Madrid'
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Continuous integration

on:
pull_request: null
push:
branches:
- main
- develop

jobs:
ci:
uses: shlinkio/github-actions/.github/workflows/web-app-ci.yml@main
with:
node-version: 22.x
publish-coverage: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build
home
node_modules
docker-compose.override.yml
coverage
2 changes: 1 addition & 1 deletion app/routes/server.$serverId.shlink-api.$method.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function action({ params, request }: ActionFunctionArgs) {
return json({}, 400); // TODO Return some useful info in Problem Details format
}

const response = await apiMethod.bind(client)(...args);
const response = await apiMethod.bind(client)(...args as Parameters<typeof apiMethod>);

return json(response);
} catch (e) {
Expand Down
Loading

0 comments on commit 0bec874

Please sign in to comment.