Skip to content

fix: cors

fix: cors #407

Workflow file for this run

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 wget && \
wget -O /tmp/cargo-make.zip https://github.com/sagiegurari/cargo-make/releases/download/0.37.15/cargo-make-v0.37.15-x86_64-unknown-linux-gnu.zip && \
sudo unzip /tmp/cargo-make.zip -d /tmp && \
sudo mv /tmp/cargo-make-v0.37.15-x86_64-unknown-linux-gnu/cargo-make $HOME/.cargo/bin/cargo-make && \
sudo chmod +x $HOME/.cargo/bin/cargo-make
- name: Install dfx
uses: dfinity/setup-dfx@main
with:
dfx-version: 0.24.1
- name: Install SNS
run: dfx extension install sns
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
target: wasm32-unknown-unknown
- name: Set Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: build
run: cargo make dfx-setup && cargo make dfx-build
- name: format
run: cargo make check-format
- name: lint
run: cargo make lint
- name: Unit Tests
run: cargo make test
- name: Deploy local
run: cargo make deploy-local
- name: Integration Tests
run: cargo make integration-tests