Skip to content

Commit

Permalink
fix: add workflows for PR code check and PR naming linter (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgmel authored Mar 15, 2024
1 parent 8b1dd7d commit 603ffe9
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/pr-code-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Code Checker

on:
pull_request:
branches: [ master ]

jobs:
lint_and_check_build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4

- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Install yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn

- name: Run linter
run: yarn lint

- name: Run builder
run: yarn build
17 changes: 17 additions & 0 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize
branches: [ master ]

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.VL_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
Expand Down

0 comments on commit 603ffe9

Please sign in to comment.