mirror of
https://github.com/status-im/status-web.git
synced 2026-08-30 05:41:09 +00:00
58 lines
1.1 KiB
YAML
58 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ['master', 'develop']
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
workflow_call:
|
|
|
|
env:
|
|
INFURA_API_KEY: ''
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and Test
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9.12.3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22.17.0
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Initialize submodules
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: Install Foundry
|
|
uses: foundry-rs/foundry-toolchain@v1
|
|
with:
|
|
version: v1.5.1
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
- name: Typecheck
|
|
run: pnpm typecheck
|
|
|
|
- name: Lint
|
|
run: pnpm lint && pnpm format --check
|
|
|
|
- name: Test
|
|
run: pnpm test
|