Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cf94f7f

Browse files
committed
Improved Github Action configuration file
1 parent afbb4f9 commit cf94f7f

File tree

3 files changed

+84
-47
lines changed

3 files changed

+84
-47
lines changed

‎.github/workflows/tests.yml

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

‎.github/workflows/testsv2.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Phpfastcache Tests
2+
on: [push, pull_request]
3+
jobs:
4+
run:
5+
runs-on: ${{ matrix.operating-system }}
6+
timeout-minutes: 60
7+
strategy:
8+
matrix:
9+
operating-system: [ubuntu-latest]
10+
php-versions: ['8.0', '8.1', '8.2', '8.3']
11+
name: PHP ${{ matrix.php-versions }} quality/tests on ${{ matrix.operating-system }}
12+
env:
13+
extensions: mbstring, intl, pdo_sqlite, json, redis, grpc, couchbase-3.2.2
14+
key: cache-v1
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Install Couchbase Server
20+
run: ./bin/ci/scripts/install_couchbase.sh
21+
22+
- name: Setup cache environment
23+
id: extcache
24+
uses: shivammathur/cache-extensions@v1
25+
with:
26+
php-version: ${{ matrix.php-versions }}
27+
extensions: ${{ env.extensions }}
28+
key: ${{ env.key }}
29+
30+
- name: Cache extensions
31+
uses: actions/cache@v3
32+
with:
33+
path: ${{ steps.extcache.outputs.dir }}
34+
key: ${{ steps.extcache.outputs.key }}
35+
restore-keys: ${{ steps.extcache.outputs.key }}
36+
37+
- name: Setup PHP
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
coverage: none
41+
php-version: ${{ matrix.php-versions }}
42+
extensions: ${{ env.extensions }}
43+
ini-values: apc.enabled=1, apc.shm_size=32M, apc.ttl=7200, apc.enable_cli=1, apc.serializer=php
44+
45+
- name: Setup Memcached server
46+
uses: niden/actions-memcached@v7
47+
48+
- name: Setup Redis server
49+
uses: zhulik/redis-action@v1.0.0
50+
with:
51+
redis version: '5'
52+
53+
- name: Validate composer.json and composer.lock
54+
run: composer validate --strict
55+
56+
- name: Cache Composer packages
57+
id: composer-cache
58+
uses: actions/cache@v3
59+
with:
60+
path: vendor
61+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
62+
restore-keys: |
63+
${{ runner.os }}-php-
64+
65+
- name: Setup GCP environment
66+
run: "./bin/ci/scripts/setup_gcp.sh || echo \"GCP setup failed (maybe due to fork limitation)\""
67+
env:
68+
BASE64_GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.BASE64_GOOGLE_APPLICATION_CREDENTIALS }}
69+
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
70+
71+
- name: Install dependencies
72+
run: ./bin/ci/scripts/install_dependencies.sh
73+
74+
- name: Run quality tools
75+
run: composer run-script quality
76+
77+
- name: Run tests
78+
env:
79+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
80+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
81+
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
82+
GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
83+
run: composer run-script tests

‎bin/ci/scripts/install_couchbase.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1616981CC4A088B2
3838
echo "deb https://packages.couchbase.com/ubuntu bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
3939
echo "deb https://packages.couchbase.com/clients/c/repos/deb/ubuntu1804 bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
4040
sudo apt-get update
41-
sudo apt-get install -yq libcouchbase3 libcouchbase-dev build-essential libssl1.0.0 runit wget python-httplib2 chrpath tzdata lsof lshw sysstat net-tools numactl
41+
sudo apt-get install -yq libcouchbase3 libcouchbase-dev build-essential libssl1.1 runit wget python3-httplib2 chrpath tzdata lsof lshw sysstat net-tools numactl libtinfo5
4242

4343
echo "# Downloading couchbase v${CB_VERSION}"
4444
wget -q -N $CB_RELEASE_URL/$CB_VERSION/$CB_PACKAGE

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /