-
Notifications
You must be signed in to change notification settings - Fork 49
48 lines (41 loc) · 1.09 KB
/
run-tests-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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: |
cp -r ./examples/${{ matrix.example }}/ ${{ github.workspace }}/examples/${{ matrix.example }}
cd ${{ github.workspace }}/examples/${{ matrix.example }}
yarn install
- 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 }}/examples/${{ matrix.example }}
yarn build