Skip to content

build(github-actions): prerelease only on main, dev, develop, hotfix,… #9

build(github-actions): prerelease only on main, dev, develop, hotfix,…

build(github-actions): prerelease only on main, dev, develop, hotfix,… #9

name: Build and test - staging
on:
pull_request:
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
environment: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test