Fix ci
This commit is contained in:
+2
-1
@@ -10,5 +10,6 @@ SCORO_URL=ws://localhost:6543
|
|||||||
GOOGLE_CLIENT_ID=toto
|
GOOGLE_CLIENT_ID=toto
|
||||||
GOOGLE_SECRET=tata
|
GOOGLE_SECRET=tata
|
||||||
GOOGLE_CALLBACK_URL=http://localhost:19006/logged/google
|
GOOGLE_CALLBACK_URL=http://localhost:19006/logged/google
|
||||||
SMTP_TRANSPORT=toto
|
SMTP_TRANSPORT=smtps://toto:tata@relay
|
||||||
MAIL_AUTHOR='"Chromacase" <chromacase@octohub.app>'
|
MAIL_AUTHOR='"Chromacase" <chromacase@octohub.app>'
|
||||||
|
IGNORE_MAILS=true
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker-compose ps -a
|
docker-compose ps -a
|
||||||
docker-compose logs
|
docker-compose logs
|
||||||
wget --retry-connrefused http://localhost:3000 # /healthcheck
|
wget --retry-connrefused http://localhost:3000 || (docker-compose logs && exit 1)
|
||||||
|
|
||||||
- name: Run scorometer tests
|
- name: Run scorometer tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export class AuthService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async sendVerifyMail(user: User) {
|
async sendVerifyMail(user: User) {
|
||||||
|
if (process.env.IGNORE_MAILS === "true") return;
|
||||||
const token = await this.jwtService.signAsync(
|
const token = await this.jwtService.signAsync(
|
||||||
{
|
{
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"react/react-in-jsx-scope": "off",
|
"react/react-in-jsx-scope": "off",
|
||||||
"@typescript-eslint/no-unused-vars": "error",
|
"@typescript-eslint/no-unused-vars": "error",
|
||||||
|
"@typescript-eslint/no-explicit-any": "error",
|
||||||
"@typescript-eslint/no-non-null-assertion": "off",
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||||||
"@typescript-eslint/no-empty-function": "off",
|
"@typescript-eslint/no-empty-function": "off",
|
||||||
"no-restricted-imports": [
|
"no-restricted-imports": [
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ const VerifiedView = () => {
|
|||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
await API.fetch({
|
await API.fetch({
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
route: `/auth/verify?token=${(route.params as any).token}`,
|
route: `/auth/verify?token=${(route.params as any).token}`,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user