update: ci
This commit is contained in:
parent
e94a163ae5
commit
4bdb52d86c
|
|
@ -5,4 +5,31 @@ on:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
uses: windingwind/zotero-plugin-scaffold/.github/workflows/plugin-test.yml@add-test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Install deps
|
||||
run: npm install -f
|
||||
|
||||
- name: Clone Zotero Plugin Scaffold # TEMP: Use the official repository once the PR is merged
|
||||
run: |
|
||||
git clone --branch add-test https://github.com/windingwind/zotero-plugin-scaffold.git zotero-plugin-scaffold
|
||||
cd zotero-plugin-scaffold
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Install Zotero Plugin Scaffold Locally # TEMP: Use the official repository once the PR is merged
|
||||
run: |
|
||||
npm install ./zotero-plugin-scaffold
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ permissions:
|
|||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
test:
|
||||
uses: windingwind/zotero-plugin-scaffold/.github/workflows/plugin-test.yml@add-test
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
|
|
@ -33,6 +30,20 @@ jobs:
|
|||
- name: Install deps
|
||||
run: npm install -f
|
||||
|
||||
- name: Clone Zotero Plugin Scaffold # TEMP: Use the official repository once the PR is merged
|
||||
run: |
|
||||
git clone --branch add-test https://github.com/windingwind/zotero-plugin-scaffold.git zotero-plugin-scaffold
|
||||
cd zotero-plugin-scaffold
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Install Zotero Plugin Scaffold Locally # TEMP: Use the official repository once the PR is merged
|
||||
run: |
|
||||
npm install ./zotero-plugin-scaffold
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
npm run build
|
||||
|
|
|
|||
Loading…
Reference in New Issue