Update ci.yaml
CI Pipeline / e2e (chromium) (pull_request) Failing after 2m18s
CI Pipeline / e2e (firefox) (pull_request) Failing after 3m31s
CI Pipeline / test (pull_request) Successful in 6m33s
CI Pipeline / e2e (webkit) (pull_request) Failing after 2m19s
CI Pipeline / visual-regression (pull_request) Failing after 4m25s
CI Pipeline / performance (pull_request) Failing after 3m45s
CI Pipeline / lint (pull_request) Failing after 3m24s
CI Pipeline / build (pull_request) Failing after 1m0s
CI Pipeline / storybook (pull_request) Successful in 7m11s
CI Pipeline / e2e (chromium) (pull_request) Failing after 2m18s
CI Pipeline / e2e (firefox) (pull_request) Failing after 3m31s
CI Pipeline / test (pull_request) Successful in 6m33s
CI Pipeline / e2e (webkit) (pull_request) Failing after 2m19s
CI Pipeline / visual-regression (pull_request) Failing after 4m25s
CI Pipeline / performance (pull_request) Failing after 3m45s
CI Pipeline / lint (pull_request) Failing after 3m24s
CI Pipeline / build (pull_request) Failing after 1m0s
CI Pipeline / storybook (pull_request) Successful in 7m11s
This commit is contained in:
+26
-39
@@ -1,5 +1,5 @@
|
||||
name: CI Pipeline
|
||||
run-name: ${{ gitea.actor }} triggered CI pipeline
|
||||
run-name: "${{ gitea.actor }} triggered CI pipeline"
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
@@ -20,18 +20,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm }
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }} }
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: npm
|
||||
- run: npm ci --no-audit --fund=false
|
||||
- run: npm test -- --reporter=dot --maxConcurrency=1
|
||||
# If the Codecov Action fails on Gitea, replace this with the bash uploader below
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
token: "${{ secrets.CODECOV_TOKEN }}"
|
||||
files: ./coverage/lcov.info
|
||||
flags: unittests
|
||||
|
||||
@@ -44,18 +42,17 @@ jobs:
|
||||
e2e:
|
||||
runs-on: [self-hosted, macos-latest]
|
||||
strategy:
|
||||
matrix: { browser: [chromium, firefox, webkit] }
|
||||
matrix:
|
||||
browser: [chromium, firefox, webkit]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm }
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }} }
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: npm
|
||||
- run: npm ci --no-audit --fund=false
|
||||
- name: Install Playwright
|
||||
run: npx playwright install --with-deps ${{ matrix.browser }}
|
||||
run: "npx playwright install --with-deps ${{ matrix.browser }}"
|
||||
- run: npm run build
|
||||
|
||||
- name: E2E (start + test + teardown)
|
||||
@@ -115,11 +112,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm }
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }} }
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: npm
|
||||
- run: npm ci --no-audit --fund=false
|
||||
- name: Install Playwright
|
||||
run: npx playwright install --with-deps
|
||||
@@ -304,11 +299,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm }
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }} }
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: npm
|
||||
- run: npm ci --no-audit --fund=false
|
||||
|
||||
- name: Build application
|
||||
@@ -456,11 +449,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm }
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }} }
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: npm
|
||||
- run: npm ci --no-audit --fund=false
|
||||
- run: npm run storybook:build:github
|
||||
# Storybook is used for component documentation only.
|
||||
@@ -471,11 +462,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm }
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }} }
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: npm
|
||||
- run: npm ci --no-audit --fund=false
|
||||
- run: npm run lint
|
||||
- run: npm exec prettier -- --check "**/*.{js,jsx,ts,tsx,json,css,md}"
|
||||
@@ -485,11 +474,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm }
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
|
||||
with: { node-version: ${{ env.NODE_VERSION }} }
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: npm
|
||||
- run: npm ci --no-audit --fund=false
|
||||
- run: npm run build
|
||||
- run: npm run storybook:build:github
|
||||
|
||||
Reference in New Issue
Block a user