Skip to content

Commit e07f579

Browse files
committed
Build Next RSC example in CI
1 parent 2730991 commit e07f579

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Diff for: .github/workflows/test.yml

+54
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
- name: Collect coverage
3232
run: yarn coverage
3333

34+
- name: Pack
35+
run: yarn pack
36+
37+
- uses: actions/upload-artifact@v2
38+
with:
39+
name: package
40+
path: ./package.tgz
41+
3442
test-types:
3543
name: Test Types with TypeScript ${{ matrix.ts }}
3644

@@ -61,3 +69,49 @@ jobs:
6169
run: |
6270
yarn tsc --version
6371
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

0 commit comments

Comments
 (0)