refactor: redesign instagram api #342
Workflow file for this run
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: 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 |