Skip to content

upstream kn cli v1.13.0 #904

upstream kn cli v1.13.0

upstream kn cli v1.13.0 #904

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node: [20]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build
- name: Run headless test
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d #v1.6
with:
run: npm test
- name: Run UI tests
if: runner.os == 'Linux'
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d #v1.6
with:
run: npm run base-ui-test
- name: Upload screenshots
uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots-${{ matrix.os }}
path: 'test-resources/**/screenshots/*.png'
retention-days: 2
if-no-files-found: warn
- uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab #v4.1.0
name: codecov-upload
with:
file: ./coverage/coverage-final.json