File tree Expand file tree Collapse file tree 5 files changed +25
-9
lines changed Expand file tree Collapse file tree 5 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 1
- name : Auto assign issues
1
+ name : Auto assign issues and pull requests
2
2
3
3
on :
4
4
issues :
5
5
types :
6
6
- opened
7
+ pull_request :
8
+ types :
9
+ - opened
7
10
8
11
jobs :
9
12
run :
@@ -12,11 +15,11 @@ jobs:
12
15
issues : write
13
16
pull-requests : write
14
17
steps :
15
- - name : Assign issues
16
- uses : gustavofreze/auto-assign@1.0.0
18
+ - name : Assign issues and pull requests
19
+ uses : gustavofreze/auto-assign@1.1.4
17
20
with :
18
21
assignees : ' ${{ secrets.ASSIGNEES }}'
19
22
github_token : ' ${{ secrets.GITHUB_TOKEN }}'
20
23
allow_self_assign : ' true'
21
24
allow_no_assignees : ' true'
22
- assignment_options : ' ISSUE'
25
+ assignment_options : ' ISSUE,PULL_REQUEST '
Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
- push :
5
4
pull_request :
6
5
7
6
permissions :
Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2024 Tiny Blocks
3
+ Copyright (c) 2025 Tiny Blocks
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1
- DOCKER_RUN = docker run --rm -it --net=host -v ${PWD}:/app -w /app gustavofreze/php:8.3
1
+ ifeq ($(OS ) ,Windows_NT)
2
+ PWD := $(shell cd)
3
+ else
4
+ PWD := $(shell pwd -L)
5
+ endif
6
+
7
+ ARCH := $(shell uname -m)
8
+ PLATFORM :=
9
+
10
+ ifeq ($(ARCH ) ,arm64)
11
+ PLATFORM := --platform=linux/amd64
12
+ endif
13
+
14
+ DOCKER_RUN = docker run ${PLATFORM} --rm -it --net=host -v ${PWD}:/app -w /app gustavofreze/php:8.3
2
15
3
16
.PHONY : configure test test-file test-no-coverage review show-reports clean
4
17
9
22
@${DOCKER_RUN} composer tests
10
23
11
24
test-file :
12
- @${DOCKER_RUN} composer tests -file-no-coverage ${FILE}
25
+ @${DOCKER_RUN} composer test -file ${FILE}
13
26
14
27
test-no-coverage :
15
28
@${DOCKER_RUN} composer tests-no-coverage
@@ -22,4 +35,4 @@ show-reports:
22
35
23
36
clean :
24
37
@sudo chown -R ${USER} :${USER} ${PWD}
25
- @rm -rf report vendor .phpunit.cache .lock
38
+ @rm -rf report vendor .phpunit.cache * .lock
Original file line number Diff line number Diff line change 54
54
"phpcs" : " phpcs --standard=PSR12 --extensions=php ./src" ,
55
55
"phpmd" : " phpmd ./src text phpmd.xml --suffixes php --ignore-violations-on-exit" ,
56
56
"phpstan" : " phpstan analyse -c phpstan.neon.dist --quiet --no-progress" ,
57
+ "test-file" : " phpunit --configuration phpunit.xml --no-coverage --filter" ,
57
58
"mutation-test" : " infection --only-covered --threads=max --logger-html=report/coverage/mutation-report.html --coverage=report/coverage" ,
58
59
"test-no-coverage" : " phpunit --configuration phpunit.xml --no-coverage tests" ,
59
60
"review" : [
You can’t perform that action at this time.
0 commit comments