-
Notifications
You must be signed in to change notification settings - Fork 24
47 lines (35 loc) · 962 Bytes
/
production.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
name: Production Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
server-setup:
uses: ./.github/workflows/server-setup-template.yml
php-tests:
uses: ./.github/workflows/php-tests-template.yml
needs: server-setup
js-tests:
uses: ./.github/workflows/js-tests-template.yml
needs: server-setup
build:
if: github.event_type != 'pull_request'
needs: [ php-tests , js-tests ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clear vendor directory
run: rm -rf vendor
- name: Install composer non-dev dependencies
run: composer install --no-dev
- name: Install NPM dependencies
run: npm ci -f
- name: Lint
run: npm run lint
- name: Build JS
run: npm run build
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: 'production build'