Skip to content

Commit

Permalink
chore(ci): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dvcol committed Aug 24, 2023
1 parent cc7eeea commit 03dcfe4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ runs:
run: |
# ================= Build =================
pnpm run ${{ inputs.script }}·
pnpm run ${{ inputs.script }}
22 changes: 18 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:

jobs:
build-extension:
name: Build
name: Build Extension
runs-on: ubuntu-latest

steps:
Expand All @@ -32,7 +32,7 @@ jobs:
pnpm_version: ${{ env.pnpm_version }}

build-web:
name: Build
name: Build Web
runs-on: ubuntu-latest

steps:
Expand All @@ -47,27 +47,41 @@ jobs:
pnpm_version: ${{ env.pnpm_version }}

test:
name: Build
name: Unit Test
runs-on: ubuntu-latest

steps:
- name: Checkout branch ${{ github.ref }}
uses: actions/checkout@v3

- name: Install dependencies
shell: bash
run: |
# ================= Install =================
pnpm install
- name: Test
run: |
# ================= Test =================
pnpm run test:unit
lint:
name: Build
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout branch ${{ github.ref }}
uses: actions/checkout@v3

- name: Install dependencies
shell: bash
run: |
# ================= Install =================
pnpm install
- name: Eslint
run: |
# ================= Eslint =================
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm -s dlx commitlint --edit "$1"
npx -s commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm -s dlx lint-staged
npx -s lint-staged

0 comments on commit 03dcfe4

Please sign in to comment.