Skip to content

Mars v2 on ntrn release. (#433) #1049

Mars v2 on ntrn release. (#433)

Mars v2 on ntrn release. (#433) #1049

Workflow file for this run

name: Scripts
on:
push:
branches:
- master
- main
- release/neutron
pull_request:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
jobs:
scripts:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts
steps:
- name: Checkout sources
uses: actions/checkout@v3
# install a specific version of Go to satisfy osmosis-test-tube
- uses: actions/setup-go@v5
with:
go-version: '1.21.7'
- name: Install cargo make
uses: davidB/rust-cargo-make@v1
- name: Install stable Rust
run: cd ../ && cargo make install-stable-for-scripts && cd scripts
# selecting a toolchain should happen before the plugin, as the cache uses the current rustc version as its cache key
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install yarn
run: npm install --global yarn
- name: Install dependencies
run: yarn install
# fails if schema changes not committed
- name: Generate latest schemas
run: |
yarn generate-types
git diff --exit-code
- name: Compile latest health computer helpers
run: yarn compile-health-all
- name: Check build
run: yarn build