Skip to content

Commit

Permalink
2.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
karamem0 committed Nov 20, 2024
1 parent 1b4da64 commit c672062
Show file tree
Hide file tree
Showing 105 changed files with 3,403 additions and 1,731 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,16 @@ jobs:
- name: Restore client
run: npm ci
working-directory: source/client
- name: Audit client
run: npm audit --omit=dev
working-directory: source/client
- name: Build client
run: npm run build
working-directory: source/client
- name: Test client
run: npm run test:ci
working-directory: source/client
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Restore server
run: dotnet restore
working-directory: source/server
- name: Test server
shell: pwsh
run: |
dotnet test `
Karamem0.Teamtile.Tests/Karamem0.Teamtile.Tests.csproj `
-p:AltCover=true `
-- NUnit.TestOutputXml=${{github.workspace}}/source/server/test
working-directory: source/server
- name: Build server
shell: pwsh
run: |
Expand All @@ -73,18 +59,3 @@ jobs:
with:
name: build
path: source/server/build
- name: Upload test results
uses: enricomi/publish-unit-test-result-action/linux@v2
if: always()
with:
files: |
source/client/test/**/*.xml
source/server/test/**/*.xml
check_name: Test results
- name: Upload coverage reports
uses: codecov/codecov-action@v4
if: always()
with:
fail_ci_if_error: true
token: ${{secrets.CODECOV_TOKEN}}
slug: karamem0/teamtile
7 changes: 7 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ on:
- develop

jobs:
test:
name: Test source
uses: ./.github/workflows/test.yml
secrets: inherit
with:
environment: dev
build-source:
name: Build source
needs: test
uses: ./.github/workflows/build-source.yml
secrets: inherit
with:
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
workflow_call:
inputs:
environment:
required: true
type: string

jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Checkout repos
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Restore client
run: npm ci
working-directory: source/client
- name: Audit client
run: npm audit --omit=dev
working-directory: source/client
- name: Test client
run: npm run test:ci
working-directory: source/client
- name: Restore server
run: dotnet restore
working-directory: source/server
- name: Test server
shell: pwsh
run: |
dotnet test `
Karamem0.Teamtile.Tests/Karamem0.Teamtile.Tests.csproj `
-p:AltCover=true `
-- NUnit.TestOutputXml=${{github.workspace}}/source/server/test
working-directory: source/server
- name: Upload test results
uses: enricomi/publish-unit-test-result-action/linux@v2
if: always()
with:
files: |
source/client/test/**/*.xml
source/server/test/**/*.xml
check_name: Test results
- name: Upload coverage reports
uses: codecov/codecov-action@v4
if: always()
with:
fail_ci_if_error: true
token: ${{secrets.CODECOV_TOKEN}}
slug: karamem0/teamtile
9 changes: 5 additions & 4 deletions source/client/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import globals from 'globals';
import js from '@eslint/js';
import path from 'path';
import pluginHooks from 'eslint-plugin-hooks';
import pluginSonarjs from 'eslint-plugin-sonarjs';
import pluginTestingLibrary from 'eslint-plugin-testing-library';

const compat = new FlatCompat({
Expand All @@ -30,7 +31,8 @@ export default [
}
},
'plugins': {
'hooks': pluginHooks
'hooks': pluginHooks,
'sonarjs': pluginSonarjs
},
'settings': {
'react': {
Expand All @@ -43,8 +45,7 @@ export default [
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:sonarjs/recommended-legacy'
'plugin:react-hooks/recommended'
)),
{
'files': [
Expand Down Expand Up @@ -124,7 +125,7 @@ export default [
],
'@stylistic/indent-binary-ops': [
'error',
4
2
],
'@stylistic/jsx-closing-bracket-location': [
'error',
Expand Down
3 changes: 3 additions & 0 deletions source/client/jest.setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
//

import 'jest-localstorage-mock';
import { TextDecoder } from 'util';
import fetchMock from 'jest-fetch-mock';

// Mock fetch
fetchMock.enableMocks();
// Mock env
jest.mock('./src/env', () => ({}));
// Text decoder
globalThis.TextDecoder = TextDecoder;
Loading

0 comments on commit c672062

Please sign in to comment.