Skip to content

Commit

Permalink
Frontend Buildcheck Workflow Revamp (#1099)
Browse files Browse the repository at this point in the history
* frontend workflow check

* added new step for installing npm

* added working directory line for frontend

* added specific prettier dev dependency

* prettier dev dependency

* removed prettier dependency

* remove dtest block

* removed test block for now

* changed env for build and stage

* added git dom

* added new test components without sample unit test

* made changes on checkout synatx and removed build

* 🎨 Auto-generated directory tree for repository in Architecture.md

---------

Co-authored-by: Faris Durrani <afarisdurrani@gmail.com>
Co-authored-by: farisdurrani <farisdurrani@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 2, 2024
1 parent 3e14549 commit b67f7d0
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 7 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Frontend Workflow Check
on: [pull_request, push]

concurrency: preview-${{ github.ref }}

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install pnpm
run: npm install -g pnpm
working-directory: ./frontend

- name: Install
run: pnpm install --frozen-lockfile
id: install
working-directory: ./frontend


- name: Run ESLint
run: pnpm run lint
working-directory: ./frontend

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install pnpm
run: npm install -g pnpm
working-directory: ./frontend

- name: Install
run: pnpm install --frozen-lockfile
working-directory: ./frontend

- name: Test
run: echo "pnpm run test should be here"
working-directory: ./frontend


2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.0.1",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"depcheck": "^1.4.7",
"eslint": "^8.52.0",
"eslint-plugin-react": "^7.33.2",
"prettier": "3.2.2",
"typescript": "^5.2.2"
}
}
28 changes: 21 additions & 7 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b67f7d0

Please sign in to comment.