Skip to content

Commit

Permalink
Addid github actions "Integration tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
jbernal87 committed Feb 23, 2024
1 parent 09dc8cc commit 2f494c9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/Basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.0
toolchain: 1.73.0
target: wasm32-unknown-unknown
override: true

Expand All @@ -41,7 +41,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: unit-test
toolchain: 1.72.0
toolchain: 1.73.0
args: --locked
env:
RUST_BACKTRACE: 1
Expand All @@ -65,20 +65,20 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.0
toolchain: 1.73.0
override: true
components: rustfmt, clippy

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
toolchain: 1.72.0
toolchain: 1.73.0
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
toolchain: 1.72.0
toolchain: 1.73.0
args: -- -D warnings
39 changes: 39 additions & 0 deletions .github/workflows/integration_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml

on:
push:
pull_request:
types: [opened]

name: integration tests

jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.73.0
target: wasm32-unknown-unknown
override: true
components: llvm-tools-preview

- name: Compile WASM contracts
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target wasm32-unknown-unknown --locked --package grid
env:
RUSTFLAGS: "-C link-arg=-s"

- name: Run Integration Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --features integration
4 changes: 2 additions & 2 deletions packages/injective-protobuf/src/proto/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @generated

pub mod account;
pub mod auth;
pub mod coin;
pub mod distribution;
pub mod exchange;
pub mod oracle;
pub mod tx;
pub mod oracle;
pub mod account;

0 comments on commit 2f494c9

Please sign in to comment.