Skip to content

Refactored Project Pages to Follow Rules of React #30

Refactored Project Pages to Follow Rules of React

Refactored Project Pages to Follow Rules of React #30

Workflow file for this run

name: 'check-ts'
# run this check on PRs
on:
pull_request:
branches: [main]
jobs:
ts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
- name: Install client depencies
working-directory: client
run: npm ci
- name: Install server depencies
working-directory: server
run: |
npx prisma generate
npm ci
- name: Run build
working-directory: client
run: |
npm run lint
npm run build
# get the lines modified in this PR
# - name: Get diff lines
# id: diff
# uses: Equip-Collaboration/diff-line-numbers@v1.0.0
# with:
# include: '["\\.tsx?$"]'
# # get the files modified in this PR
# - name: Detecting files changed
# id: files
# uses: umani/changed-files@v4.0.0
# with:
# repo-token: ${{ github.token }}
# pattern: '^.*\.tsx?$'
# # echo the changed files
# - name: List files changed
# run: |
# echo 'Files modified: ${{steps.files.outputs.files_updated}}'
# echo 'Files added: ${{steps.files.outputs.files_created}}'
# echo 'Files removed: ${{steps.files.outputs.files_deleted}}'
# # run the action
# - uses: Arhia/action-check-typescript@v1.0.0
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# use-check: true # if the action fails, the PR wil fail
# check-fail-mode: added # only check for added errors
# files-changed: ${{steps.files.outputs.files_updated}}
# files-added: ${{steps.files.outputs.files_created}}
# files-deleted: ${{steps.files.outputs.files_deleted}}
# line-numbers: ${{steps.diff.outputs.lineNumbers}}
# output-behaviour: both # use github annotations and comments on the PR
# comment-behaviour: new # every run of this action will create a new comment
# ts-config-path: './client/tsconfig.json' # use the tsconfig.json in the client directory