@@ -10,10 +10,10 @@ jobs:
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v2
13- - name : Use Node.js 14 .x
13+ - name : Use Node.js 16 .x
1414 uses : actions/setup-node@v1
1515 with :
16- node-version : 14 .x
16+ node-version : 16 .x
1717 - run : yarn add shelljs
1818 - run : yarn run create:npm-package
1919 - name : Upload template
@@ -26,17 +26,17 @@ jobs:
2626 needs : createNpmPackage
2727 runs-on : ubuntu-latest
2828 steps :
29- - name : Use Node.js 14 .x
29+ - name : Use Node.js 16 .x
3030 uses : actions/setup-node@v1
3131 with :
32- node-version : 14 .x
32+ node-version : 16 .x
3333 - name : Download template
3434 uses : actions/download-artifact@v1
3535 with :
3636 name : cra-template-rb
3737 path : ../cra-template-rb # Put into the upper folder. create-react-app wants the current directory empty
3838 - name : Create CRA from downloaded template
39- run : npx create- react-app --template file:../cra-template-rb .
39+ run : yarn create react-app --template file:../cra-template-rb .
4040 - run : yarn run build
4141 - run : yarn run test:generators
4242 - run : yarn run lint
4747 - run : yarn run test:generators
4848 - run : yarn run lint
4949 - run : yarn run checkTs
50-
50+ createCRAWithMultipleNodeVersions :
51+ needs : createNpmPackage
52+ strategy :
53+ matrix :
54+ node-version : [14.x, 16.x, 17.x]
55+ runs-on : ubuntu-latest
56+ steps :
57+ - name : Use Node.js ${{ matrix.node-version }}
58+ uses : actions/setup-node@v1
59+ with :
60+ node-version : ${{ matrix.node-version }}
61+ - name : Download template
62+ uses : actions/download-artifact@v1
63+ with :
64+ name : cra-template-rb
65+ path : ../cra-template-rb # Put into the upper folder. create-react-app wants the current directory empty
66+ - name : Create CRA from downloaded template
67+ run : yarn create react-app --template file:../cra-template-rb .
68+ - run : yarn run build
69+ - run : yarn run test
0 commit comments