Skip to content

Commit 1ea2a70

Browse files
authored
GitHub Actions: Use typisttech/.github v3 (#71)
1 parent b7c0047 commit 1ea2a70

File tree

8 files changed

+67
-138
lines changed

8 files changed

+67
-138
lines changed

.github/workflows/audit.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Audit
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '23 3 * * 1' # Weekly on Monday
7+
pull_request:
8+
branches:
9+
- main
10+
push:
11+
branches:
12+
- main
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref_name }}
16+
cancel-in-progress: true
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
php:
23+
uses: typisttech/.github/.github/workflows/audit-php.yml@v3
24+
25+
go:
26+
uses: typisttech/.github/.github/workflows/audit-go.yml@v3

.github/workflows/composer-audit.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/composer-normalize.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/dependabot-auto-merge.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
1010
cancel-in-progress: true
1111

12-
permissions: {}
12+
permissions:
13+
contents: write
14+
pull-requests: write
1315

1416
jobs:
1517
dependabot:
16-
permissions:
17-
contents: write
18-
pull-requests: write
19-
uses: typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v2
18+
uses: typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v3
2019
with:
2120
minor: true
2221
patch: true

.github/workflows/format.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Format
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref_name }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
jobs:
18+
php:
19+
uses: typisttech/.github/.github/workflows/format-php.yml@v3
20+
with:
21+
pint-extra-paths: bin/*
22+
secrets: inherit

.github/workflows/govulncheck.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,22 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
1414
cancel-in-progress: true
1515

16-
permissions: {}
16+
permissions:
17+
contents: read
1718

1819
jobs:
19-
phpstan:
20+
php:
21+
uses: typisttech/.github/.github/workflows/lint-php.yml@v3
22+
with:
23+
box: true
24+
25+
go:
26+
uses: typisttech/.github/.github/workflows/lint-go.yml@v3
27+
28+
wait-for-all-lint:
29+
needs:
30+
- php
31+
- go
2032
runs-on: ubuntu-latest
2133
steps:
22-
- uses: actions/checkout@v5
23-
24-
- uses: shivammathur/setup-php@v2
25-
with:
26-
php-version: '8.4'
27-
coverage: none
28-
- uses: ramsey/composer-install@v3
29-
30-
- run: vendor/bin/phpstan analyse --error-format=github
31-
32-
box:
33-
runs-on: ubuntu-latest
34-
steps:
35-
- uses: actions/checkout@v5
36-
with:
37-
fetch-depth: 0
38-
39-
- uses: shivammathur/setup-php@v2
40-
with:
41-
php-version: '8.4'
42-
coverage: none
43-
tools: box:4
44-
45-
- run: box validate
34+
- run: exit 0

.github/workflows/pint.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)