-
Notifications
You must be signed in to change notification settings - Fork 8
61 lines (48 loc) · 1.16 KB
/
ci.yaml
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
name: Continuous Integration
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
lint-and-test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install taskfile.dev
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ github.token }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build docker images
uses: docker/bake-action@v5
with:
files: compose.yml
pull: true
load: true
targets: |
prestashop
set: |
*.cache-from=type=gha
*.cache-to=type=gha
- name: Run linter
run: task lint:ci
- name: Run unit Tests and Coverage
if: ${{ !contains(github.event.pull_request.labels.*.name, 'hotfix') }}
run: task test
env:
XDEBUG_MODE: coverage
- name: Install semgrep
run: pip install semgrep
- name: Run semgrep
run: semgrep scan --config semgrep/rules