Skip to content

build(deps): bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.0 #422

build(deps): bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.0

build(deps): bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.0 #422

Workflow file for this run

name: Contract test
# Contract test runs `cargo check` and `cargo build` over the oracle contracts folder.
# This workflow is run on every pull request and push to main.
on:
pull_request:
push:
branches:
- main
- mainnet
defaults:
run:
working-directory: oracle-scripts
jobs:
Test:
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Compute diff 📜
uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.rs
Cargo.toml
Cargo.lock
- name: Setup Rust 🧰
if: env.GIT_DIFF
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Check and test 🧪
if: env.GIT_DIFF
run: |
RUSTFLAGS='-C link-arg=-s' cargo check
RUSTFLAGS='-C link-arg=-s' cargo test
Build:
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Compute diff 📜
uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.rs
Cargo.toml
Cargo.lock
- name: Setup Rust 🧰
if: env.GIT_DIFF
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
- name: Build 🔨
if: env.GIT_DIFF
run: |
RUSTFLAGS='-C link-arg=-s' cargo build --target wasm32-unknown-unknown --release