mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 09:29:24 +00:00
test update
This commit is contained in:
parent
e724416f23
commit
05484b5e4c
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -143,21 +143,20 @@ jobs:
|
|||||||
uses: actions/setup-node@v4.1.0
|
uses: actions/setup-node@v4.1.0
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
cache-dependency-path: frontend/package-lock.json
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
- name: Configure npm with token (if available)
|
||||||
|
if: secrets.NPM_TOKEN != ''
|
||||||
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
run: cd frontend && npm ci
|
run: cd frontend && npm ci
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: cd frontend && npm run build
|
run: cd frontend && npm run build
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
- name: Run frontend tests
|
- name: Run frontend tests
|
||||||
run: cd frontend && npm run test -- --run
|
run: cd frontend && npm run test -- --run
|
||||||
env:
|
- name: Clean up npmrc
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
if: always() && secrets.NPM_TOKEN != ''
|
||||||
|
run: rm -f ~/.npmrc
|
||||||
- name: Upload frontend build artifacts
|
- name: Upload frontend build artifacts
|
||||||
uses: actions/upload-artifact@v4.6.2
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
|
13
.github/workflows/frontend-licenses-update.yml
vendored
13
.github/workflows/frontend-licenses-update.yml
vendored
@ -48,21 +48,24 @@ jobs:
|
|||||||
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '18'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
cache-dependency-path: frontend/package-lock.json
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
|
- name: Configure npm with token (if available)
|
||||||
|
if: secrets.NPM_TOKEN != ''
|
||||||
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||||
|
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: npm ci
|
run: npm ci
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|
||||||
- name: Generate frontend license report
|
- name: Generate frontend license report
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: npm run generate-licenses
|
run: npm run generate-licenses
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
- name: Clean up npmrc
|
||||||
|
if: always() && secrets.NPM_TOKEN != ''
|
||||||
|
run: rm -f ~/.npmrc
|
||||||
|
|
||||||
- name: Check for license warnings
|
- name: Check for license warnings
|
||||||
run: |
|
run: |
|
||||||
|
10
.github/workflows/testdriver.yml
vendored
10
.github/workflows/testdriver.yml
vendored
@ -131,8 +131,11 @@ jobs:
|
|||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Configure npm with token (if available)
|
||||||
|
if: secrets.NPM_TOKEN != ''
|
||||||
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||||
|
|
||||||
- name: Run TestDriver.ai
|
- name: Run TestDriver.ai
|
||||||
uses: testdriverai/action@f0d0f45fdd684db628baa843fe9313f3ca3a8aa8 #1.1.3
|
uses: testdriverai/action@f0d0f45fdd684db628baa843fe9313f3ca3a8aa8 #1.1.3
|
||||||
@ -148,8 +151,11 @@ jobs:
|
|||||||
1. /run testing/testdriver/test.yml
|
1. /run testing/testdriver/test.yml
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
FORCE_COLOR: "3"
|
FORCE_COLOR: "3"
|
||||||
|
|
||||||
|
- name: Clean up npmrc
|
||||||
|
if: always() && secrets.NPM_TOKEN != ''
|
||||||
|
run: rm -f ~/.npmrc
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
needs: [deploy, test]
|
needs: [deploy, test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user