Skip to content

Commit f6ad6ad

Browse files
committed
chore: test config matrix
1 parent ef93dd3 commit f6ad6ad

File tree

2 files changed

+36
-41
lines changed

2 files changed

+36
-41
lines changed

.github/workflows/comment-diffs.yml

Lines changed: 6 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,6 @@ on:
1212
jobs:
1313
generate-diffs-if-needed:
1414
name: Generate diffs
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
type:
19-
# - module-legacy
20-
- module-mixed
21-
# - module-new
22-
# - view-legacy
23-
- view-mixed
24-
# - view-new
25-
language:
26-
- java-objc
27-
# - java-swift
28-
# - kotlin-objc
29-
# - kotlin-swift
30-
# exclude:
31-
# - type: module-new
32-
# language: java-swift
33-
# - type: module-new
34-
# language: kotlin-swift
35-
# - type: module-mixed
36-
# language: java-swift
37-
# - type: module-mixed
38-
# language: kotlin-swift
39-
# - type: view-new
40-
# language: java-swift
41-
# - type: view-new
42-
# language: kotlin-swift
43-
# - type: view-mixed
44-
# language: java-swift
45-
# - type: view-mixed
46-
# language: kotlin-swift
47-
48-
concurrency:
49-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.type }}-${{ matrix.language }}
50-
cancel-in-progress: true
51-
52-
# TODO: use ubuntu once CLI is fixed
5315
runs-on: ubuntu-latest
5416
steps:
5517
- name: Checkout
@@ -62,8 +24,11 @@ jobs:
6224
run: |
6325
yarn workspace create-react-native-library prepare
6426
65-
- name: Create library
27+
- name: Create old version libraries
6628
run: |
29+
source ./.github/workflows/configMatrix.sh
30+
echo "$languages"
31+
6732
./packages/create-react-native-library/bin/create-react-native-library new-version \
6833
--slug @bob/react-native-test \
6934
--description test \
@@ -83,8 +48,8 @@ jobs:
8348
- name: Checkout main
8449
run: git checkout origin/main
8550

86-
- name: Setup again # Add a check here to setup again if deps changed
87-
uses: ./.github/actions/setup
51+
# - name: Setup again # Add a check here to setup again if deps changed
52+
# uses: ./.github/actions/setup
8853

8954
- name: Remove old build and build again
9055
run: |

.github/workflows/configMatrix.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Source this file to set up the environment for the tests.
4+
5+
export libraryTypes=(
6+
module-legacy
7+
module-mixed
8+
module-new
9+
view-legacy
10+
view-mixed
11+
view-new
12+
)
13+
14+
export languages=(
15+
java-objc
16+
java-swift
17+
kotlin-objc
18+
kotlin-swift
19+
)
20+
21+
export exclude=(
22+
module-new/java-swift
23+
module-new/kotlin-swift
24+
module-mixed/java-swift
25+
module-mixed/kotlin-swift
26+
view-new/java-swift
27+
view-new/kotlin-swift
28+
view-mixed/java-swift
29+
view-mixed/kotlin-swift
30+
)

0 commit comments

Comments
 (0)