From 0615ccfd224e13cf3d715d185d59314450991449 Mon Sep 17 00:00:00 2001 From: kata Date: Wed, 25 Jan 2023 14:31:22 +0800 Subject: [PATCH] add test github action config --- .github/workflows/test.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..3016fd0 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,33 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Install yarn + run: npm install -g yarn + - name: Install dependencies + run: yarn + - name: Install Rust + run: curl https://sh.rustup.rs -sSf | sh -s -- -y + - name: Setup environment + run: source $HOME/.cargo/env + - name: Clone circom + run: git clone https://github.com/iden3/circom.git + - name: Build circom + working-directory: ./circom + run: cargo build --release + - name: Install circom + working-directory: ./circom + run: cargo install --force + - name: Run tests + run: yarn test