diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index b304fd6..d92a6fc 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 444fe89..071a92a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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