|
@ -7,9 +7,36 @@ on: |
|
|
pull_request: |
|
|
pull_request: |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
|
|
|
docs: |
|
|
|
|
|
name: Check Docs |
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
if: github.repository_owner == 'wg-easy' |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
- name: Checkout repository |
|
|
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v4 |
|
|
|
|
|
name: Install pnpm |
|
|
|
|
|
with: |
|
|
|
|
|
run_install: false |
|
|
|
|
|
|
|
|
|
|
|
- name: Setup Node |
|
|
|
|
|
uses: actions/setup-node@v4 |
|
|
|
|
|
with: |
|
|
|
|
|
node-version: "lts/*" |
|
|
|
|
|
check-latest: true |
|
|
|
|
|
cache: "pnpm" |
|
|
|
|
|
|
|
|
|
|
|
- name: Check docs formatting |
|
|
|
|
|
run: | |
|
|
|
|
|
pnpm install |
|
|
|
|
|
pnpm format:check:docs |
|
|
|
|
|
|
|
|
lint: |
|
|
lint: |
|
|
name: Lint |
|
|
name: Lint |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
needs: docs |
|
|
if: github.repository_owner == 'wg-easy' |
|
|
if: github.repository_owner == 'wg-easy' |
|
|
|
|
|
|
|
|
strategy: |
|
|
strategy: |
|
@ -34,10 +61,6 @@ jobs: |
|
|
check-latest: true |
|
|
check-latest: true |
|
|
cache: "pnpm" |
|
|
cache: "pnpm" |
|
|
|
|
|
|
|
|
- name: Chec docs formatting |
|
|
|
|
|
run: | |
|
|
|
|
|
pnpm format:check:docs |
|
|
|
|
|
|
|
|
|
|
|
- name: pnpm ${{ matrix.command }} |
|
|
- name: pnpm ${{ matrix.command }} |
|
|
run: | |
|
|
run: | |
|
|
cd src |
|
|
cd src |
|
|