66 lint :
77 name : Lint
88 runs-on : ubuntu-20.04
9+ strategy :
10+ matrix :
11+ node-version : ["16", "18"]
912 steps :
1013 - uses : actions/checkout@v3
1114 - name : Cache node modules
@@ -21,13 +24,16 @@ jobs:
2124 ${{ runner.os }}-
2225 - uses : actions/setup-node@v3
2326 with :
24- node-version : " 16 "
27+ node-version : ${{ matrix.node-version }}
2528 - uses : ./.github/actions/es-lint
2629
2730 unit-tests :
2831 name : Unit Tests
2932 runs-on : ubuntu-20.04
3033 needs : [lint]
34+ strategy :
35+ matrix :
36+ node-version : ["16", "18"]
3137 steps :
3238 - uses : actions/checkout@v3
3339 - name : Cache node modules
@@ -43,13 +49,16 @@ jobs:
4349 ${{ runner.os }}-
4450 - uses : actions/setup-node@v3
4551 with :
46- node-version : " 16 "
52+ node-version : ${{ matrix.node-version }}
4753 - uses : ./.github/actions/unit-tests
4854
4955 functional-tests :
5056 name : Functional Tests
5157 runs-on : ubuntu-20.04
5258 needs : [unit-tests]
59+ strategy :
60+ matrix :
61+ node-version : ["16", "18"]
5362 steps :
5463 - uses : actions/checkout@v3
5564 with :
6776 ${{ runner.os }}-
6877 - uses : actions/setup-node@v3
6978 with :
70- node-version : " 16 "
79+ node-version : ${{ matrix.node-version }}
7180 - uses : ./.github/actions/functional-tests
7281 with :
7382 CYPRESS_RECORD_KEY_DOC : ${{ secrets.CYPRESS_RECORD_KEY_DOC }}
7685 name : Admin Console Tests
7786 runs-on : ubuntu-20.04
7887 needs : [unit-tests]
88+ strategy :
89+ matrix :
90+ node-version : ["16", "18"]
7991 steps :
8092 - uses : actions/checkout@v3
8193 - name : Cache node modules
@@ -91,39 +103,19 @@ jobs:
91103 ${{ runner.os }}-
92104 - uses : actions/setup-node@v1
93105 with :
94- node-version : " 16 "
106+ node-version : ${{ matrix.node-version }}
95107 - uses : ./.github/actions/tests-ac
96108 with :
97109 sdk-version : 7
98110 cypress-key : ${{ secrets.CYPRESS_RECORD_KEY }}
99111
100- # doc-dead-links:
101- # name: Check dead-links
102- # runs-on: ubuntu-latest
103- # steps:
104- # - uses: actions/checkout@v3
105- # with:
106- # fetch-depth: 0
107- # - name: Extract references from context
108- # shell: bash
109- # id: extract-refs
110- # run: |
111- # echo "::set-output name=version::$(git describe --abbrev=0 --tags | cut -d. -f 1)"
112- # echo "::set-output name=repo::$(echo $GITHUB_REPOSITORY | cut -d/ -f 2)"
113- # echo "::set-output name=fw-branch::$(if [ $BASE_BRANCH == master ]; then echo master; else echo develop; fi)"
114- # - uses: convictional/trigger-workflow-and-wait@v1.3.0
115- # with:
116- # owner: kuzzleio
117- # repo: documentation
118- # github_token: ${{ secrets.ACCESS_TOKEN_CI }}
119- # workflow_file_name: dead_links.workflow.yml
120- # ref: ${{ steps.extract-refs.outputs.fw-branch }}
121- # inputs: '{"repo_name": "${{ steps.extract-refs.outputs.repo }}", "branch": "${{ github.head_ref }}", "version": "${{ steps.extract-refs.outputs.version }}"}'
122-
123112 documentation-snippet-tests :
124113 name : Documentation Snippet Tests
125114 needs : [unit-tests]
126115 runs-on : ubuntu-20.04
116+ strategy :
117+ matrix :
118+ node-version : ["16", "18"]
127119 steps :
128120 - uses : actions/checkout@v3
129121 - name : Cache node modules
@@ -139,7 +131,7 @@ jobs:
139131 ${{ runner.os }}-
140132 - uses : actions/setup-node@v3
141133 with :
142- node-version : " 16 "
134+ node-version : ${{ matrix.node-version }}
143135 - uses : ./.github/actions/snippet-tests
144136 with :
145137 CYPRESS_RECORD_KEY_DOC : ${{ secrets.CYPRESS_RECORD_KEY_DOC }}
0 commit comments