Skip to content

Commit

Permalink
feat(pr-checks): add pr ci to git (#39)
Browse files Browse the repository at this point in the history
* feat(pr-checks): add pr ci to git

* fix(pr-checks): add checkout to pr-checks yml

* fix(pr-checks): add dummy jsons for mock-apis

* fix(pr-checks): unnecessary added breaklines inside yml

* refactor(): empty commit for checking behaviour of ci
  • Loading branch information
sijav authored Nov 23, 2023
1 parent 7bce4f1 commit e75505c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'PR Checks'
on: [pull_request]

jobs:
pr-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'

- name: Install
run: yarn install

- name: Add models
run: |
echo "[]" > mock-apis/data/model.json
echo "{ \"accounts\": [], \"regions\": [], \"kinds\": [], \"severity\": [] }" > mock-apis/data/search-start.json
echo "[]" > mock-apis/data/table.json
echo "[]" > mock-apis/data/tags.json
- name: Run tests
run: yarn test

- name: Run Lint
run: yarn lint

- name: Run Lint TSC
run: yarn lint:tsc

- name: Run check prettier
run: yarn format:check

- name: Run Build
run: yarn build
3 changes: 2 additions & 1 deletion src/pages/panel/inventory/ResourceDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ export const ResourceDetail = ({ detail, onClose }: ResourceDetailProps) => {
top={-8}
zIndex="modal"
bgcolor="background.paper"
pt={1}
p={1}
boxShadow={1}
>
<Box flex={1}>{selectedRow.row['name']}</Box>
<IconButton onClick={onClose}>
Expand Down

0 comments on commit e75505c

Please sign in to comment.