Skip to content

Commit

Permalink
[Tech] Add codecheck to pre push and workflow (#1794)
Browse files Browse the repository at this point in the history
* Add codecheck to pre push and workflow

* Add new workflow for codecheck

* renaming
  • Loading branch information
Nocccer committed Sep 12, 2022
1 parent 4a4a416 commit 22cb06e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/codecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Code check

on:
pull_request:
branches: [main, beta]
workflow_dispatch:

jobs:
codecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install modules.
run: yarn
- name: Check Typescript syntax
run: yarn codecheck
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
yarn lint && yarn prettier-fix && yarn i18n
yarn codecheck && yarn lint && yarn prettier-fix && yarn i18n

0 comments on commit 22cb06e

Please sign in to comment.