Skip to content

Commit

Permalink
Build Next RSC example in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Jun 13, 2023
1 parent 2730991 commit e1434f7
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ jobs:
- name: Collect coverage
run: yarn coverage

- name: Build
run: yarn build

- name: Pack
run: yarn pack

- uses: actions/upload-artifact@v2
with:
name: package
path: ./package.tgz

test-types:
name: Test Types with TypeScript ${{ matrix.ts }}

Expand Down Expand Up @@ -61,3 +72,49 @@ jobs:
run: |
yarn tsc --version
yarn type-tests
test-published-artifact-local:
name: Test Published Artifact (Local) ${{ matrix.example }}

needs: [build]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ['16.x']
example: ['rr-rsc-context']
defaults:
run:
working-directory: ./examples/publish-ci/${{ matrix.example }}
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'

- name: Install deps
run: yarn install

- name: Remove existing React-Redux
run: yarn remove react-redux

- uses: actions/download-artifact@v2
with:
name: package
path: ./examples/publish-ci/${{ matrix.example }}

- name: Check folder contents
run: ls -l .

- name: Install build artifact
run: yarn add ./package.tgz

- name: Show installed React-Redux versions
run: yarn info react-redux && yarn why react-redux

- name: Build example
run: yarn build

0 comments on commit e1434f7

Please sign in to comment.