File tree 1 file changed +54
-0
lines changed
1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 31
31
- name : Collect coverage
32
32
run : yarn coverage
33
33
34
+ - name : Pack
35
+ run : yarn pack
36
+
37
+ - uses : actions/upload-artifact@v2
38
+ with :
39
+ name : package
40
+ path : ./package.tgz
41
+
34
42
test-types :
35
43
name : Test Types with TypeScript ${{ matrix.ts }}
36
44
61
69
run : |
62
70
yarn tsc --version
63
71
yarn type-tests
72
+
73
+ test-published-artifact-local :
74
+ name : Test Published Artifact (Local) ${{ matrix.example }}
75
+
76
+ needs : [build]
77
+ runs-on : ubuntu-latest
78
+ strategy :
79
+ fail-fast : false
80
+ matrix :
81
+ node : ['16.x']
82
+ example : ['rr-rsc-context']
83
+ defaults :
84
+ run :
85
+ working-directory : ./examples/publish-ci/${{ matrix.example }}
86
+ steps :
87
+ - name : Checkout repo
88
+ uses : actions/checkout@v2
89
+
90
+ - name : Use node ${{ matrix.node }}
91
+ uses : actions/setup-node@v2
92
+ with :
93
+ node-version : ${{ matrix.node }}
94
+ cache : ' yarn'
95
+
96
+ - name : Install deps
97
+ run : yarn install
98
+
99
+ - name : Remove existing React-Redux
100
+ run : yarn remove react-redux
101
+
102
+ - uses : actions/download-artifact@v2
103
+ with :
104
+ name : package
105
+ path : ./examples/publish-ci/${{ matrix.example }}
106
+
107
+ - name : Check folder contents
108
+ run : ls -l .
109
+
110
+ - name : Install build artifact
111
+ run : yarn add ./package.tgz
112
+
113
+ - name : Show installed React-Redux versions
114
+ run : yarn info react-redux && yarn why react-redux
115
+
116
+ - name : Build example
117
+ run : yarn build
You can’t perform that action at this time.
0 commit comments