Feat/gas metering #205
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: Pull request checks | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
# Required to put a comment into the pull-request | |
pull-requests: write | |
steps: | |
- name: 📥 Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: 📥 Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: 1.2.0 | |
- name: 📥Install dependencies | |
# There is a bug with lockfile generation when using package overrides, so for now we | |
# install without the lockfile. :( | |
# run: bun install --frozen-lockfile | |
run: bun install | |
- name: 📥 Install Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: rustfmt clippy | |
target: wasm32-wasip1 wasm32-unknown-unknown | |
- name: 📋 Check formatting Biome | |
run: bunx biome check . | |
- name: 📋 Check formatting Rust | |
run: make fmt-check | |
- name: 📋 Clippy Check | |
run: make check | |
- name: 🔨 Build projects | |
run: bun run build | |
- name: 🧪 Run integration tests | |
run: bun run test |