-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (87 loc) · 2.61 KB
/
ci.yml
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
name: Continuous Integration
on: [push]
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Repository lampy
uses: actions/checkout@v3
with:
submodules: recursive
ref: 'v2.0'
repository: koromerzhin/lampy
path: lampy
- name: Cache npm packages
id: npm-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install npm dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm install
- name: 'set apps/.env'
run: 'cp apps/.env.test apps/.env'
- name: 'set .env'
run: 'cp .env.example .env'
- name: 'SET BDD'
run: npm run bdd:mariadb
- name: 'Launch Lampy'
run: cd lampy && npm run exec
- name: 'Image pull'
run: npm run docker:getpull-image
- name: 'Build containers'
run: npm run docker:deploy
- name: 'Waiting'
run: npm run docker:waiting
- name: linter readme.md
run: npm run lint:markdown
- name: linter SCSS
run: npm run lint:stylelint:fix
- name: "install PHAR"
run: npm run download:phar
- name: 'docker ls'
run: npm run docker:ls
- name: linter PHP Code Sniffer
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: npm run lint:phpcs:error
- name: linter PHP MD
run: npm run lint:phpmd
- name: linter PHPMND
run: npm run lint:phpmnd
- name: Add assets
run: npm run assets
- name: Test lancement bootstrap
run: npm run encore:dev
- name: Linter twig
run: npm run lint:twig
- name: Linter yaml
run: npm run lint:yaml
- name: linter phpstan
run: npm run lint:phpstan:0
- name: 'BDD MIGRATE'
run: npm run doctrine:migrate
- name: 'BDD Schema update'
run: npm run doctrine:schema:update
- name: 'Run the fixtures'
run: npm run doctrine:fixtures
- name: 'Install Labstag'
run: npm run cmd:labstag:all
- name: Run Acceptance Tests
run: npm run test:behat
- name: Cypress run
uses: cypress-io/github-action@v5
- name: Archive screenshots
uses: actions/upload-artifact@v3
with:
name: screenshot
path: cypress/