Update GH action versions.
This commit is contained in:
parent
b602589f3f
commit
4c59ad57ec
|
@ -42,7 +42,7 @@ jobs:
|
|||
tools: composer:v2, cs2pr
|
||||
|
||||
- name: Cache PHP dependencies
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.OS }}-build-${{ hashFiles('composer.lock') }}
|
||||
|
@ -65,7 +65,7 @@ jobs:
|
|||
|
||||
- name: Run PHPStan
|
||||
run: |
|
||||
vendor/bin/phpstan analyze --memory-limit=-1 --error-format=checkstyle | cs2pr
|
||||
vendor/bin/phpstan analyze --memory-limit=-1 --xdebug --error-format=checkstyle | cs2pr
|
||||
|
||||
- name: Run PHP Code Sniffer
|
||||
run: |
|
||||
|
@ -88,7 +88,7 @@ jobs:
|
|||
|
||||
- name: Pull latest translations.
|
||||
if: github.event_name == 'push' || github.event_name == 'schedule'
|
||||
uses: crowdin/github-action@1.4.8
|
||||
uses: crowdin/github-action@1.5.3
|
||||
with:
|
||||
upload_sources: true
|
||||
download_translations: true
|
||||
|
@ -113,10 +113,10 @@ jobs:
|
|||
run: bin/console azuracast:api:docs
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Build Web Image
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
load: true
|
||||
|
@ -147,7 +147,7 @@ jobs:
|
|||
cat tests/_output/*
|
||||
|
||||
- name: Upload built static assets and translations
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: assets
|
||||
if-no-files-found: error
|
||||
|
@ -172,27 +172,27 @@ jobs:
|
|||
git gc --prune=now --aggressive
|
||||
|
||||
- name: Download built static assets from previous step
|
||||
uses: actions/download-artifact@v2
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: assets
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v2
|
||||
id: qemu
|
||||
with:
|
||||
platforms: arm64
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
|
@ -200,7 +200,7 @@ jobs:
|
|||
|
||||
- name: Build Docker Metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v3
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: |
|
||||
azuracast/azuracast
|
||||
|
@ -211,7 +211,7 @@ jobs:
|
|||
type=semver,pattern={{version}}
|
||||
|
||||
- name: Publish to Docker Hub
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
|
|
@ -187,7 +187,7 @@
|
|||
"phpcbf": "phpcbf",
|
||||
"phpcs": "phpcs",
|
||||
"phplint": "parallel-lint . --exclude vendor",
|
||||
"phpstan": "phpstan analyze --memory-limit=-1",
|
||||
"phpstan": "phpstan analyze --memory-limit=-1 --xdebug",
|
||||
"shell": "psysh"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,4 +28,4 @@ parameters:
|
|||
- App\View
|
||||
|
||||
parallel:
|
||||
maximumNumberOfProcesses: 1
|
||||
maximumNumberOfProcesses: 4
|
||||
|
|
Loading…
Reference in New Issue