Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tasiov committed Nov 27, 2023
1 parent a42f28f commit 200fb00
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 59 deletions.
11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

64 changes: 16 additions & 48 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,18 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.2
target: wasm32-unknown-unknown
override: true

- name: Cache Cargo dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Compile WASM contract
uses: actions-rs/cargo@v1
- name: Use Node.js
uses: actions/setup-node@v3
with:
command: wasm

- name: Unit Tests
run: cargo unit-test

- name: Install check_contract
run: cargo install --debug --version 1.0.0 --features iterator --example check_contract -- cosmwasm-vm

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: extractions/setup-just@v1

- name: Checkout sources
uses: actions/checkout@v2
node-version: '18.x'

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.2
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy

- name: Cache Cargo dependencies
uses: actions/cache@v2
Expand All @@ -63,20 +32,10 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: -F library --no-deps

- name: Run cargo clippy
run: just lint

- name: Generate Schema
run: just schema
- name: Run codegen
run: npm run codegen

- name: Schema Changes
# fails if any changes not committed
- name: Check schema changes
run: |
CHANGES_IN_REPO=$(git status --porcelain)
if [[ -n "$CHANGES_IN_REPO" ]]; then
Expand All @@ -85,6 +44,15 @@ jobs:
exit 1
fi
- name: Run lint
run: npm run lint

- name: Run build
run: npm run build

- name: Run unit-tests
run: npm run test:unit

coverage:
name: Coverage
runs-on: ubuntu-latest
Expand Down

0 comments on commit 200fb00

Please sign in to comment.