-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (81 loc) · 2.17 KB
/
Copy pathci.yml
File metadata and controls
102 lines (81 loc) · 2.17 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
permissions:
contents: read
on:
push:
branches:
- main
- 'fix*'
- 'feat*'
- 'feature*'
pull_request:
branches: [main]
# Appelé par release.yml : une release ne part que si lint + tests + build sont verts.
workflow_call:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '22'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint and check formatting
run: yarn lint
- name: Check release tooling and changelog
run: |
yarn test:scripts
yarn changelog:check
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '22'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests with coverage
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: FicSysFR/jsonforms_builder
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
disable_search: true
fail_ci_if_error: true
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '22'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build project
run: yarn build
- name: Install and build MCP package
run: |
yarn --cwd mcp install --frozen-lockfile
yarn --cwd mcp build
- name: Build documentation
run: yarn docs:build
- name: Build and audit npm tarballs
run: yarn package:check