mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
workflow dispatch
This commit is contained in:
65
.github/workflows/ssr_tests.js.yml
vendored
65
.github/workflows/ssr_tests.js.yml
vendored
@@ -1,41 +1,42 @@
|
||||
# # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
||||
# # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
# name: SSR Tests
|
||||
name: SSR Tests
|
||||
|
||||
# on:
|
||||
# push:
|
||||
# branches: [next]
|
||||
on:
|
||||
# push:
|
||||
# branches: [next]
|
||||
workflow_dispatch:
|
||||
|
||||
# jobs:
|
||||
# ssr_test:
|
||||
# runs-on: ubuntu-latest
|
||||
jobs:
|
||||
ssr_test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# strategy:
|
||||
# matrix:
|
||||
# node-version: [20.x]
|
||||
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - name: Use Node.js ${{ matrix.node-version }}
|
||||
# uses: actions/setup-node@v4
|
||||
# with:
|
||||
# node-version: ${{ matrix.node-version }}
|
||||
# cache: 'npm'
|
||||
# - name: Install dependencies
|
||||
# run: npm ci
|
||||
# # Just lint here too. Save some GH Action minutes and not need to use "depends_on" or anything.
|
||||
# - name: Lint
|
||||
# run: npm run prettier
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
# Just lint here too. Save some GH Action minutes and not need to use "depends_on" or anything.
|
||||
- name: Lint
|
||||
run: npm run prettier
|
||||
|
||||
# - name: Build
|
||||
# run: npm run build:alpha
|
||||
- name: Build
|
||||
run: npm run build:alpha
|
||||
|
||||
# - name: Install Playwright
|
||||
# run: npx playwright install --with-deps
|
||||
- name: Install Playwright
|
||||
run: npx playwright install --with-deps
|
||||
|
||||
# - name: Run SSR tests
|
||||
# # FAIL_FAST to fail on first failing test.
|
||||
# run: FAIL_FAST="true" SSR_ONLY="true" npm run test
|
||||
- name: Run SSR tests
|
||||
# FAIL_FAST to fail on first failing test.
|
||||
run: FAIL_FAST="true" SSR_ONLY="true" npm run test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user