mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-05-02 12:01:22 +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
|
||||
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 }}
|
||||
uses: actions/setup-node@v3.8.1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
run: npm install
|
||||
|
||||
- name: Build production
|
||||
run: pnpm run build
|
||||
run: npm run build
|
||||
|
||||
- name: Start Preview and Get Preview URL
|
||||
run: |
|
||||
pnpm run preview --port ${{ env.PORT }} & echo $! > preview_pid
|
||||
run: npm run preview -- --port=${{ env.PORT }} & echo $! > preview_pid
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm add -g @unlighthouse/cli puppeteer
|
||||
run: npm add -g @unlighthouse/cli puppeteer
|
||||
|
||||
- name: Run Unlighthouse
|
||||
run: |
|
||||
|
@ -61,7 +54,7 @@ jobs:
|
|||
--build-static
|
||||
|
||||
- name: Upload report to Cloudflare pages
|
||||
uses: cloudflare/wrangler-action@2.0.0
|
||||
uses: cloudflare/wrangler-action@v3.1.1
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
command: pages deploy .unlighthouse --project-name="${{ env.CLOUDFLARE_PROJECT }}" --branch=${{ env.CLOUDFLARE_BRANCH }}
|
||||
|
|
Loading…
Reference in a new issue