2023-02-26 01:12:11 +00:00
|
|
|
name: Web CI
|
2023-03-04 17:01:39 +00:00
|
|
|
|
2023-02-26 01:12:11 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
2023-03-04 17:01:39 +00:00
|
|
|
paths:
|
|
|
|
- web/**
|
|
|
|
- doc/**
|
2023-02-26 01:12:11 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
2023-03-04 17:01:39 +00:00
|
|
|
paths:
|
|
|
|
- web/**
|
|
|
|
- doc/**
|
|
|
|
|
2023-02-26 14:37:41 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2023-03-04 17:01:39 +00:00
|
|
|
|
2023-02-26 01:12:11 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js 18
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
cache: npm
|
|
|
|
cache-dependency-path: '**/package-lock.json'
|
|
|
|
- run: npm ci
|
|
|
|
working-directory: web
|
|
|
|
- run: npm run lint
|
|
|
|
working-directory: web
|
|
|
|
- run: npm run build --if-present
|
|
|
|
working-directory: web
|
|
|
|
- run: npm run e2e:headless
|
|
|
|
working-directory: web
|