Skip to content

Commit 336e8f3

Browse files
authored
chore: add unit tests for generate_library.sh (#1964)
* chore: add unit tests for `generate_library.sh` * add os types in unit tests * add more tests * fix broken test * use `uname` to get os info * split generate library golden tests * change library * add script level comments * remove golden tests * remove golden test in ci * change proto path * remove unused parameter * set x separately
1 parent 7218d80 commit 336e8f3

File tree

5 files changed

+213
-127
lines changed

5 files changed

+213
-127
lines changed

.github/workflows/verify_library_generation.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ jobs:
3131
--googleapis_gen_url https://cloud-java-bot:${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}@github.com/googleapis/googleapis-gen.git \
3232
--os_type ${{ matrix.os }}
3333
unit_tests:
34-
runs-on: ubuntu-22.04
34+
strategy:
35+
matrix:
36+
java: [ 8 ]
37+
os: [ ubuntu-22.04, macos-12 ]
38+
runs-on: ${{ matrix.os }}
3539
steps:
3640
- uses: actions/checkout@v3
3741
- name: Run unit tests

library_generation/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,3 @@ library_generation/generate_library.sh \
124124
--rest_numeric_enums true \
125125
--include_samples true
126126
```
127-

0 commit comments

Comments
 (0)