Skip to content

Commit

Permalink
updated action to run in parallel. Fixed format error
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbyalice committed Nov 23, 2023
1 parent 3724d21 commit bd20031
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/fullstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- pull_request

jobs:
test:
setup:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -41,15 +41,41 @@ jobs:
- name: Install dependencies
run: pnpm install

check-format:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check fomatting
run: pnpm run format-check

build:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test building
run: pnpm run build && pnpm run clean

unit:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run shared unit tests
run: pnpm --filter shared test
- name: Run api unit tests
run: pnpm --filter api test

e2e:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run api e2e tests
env:
DATABASE_TYPE: sqlite
Expand Down
4 changes: 2 additions & 2 deletions api/src/users/user.entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Column, Entity, PrimaryColumn, } from 'typeorm';
import { Column, Entity, PrimaryColumn } from 'typeorm';
import { Person, Role } from '@hkrecruitment/shared';

@Entity()
Expand All @@ -24,6 +24,6 @@ export class User implements Person {
@Column({ nullable: true })
telegramId?: string;

@Column({ type: "simple-enum", enum: Role })
@Column({ type: 'simple-enum', enum: Role })
role: Role;
}

0 comments on commit bd20031

Please sign in to comment.