Update GH action versions.

This commit is contained in:
Buster Neece 2023-01-17 23:53:10 -06:00
parent b602589f3f
commit 4c59ad57ec
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
3 changed files with 15 additions and 15 deletions

View File

@ -42,7 +42,7 @@ jobs:
tools: composer:v2, cs2pr tools: composer:v2, cs2pr
- name: Cache PHP dependencies - name: Cache PHP dependencies
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: vendor path: vendor
key: ${{ runner.OS }}-build-${{ hashFiles('composer.lock') }} key: ${{ runner.OS }}-build-${{ hashFiles('composer.lock') }}
@ -65,7 +65,7 @@ jobs:
- name: Run PHPStan - name: Run PHPStan
run: | 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 - name: Run PHP Code Sniffer
run: | run: |
@ -88,7 +88,7 @@ jobs:
- name: Pull latest translations. - name: Pull latest translations.
if: github.event_name == 'push' || github.event_name == 'schedule' if: github.event_name == 'push' || github.event_name == 'schedule'
uses: crowdin/github-action@1.4.8 uses: crowdin/github-action@1.5.3
with: with:
upload_sources: true upload_sources: true
download_translations: true download_translations: true
@ -113,10 +113,10 @@ jobs:
run: bin/console azuracast:api:docs run: bin/console azuracast:api:docs
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
- name: Build Web Image - name: Build Web Image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: . context: .
load: true load: true
@ -147,7 +147,7 @@ jobs:
cat tests/_output/* cat tests/_output/*
- name: Upload built static assets and translations - name: Upload built static assets and translations
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: assets name: assets
if-no-files-found: error if-no-files-found: error
@ -172,27 +172,27 @@ jobs:
git gc --prune=now --aggressive git gc --prune=now --aggressive
- name: Download built static assets from previous step - name: Download built static assets from previous step
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: assets name: assets
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v2
id: qemu id: qemu
with: with:
platforms: arm64 platforms: arm64
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
@ -200,7 +200,7 @@ jobs:
- name: Build Docker Metadata - name: Build Docker Metadata
id: meta id: meta
uses: docker/metadata-action@v3 uses: docker/metadata-action@v4
with: with:
images: | images: |
azuracast/azuracast azuracast/azuracast
@ -211,7 +211,7 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
- name: Publish to Docker Hub - name: Publish to Docker Hub
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: . context: .
push: true push: true

View File

@ -187,7 +187,7 @@
"phpcbf": "phpcbf", "phpcbf": "phpcbf",
"phpcs": "phpcs", "phpcs": "phpcs",
"phplint": "parallel-lint . --exclude vendor", "phplint": "parallel-lint . --exclude vendor",
"phpstan": "phpstan analyze --memory-limit=-1", "phpstan": "phpstan analyze --memory-limit=-1 --xdebug",
"shell": "psysh" "shell": "psysh"
} }
} }

View File

@ -28,4 +28,4 @@ parameters:
- App\View - App\View
parallel: parallel:
maximumNumberOfProcesses: 1 maximumNumberOfProcesses: 4