chore: bnb chain migration #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Genez-io/genezio-github-action@main | |
with: | |
token: ${{ secrets.GENEZIO_KEY }} | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: | | |
npm install && cd back-end && npm install && cd ../front-end && npm install | |
- name: Lint | |
run: | | |
npm run lint | |
- name: Generate SDK | |
run: | | |
cd back-end && npx genezio local & | |
until curl --silent --fail http://localhost:8083/getPrompts; do | |
echo 'Waiting for the server to start...' | |
sleep 1 | |
done | |
- name: Build | |
run: | | |
cd front-end && npm run build |