| 
97 | 97 |       - name: Run are-the-types-wrong  | 
98 | 98 |         run: npx @arethetypeswrong/cli ./package.tgz --format table --ignore-rules false-cjs no-resolution  | 
99 | 99 | 
 
  | 
 | 100 | +  test-published-artifact:  | 
 | 101 | +    name: Test Published Artifact ${{ matrix.example }}  | 
 | 102 | + | 
 | 103 | +    needs: [build]  | 
 | 104 | +    runs-on: ubuntu-latest  | 
 | 105 | +    strategy:  | 
 | 106 | +      fail-fast: false  | 
 | 107 | +      matrix:  | 
 | 108 | +        node: ['16.x']  | 
 | 109 | +        example: ['cra4', 'cra5', 'next', 'vite', 'node-standard', 'node-esm']  | 
 | 110 | +    steps:  | 
 | 111 | +      - name: Checkout repo  | 
 | 112 | +        uses: actions/checkout@v2  | 
 | 113 | + | 
 | 114 | +      - name: Use node ${{ matrix.node }}  | 
 | 115 | +        uses: actions/setup-node@v2  | 
 | 116 | +        with:  | 
 | 117 | +          node-version: ${{ matrix.node }}  | 
 | 118 | +          cache: 'yarn'  | 
 | 119 | + | 
 | 120 | +      - name: Clone RTK repo  | 
 | 121 | +        run: git clone https://github.com/reduxjs/redux-toolkit.git ./redux-toolkit  | 
 | 122 | + | 
 | 123 | +      - name: Check out v2.0-integration  | 
 | 124 | +        working-directory: ./redux-toolkit  | 
 | 125 | +        run: git checkout v2.0-integration  | 
 | 126 | + | 
 | 127 | +      - name: Check folder contents  | 
 | 128 | +        run: ls -l .  | 
 | 129 | + | 
 | 130 | +      - name: Install deps  | 
 | 131 | +        working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}  | 
 | 132 | +        run: yarn install  | 
 | 133 | + | 
 | 134 | +      - uses: actions/download-artifact@v2  | 
 | 135 | +        with:  | 
 | 136 | +          name: package  | 
 | 137 | +          path: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}  | 
 | 138 | + | 
 | 139 | +      - name: Check folder contents  | 
 | 140 | +        working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}  | 
 | 141 | +        run: ls -l .  | 
 | 142 | + | 
 | 143 | +      - name: Install build artifact  | 
 | 144 | +        working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}  | 
 | 145 | +        run: yarn add ./package.tgz  | 
 | 146 | + | 
 | 147 | +      - name: Show installed package versions  | 
 | 148 | +        working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}  | 
 | 149 | +        run: yarn info reselect && yarn why reselect  | 
 | 150 | + | 
 | 151 | +      - name: Build example  | 
 | 152 | +        working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}  | 
 | 153 | +        run: yarn build  | 
 | 154 | + | 
 | 155 | +      - name: Run test step  | 
 | 156 | +        working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}  | 
 | 157 | +        run: yarn test  | 
 | 158 | + | 
100 | 159 |   test-published-artifact-local:  | 
101 | 160 |     name: Test Published Artifact (Local) ${{ matrix.example }}  | 
102 | 161 | 
 
  | 
 | 
0 commit comments