Skip to content

Commit 700520d

Browse files
committed
[IMP] use hbrunn/check-vendor-libs action
1 parent 1b75181 commit 700520d

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

copier.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,11 @@ github_ci_extra_env:
160160
convert_readme_fragments_to_markdown:
161161
default: "{% if odoo_version < 17.0 -%}no{% else %}yes{% endif %}"
162162
type: bool
163+
164+
use_check_vendor_libs:
165+
default: "{% if odoo_version < 18.0 -%}disabled{% elif odoo_version < 20.0 %}optional{% else %}mandatory{% endif %}"
166+
choices:
167+
- disabled
168+
- optional
169+
- mandatory
170+
help: Verify vendored javascript code
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Verify vendored javascript code
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "{{ odoo_version }}*"
7+
paths:
8+
- "*/static/lib"
9+
push:
10+
branches:
11+
- "{{ odoo_version }}"
12+
- "{{ odoo_version }}-ocabot-*"
13+
14+
concurrency:
15+
group: {% raw %}${{ github.workflow }}-${{ github.ref }}{% endraw %}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
check_vendor_libs:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v6
23+
- name: Check vendor libs
24+
uses: hbrunn/check-vendor-libs@v1
25+
with:
26+
directories: "*/static/lib"
27+
{%- if use_check_vendor_libs == 'optional' %}
28+
no_fail: true
29+
{%- endif -%}

0 commit comments

Comments
 (0)