File tree Expand file tree Collapse file tree 2 files changed +47
-2
lines changed Expand file tree Collapse file tree 2 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Build
22
33on :
44 push :
99 - main
1010
1111jobs :
12- build -and-test :
12+ test -and-build :
1313 runs-on : ubuntu-24.04
1414
1515 steps :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments