Skip to content

Commit

Permalink
add action for dotnet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sambiramairelogic committed Aug 8, 2024
1 parent 7b8271c commit 06cb504
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 30 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/code-quality-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Code Quality Checks
run-name: ${{ github.run_id }} - Code Quality Checks
on:
pull_request:
types: [opened, reopened]
push:
branches:
- main
- APPT-108/pre-commit-and-actions
jobs:
run-jest-tests:
name: Frontend build, linting and tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/new-client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npm run tsc
- run: npm run lint
- run: npm run test
run-backend-tests:
name: Backend restore, build and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- run: dotnet build nbs-appointments-management-service.sln
- run: dotnet test nbs-appointments-management-service.sln

24 changes: 0 additions & 24 deletions .github/workflows/frontend-checks.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/new-client/src/app/components/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export const Table = ({ caption, headers, rows }: TableProps) => {
const cardinality =
headers.length > 2 ? 'three-or-more-column' : 'two-column';

const tempVarForTestCommit = 'test';

return (
<table
role="table"
Expand Down
4 changes: 0 additions & 4 deletions src/new-client/src/app/components/when.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ describe('<When>', () => {
);
expect(screen.queryByText('content')).toBeNull();
});

it('fails deliberately to check if the github action reports failure correctly', () => {
expect(true).toBe(false);
});
});

0 comments on commit 06cb504

Please sign in to comment.