Skip to content

build(deps): bump github.com/golangci/golangci-lint from 1.55.2 to 1.58.2 in /apis #429

build(deps): bump github.com/golangci/golangci-lint from 1.55.2 to 1.58.2 in /apis

build(deps): bump github.com/golangci/golangci-lint from 1.55.2 to 1.58.2 in /apis #429

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