Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] GitHub Actions version upgrades and pins #1642

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
jobs:
publish:
name: Building images
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build images
run: make docker-images
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

php-tests:
name: Tests - PHP ${{ matrix.php }} ${{ matrix.dependency-version }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 15
strategy:
matrix:
Expand All @@ -24,9 +24,9 @@ jobs:
dependency-version: '--prefer-lowest'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
# Node is required by some tests
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12
- name: Setup PHP
Expand All @@ -50,19 +50,19 @@ jobs:
run: 'vendor/bin/phpunit --testsuite small'

phpstan:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: PHPStan
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: '8.1'
tools: composer:v2, cs2pr
coverage: none
- name: Cache Composer dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: php-composer-locked-${{ hashFiles('composer.lock') }}
Expand All @@ -73,19 +73,19 @@ jobs:
run: vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr

phpcs:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: PHP CodeSniffer
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: '7.4'
tools: composer:v2, cs2pr
coverage: none
- name: Cache Composer dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: php-composer-locked-${{ hashFiles('composer.lock') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
jobs:
publish:
name: Publishing images
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get the version
id: get_version
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/update-layer-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ permissions:
jobs:
update-layer-versions:
name: Update layer versions
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Check out the `v2` branch
# TODO Update that to `main` when the v2 is merged and released
ref: v2

- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::534081306603:role/bref-github-actions
role-session-name: bref-github-actions
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: '8.1'
tools: composer

- name: Install Composer dependencies
Expand All @@ -41,7 +41,7 @@ jobs:
- run: make layers.json

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update layer versions
title: Updated AWS Lambda layers (Bref v2)
Expand Down