Skip to content

Commit de6cf13

Browse files
committed
Run CI tests on any branch
1 parent c60c516 commit de6cf13

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

.github/workflows/ci.yml renamed to .github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Build
22

33
on:
44
push:
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
build-and-test:
12+
test-and-build:
1313
runs-on: ubuntu-24.04
1414

1515
steps:

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-24.04
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Get Composer Cache Directory
15+
id: composer-cache
16+
run: |
17+
echo "cache_dir=$(composer config cache-files-dir)" >> $GITHUB_ENV
18+
19+
- uses: actions/cache@v4
20+
with:
21+
path: ${{ env.cache_dir }}
22+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-composer-
25+
26+
- name: Install dependencies
27+
run: |
28+
composer install --no-dev --no-interaction --no-scripts
29+
30+
- name: Run PHPUnit tests
31+
run: |
32+
composer install --no-interaction --no-scripts
33+
./scripts/test/unit.sh
34+
35+
- name: Set up Go
36+
uses: actions/setup-go@v4
37+
with:
38+
go-version: 1.22
39+
cache-dependency-path: cli/go.sum
40+
41+
- name: Run integration tests
42+
run: |
43+
export TEST_CLI_PATH=$(realpath "./bin/platform")
44+
cd go-tests
45+
go test ./... -v

0 commit comments

Comments
 (0)