fix(kit): Time
has invalid segment separator for MM:SS.MSS
mode
#2392
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E | |
on: [pull_request] | |
env: | |
CACHE_DIST_KEY: dist-${{ github.head_ref }}-${{ github.ref }}-${{ github.sha }} | |
CYPRESS_CACHE_FOLDER: ./node_modules/cache-cypress | |
UNIVERSAL_SERVER: http://localhost:4000 | |
STATIC_SERVER: http://localhost:8080 | |
jobs: | |
build-demo: | |
if: ${{ !contains(github.head_ref, 'release/') }} | |
name: Build demo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
with: | |
fetch-depth: 10 | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- run: npx tsc --project projects/demo-integrations/tsconfig.json | |
- name: Mark demo-app directory for persist in cache | |
uses: actions/cache@v4 | |
with: | |
path: dist/demo | |
key: ${{ env.CACHE_DIST_KEY }} | |
- name: Build demo | |
# --optimization false to keep `window.ng` inside Cypress tests | |
run: npm run build -- --optimization false | |
- name: Build SSR server | |
run: npm run build:ssr | |
e2e-kit: | |
if: ${{ !contains(github.head_ref, 'release/') }} | |
needs: [build-demo] | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
project: [date, date-range, date-time, number, time] | |
name: Kit / ${{ matrix.project }} | |
steps: | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- name: Download demo build from cache | |
uses: actions/cache@v4 | |
with: | |
path: dist/demo | |
key: ${{ env.CACHE_DIST_KEY }} | |
- name: Serving SSR server | |
run: | | |
npm run serve:ssr -- --ci & sleep 5 | |
curl -X GET -I -f "${{ env.UNIVERSAL_SERVER }}" | |
- name: Run Cypress tests | |
run: | |
npx nx e2e demo-integrations --spec="**/kit/${{ matrix.project }}/**/*.cy.ts" --baseUrl=${{ | |
env.UNIVERSAL_SERVER}} | |
e2e-recipes: | |
if: ${{ !contains(github.head_ref, 'release/') }} | |
needs: [build-demo] | |
runs-on: ubuntu-latest | |
name: Recipes | |
steps: | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- name: Download demo build from cache | |
uses: actions/cache@v4 | |
with: | |
path: dist/demo | |
key: ${{ env.CACHE_DIST_KEY }} | |
- name: Serving SSR server | |
run: | | |
npm run serve:ssr -- --ci & sleep 5 | |
curl -X GET -I -f "${{ env.UNIVERSAL_SERVER }}" | |
- name: Run Cypress tests | |
run: npx nx e2e demo-integrations --spec="**/recipes/**/*.cy.ts" --baseUrl=${{ env.UNIVERSAL_SERVER}} | |
e2e-others: | |
if: ${{ !contains(github.head_ref, 'release/') }} | |
needs: [build-demo] | |
runs-on: ubuntu-latest | |
name: Others | |
steps: | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- name: Download demo build from cache | |
uses: actions/cache@v4 | |
with: | |
path: dist/demo | |
key: ${{ env.CACHE_DIST_KEY }} | |
- name: Serving SSR server | |
run: | | |
npm run serve:ssr -- --ci & sleep 5 | |
curl -X GET -I -f "${{ env.UNIVERSAL_SERVER }}" | |
- name: Run Cypress tests | |
# Replace with npm run cy:run -- --spec "**/!(kit|recipes)/*.cy.ts" --config baseUrl="${{ env.UNIVERSAL_SERVER }}" | |
# After this issue fix: https://github.com/cypress-io/cypress/issues/22407 | |
run: | |
npx nx e2e demo-integrations --spec="**/(angular|react|ssr|addons|others)/**/*.cy.ts" --baseUrl=${{ | |
env.UNIVERSAL_SERVER}} | |
component-testing: | |
if: ${{ !contains(github.head_ref, 'release/') }} | |
runs-on: ubuntu-latest | |
name: Component Testing | |
steps: | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- name: Run Cypress tests | |
run: npx nx component-test demo-integrations --browser=chrome | |
result: | |
if: ${{ !contains(github.head_ref, 'release/') }} | |
needs: [build-demo, e2e-kit, e2e-recipes, e2e-others, component-testing] | |
runs-on: ubuntu-latest | |
name: E2E result | |
steps: | |
- run: echo "Success" | |
concurrency: | |
group: e2e-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |