2024-03-20 10:05:16 +01:00
|
|
|
# Workflow to upload next.js integration test results to KV for https://areweturboyet.com/
|
2023-12-04 16:18:42 +01:00
|
|
|
# This workflow assumes the `next-integration-test` workflow has been executed
|
|
|
|
# and test reports have been uploaded to the `test-results` artifact.
|
2024-03-18 17:34:19 +01:00
|
|
|
name: Upload Turbopack tests manifest to areweturboyet.com
|
2023-10-23 20:48:38 +02:00
|
|
|
|
|
|
|
on:
|
2024-03-20 10:05:16 +01:00
|
|
|
schedule:
|
|
|
|
- cron: '0 8 * * *'
|
2023-10-23 20:48:38 +02:00
|
|
|
workflow_dispatch:
|
2024-03-20 10:05:16 +01:00
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
description: Next.js version, sha, branch to test
|
|
|
|
type: string
|
|
|
|
default: 'canary'
|
2023-10-23 20:48:38 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
upload_test_results:
|
|
|
|
name: Upload test results
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-08 22:17:43 +01:00
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_LTS_VERSION }}
|
|
|
|
check-latest: true
|
|
|
|
|
2023-12-04 18:54:00 +01:00
|
|
|
- name: Checkout
|
2024-02-01 22:13:29 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-12-04 18:54:00 +01:00
|
|
|
|
2024-03-08 22:17:43 +01:00
|
|
|
- run: corepack enable
|
2023-10-23 20:48:38 +02:00
|
|
|
|
2024-03-08 22:17:43 +01:00
|
|
|
- name: Install dependencies
|
|
|
|
shell: bash
|
|
|
|
run: pnpm i
|
2023-10-23 20:48:38 +02:00
|
|
|
|
2023-12-04 16:18:42 +01:00
|
|
|
- name: 'Upload results to "Are We Turbo Yet" KV'
|
2023-10-23 20:48:38 +02:00
|
|
|
env:
|
|
|
|
TURBOYET_KV_REST_API_URL: ${{ secrets.TURBOYET_KV_REST_API_URL }}
|
|
|
|
TURBOYET_KV_REST_API_TOKEN: ${{ secrets.TURBOYET_KV_REST_API_TOKEN }}
|
|
|
|
uses: ./.github/actions/upload-turboyet-data
|