mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 21:19:44 +00:00
chore: add extension test action
This commit is contained in:
parent
feadf879dd
commit
129a9cf48c
2
.github/workflows/backend-tests.yml
vendored
2
.github/workflows/backend-tests.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Test
|
name: Backend Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
67
.github/workflows/extension-test.yml
vendored
Normal file
67
.github/workflows/extension-test.yml
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
name: Extension Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- "release/v*.*.*"
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- "extension/**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
eslint-checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "18"
|
||||||
|
cache: pnpm
|
||||||
|
cache-dependency-path: "extension/pnpm-lock.yaml"
|
||||||
|
- run: pnpm install
|
||||||
|
working-directory: extension
|
||||||
|
- name: Run eslint check
|
||||||
|
run: pnpm lint
|
||||||
|
working-directory: extension
|
||||||
|
|
||||||
|
frontend-build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "18"
|
||||||
|
cache: pnpm
|
||||||
|
cache-dependency-path: "extension/pnpm-lock.yaml"
|
||||||
|
- run: pnpm install
|
||||||
|
working-directory: extension
|
||||||
|
- name: Run extension build
|
||||||
|
run: pnpm build
|
||||||
|
working-directory: extension
|
||||||
|
|
||||||
|
frontend-build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "18"
|
||||||
|
cache: pnpm
|
||||||
|
cache-dependency-path: "extension/pnpm-lock.yaml"
|
||||||
|
- run: pnpm install
|
||||||
|
working-directory: extension
|
||||||
|
- name: Run extension package
|
||||||
|
run: pnpm package
|
||||||
|
working-directory: extension
|
2
.github/workflows/frontend-test.yml
vendored
2
.github/workflows/frontend-test.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Test
|
name: Frontend Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user