Skip to content

Commit 0cd084b

Browse files
authored
Merge pull request #5 from CosmosContracts/update-token-bindings
Update token bindings to work with Osmosis
2 parents 5299b86 + ea4fb3e commit 0cd084b

File tree

14 files changed

+284
-238
lines changed

14 files changed

+284
-238
lines changed

.github/workflows/ci.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
2+
3+
on: [push, pull_request]
4+
5+
name: Basic
6+
7+
jobs:
8+
test:
9+
name: Test Suite
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v2
14+
15+
- name: Install latest stable toolchain
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
profile: minimal
19+
toolchain: stable
20+
target: wasm32-unknown-unknown
21+
override: true
22+
23+
- name: Run tests
24+
uses: actions-rs/cargo@v1
25+
with:
26+
toolchain: stable
27+
command: test
28+
args: --locked
29+
env:
30+
RUST_BACKTRACE: 1
31+
32+
# - name: Compile WASM contract
33+
# uses: actions-rs/cargo@v1
34+
# with:
35+
# toolchain: stable
36+
# command: wasm
37+
# args: --locked
38+
# env:
39+
# RUSTFLAGS: "-C link-arg=-s"
40+
41+
lints:
42+
name: Lints
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout sources
46+
uses: actions/checkout@v2
47+
48+
- name: Install stable toolchain
49+
uses: actions-rs/toolchain@v1
50+
with:
51+
profile: minimal
52+
toolchain: stable
53+
override: true
54+
components: rustfmt, clippy
55+
56+
- name: Run cargo fmt
57+
uses: actions-rs/cargo@v1
58+
with:
59+
toolchain: stable
60+
command: fmt
61+
args: --all -- --check
62+
63+
- name: Run cargo clippy
64+
uses: actions-rs/cargo@v1
65+
with:
66+
toolchain: stable
67+
command: clippy
68+
args: --all-targets -- -D warnings
69+
70+
# - name: Generate Schema
71+
# run: ./scripts/schema.sh
72+
73+
# - name: Show Schema changes
74+
# run: git status --porcelain
75+
76+
# - name: Schema Changes
77+
# # fails if any changes not committed
78+
# run: test -z "$(git status --porcelain)"

0 commit comments

Comments
 (0)