-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pr-checks): add pr ci to git (#39)
* 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
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters