Skip to content

Fix CI test jobs fail to detect build failure #23

Fix CI test jobs fail to detect build failure

Fix CI test jobs fail to detect build failure #23

name: Build Next.js examples
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example:
[
asset-list,
authz,
vote-proposal,
ibc-transfer,
swap-tokens,
provide-liquidity,
nft,
connect-chain,
connect-multi-chain,
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Clone example
run: |
mkdir -p ${{ github.workspace }}/ci-examples/${{ matrix.example }}
cp -r ./examples/${{ matrix.example }}/ ${{ github.workspace }}/ci-examples/${{ matrix.example }}
cd ${{ github.workspace }}/ci-examples/${{ matrix.example }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Yarn
uses: threeal/[email protected]
- name: Build example project
run: |
cd ${{ github.workspace }}/ci-examples/${{ matrix.example }}
yarn install
yarn build