Repository navigation
58 lines (48 loc) · 1.41 KB
/
Copy pathci.yml
File metadata and controls
58 lines (48 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
push:
branches:
- main
paths:
- '.github/workflows/ci.yml'
- 'projects/ui-grid/**'
- 'projects/ui-grid-core/**'
- 'projects/ui-grid-react/**'
- 'projects/ui-grid-vanilla/**'
- 'scripts/materialize-wasm.mjs'
- 'src/main.element.ts'
- 'src/app/grid-library-coverage.spec.ts'
- 'angular.json'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- 'tsconfig.app.json'
- 'tsconfig.spec.json'
- 'CHANGELOG.md'
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 26.4.0
cache: npm
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Build the Angular app
run: npm run build
- name: Build the Angular library package
run: npm run build:library
- name: Run the Angular test suite
run: npm run test:angular -- --watch=false --coverage --coverage-reporters lcovonly
- name: Run the React test suite
run: npm run test:react
- name: Publish coverage to Coveralls
uses: coverallsapp/github-action@v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage/uiGrid/lcov.info