mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-05-02 20:11:20 +00:00
Merge pull request #120 from bartvdbraak/dependabot/github_actions/cloudflare/wrangler-action-3.1.1
This commit is contained in:
commit
fb2cbbfe71
1 changed files with 5 additions and 12 deletions
17
.github/workflows/unlighthouse.yaml
vendored
17
.github/workflows/unlighthouse.yaml
vendored
|
@ -29,29 +29,22 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4.1.0
|
uses: actions/checkout@v4.1.0
|
||||||
|
|
||||||
- name: Setup pnpm
|
|
||||||
uses: pnpm/action-setup@v2.4.0
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3.8.1
|
uses: actions/setup-node@v3.8.1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'pnpm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: npm install
|
||||||
|
|
||||||
- name: Build production
|
- name: Build production
|
||||||
run: pnpm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Start Preview and Get Preview URL
|
- name: Start Preview and Get Preview URL
|
||||||
run: |
|
run: npm run preview -- --port=${{ env.PORT }} & echo $! > preview_pid
|
||||||
pnpm run preview --port ${{ env.PORT }} & echo $! > preview_pid
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: pnpm add -g @unlighthouse/cli puppeteer
|
run: npm add -g @unlighthouse/cli puppeteer
|
||||||
|
|
||||||
- name: Run Unlighthouse
|
- name: Run Unlighthouse
|
||||||
run: |
|
run: |
|
||||||
|
@ -61,7 +54,7 @@ jobs:
|
||||||
--build-static
|
--build-static
|
||||||
|
|
||||||
- name: Upload report to Cloudflare pages
|
- name: Upload report to Cloudflare pages
|
||||||
uses: cloudflare/wrangler-action@2.0.0
|
uses: cloudflare/wrangler-action@v3.1.1
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
command: pages deploy .unlighthouse --project-name="${{ env.CLOUDFLARE_PROJECT }}" --branch=${{ env.CLOUDFLARE_BRANCH }}
|
command: pages deploy .unlighthouse --project-name="${{ env.CLOUDFLARE_PROJECT }}" --branch=${{ env.CLOUDFLARE_BRANCH }}
|
||||||
|
|
Loading…
Reference in a new issue