Skip to content

Feature/uniswap (#2) #2

Feature/uniswap (#2)

Feature/uniswap (#2) #2

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
permissions:
contents: write
env:
FOUNDRY_PROFILE: ci
jobs:
build-foundry:
name: Foundry project
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Run Forge fmt
run: |
forge fmt
id: fmt
- name: Run Forge tests
run: |
forge test -vvv
id: test
- name: Generate Forge snapshot
run: |
forge snapshot
id: snapshot
- name: Generate a changelog
uses: orhun/git-cliff-action@v2
id: git-cliff
if: startsWith(github.ref, 'refs/tags/')
with:
config: cliff.toml
args: -vv --latest --strip header
env:
OUTPUT: CHANGES.md
- name: Debug changelog output
run: echo "${{ steps.git-cliff.outputs.content }}"
if: startsWith(github.ref, 'refs/tags/')
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: ${{ steps.git-cliff.outputs.content }}