Skip to content

Commit aa03989

Browse files
committed
Updated tasks
1 parent 3e8f286 commit aa03989

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.github/workflows/pr.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
on: pull_request
22
name: PR Review
33
jobs:
4+
changelog:
5+
runs-on: ubuntu-latest
6+
name: Changelog should be updated
7+
strategy:
8+
fail-fast: false
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@master
12+
with:
13+
fetch-depth: 2
14+
15+
- name: Git fetch
16+
run: git fetch
17+
18+
- name: Check that changelog has been updated.
19+
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0
20+
421
test-composer-files:
522
name: Validate composer
623
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [Unreleased]
1010

11+
- [PR-351](https://github.com/itk-dev/os2loop/pull/351):
12+
Updated tasks
1113
- [PR-341](https://github.com/itk-dev/os2loop/pull/341):
1214
Notify of collection changed when document is changed.
1315

Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ includes:
1111
taskfile: task/
1212
vars:
1313
DOCKER_COMPOSE: itkdev-docker-compose-server
14+
COMPOSER_INSTALL_ARGUMENTS: --no-dev --optimize-autoloader

task/Taskfile.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ version: '3'
22

33
vars:
44
DOCKER_COMPOSE: docker compose
5+
COMPOSER_INSTALL_ARGUMENTS:
56

67
tasks:
78
up:
89
desc: Update (pull and up) docker compose setup and run composer install
910
cmds:
1011
- "{{.DOCKER_COMPOSE}} pull"
1112
- "{{.DOCKER_COMPOSE}} up --detach"
12-
- "{{.DOCKER_COMPOSE}} exec phpfpm composer install --no-dev --optimize-autoloader"
13+
- "{{.DOCKER_COMPOSE}} exec phpfpm composer install {{.COMPOSER_INSTALL_ARGUMENTS}}"
1314

1415
deploy:
1516
desc: Deploy site

0 commit comments

Comments
 (0)