Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 20, 2024
0 parents commit 0cef146
Show file tree
Hide file tree
Showing 27 changed files with 4,985 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: build-test

on:
pull_request:
paths-ignore:
- "*.md"
push:
paths-ignore:
- "*.md"

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y libssl-dev pkg-config jq && \
cargo install cargo-make && \
wget https://download.dfinity.systems/ic/69e1408347723dbaa7a6cd2faa9b65c42abbe861/openssl-static-binaries/x86_64-linux/pocket-ic.gz && \
gzip -d pocket-ic.gz && \
chmod +x pocket-ic && \
mv pocket-ic ./integration-tests/pocket-ic
- name: Install dfx
run: echo y | sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
target: wasm32-unknown-unknown
- name: Unit Tests
run: cargo make test
- name: Deploy local
run: cargo make deploy-local
- name: Integration Tests
run: cargo make integration-tests
- name: Format
run: cargo make check-format
- name: Lint
run: cargo make lint
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
# Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

.env

# Mac OSX temporary files
.DS_Store
**/.DS_Store

# dfx temp files
!.dfx/local/canisters/xrc/xrc.wasm
.dfx/

integration-tests/pocket-ic

Loading

0 comments on commit 0cef146

Please sign in to comment.