Skip to content

Commit 10b6f78

Browse files
authored
GitHub Actions: Use typisttech/.github v3 (#20)
1 parent 57f0e74 commit 10b6f78

File tree

13 files changed

+178
-323
lines changed

13 files changed

+178
-323
lines changed

.github/actions/set-envs/action.yml

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

.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.
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: Dependabot Auto-merge
22

3-
on: pull_request
3+
on:
4+
pull_request:
5+
branches:
6+
- main
47

58
concurrency:
69
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
710
cancel-in-progress: true
811

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

1116
jobs:
1217
dependabot:
13-
permissions:
14-
contents: write
15-
pull-requests: write
16-
uses: typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v2
18+
uses: typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v3
1719
with:
1820
minor: true
1921
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.

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ jobs:
5555
run: |
5656
for arch in ${ARCHS}; do
5757
echo "::group::==> ${arch}"
58-
gh attestation verify --repo "${REPO}" "composer-semver_Linux_${arch}.deb"
58+
gh attestation verify --repo "${REPO}" "composer-semver_linux_${arch}.deb"
5959
echo "::endgroup::"
6060
done
6161
env:
6262
REPO: ${{ github.repository }}
6363
ARCHS: "arm64 amd64"
6464
GH_TOKEN: ${{ github.token }}
6565

66-
- name: Push composer-semver_Linux_arm64.deb
66+
- name: Push composer-semver_linux_arm64.deb
6767
uses: cloudsmith-io/[email protected]
6868
with:
6969
api-key: ${{ secrets.CLOUDSMITH_API_KEY_TASTENDRUCK }}
@@ -74,9 +74,9 @@ jobs:
7474
distro: any-distro
7575
release: any-version
7676
no-wait-for-sync: true
77-
file: composer-semver_Linux_arm64.deb
77+
file: composer-semver_linux_arm64.deb
7878

79-
- name: Push composer-semver_Linux_amd64.deb
79+
- name: Push composer-semver_linux_amd64.deb
8080
uses: cloudsmith-io/[email protected]
8181
with:
8282
api-key: ${{ secrets.CLOUDSMITH_API_KEY_TASTENDRUCK }}
@@ -87,4 +87,4 @@ jobs:
8787
distro: any-distro
8888
release: any-version
8989
no-wait-for-sync: true
90-
file: composer-semver_Linux_amd64.deb
90+
file: composer-semver_linux_amd64.deb

0 commit comments

Comments
 (0)