Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cicd #28

Merged
merged 4 commits into from
Aug 19, 2023
Merged

Cicd #28

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 64 additions & 66 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ concurrency:
cancel-in-progress: true

jobs:
build:
name: Build
circuits-test:
name: Circuits Test
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand All @@ -37,100 +38,97 @@ jobs:
run: yarn
- name: Build
run: yarn build
- uses: actions/upload-artifact@v3
with:
name: unirep-social
path: ./

circuits-test:
name: Circuits Test
runs-on: ubuntu-22.04
needs: build
steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Install node.js
# uses: actions/setup-node@v3
# with:
# node-version: '16'
# - name: Install circom
# run: |
# curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y
# source "$HOME/.cargo/env"
# ls -R
# cd /tmp
# git clone https://github.com/iden3/circom.git
# cd circom
# cargo build --release
# cargo install --path circom
# - name: Install packages
# run: yarn
- uses: actions/download-artifact@v3
with:
name: unirep-social
- name: Test
run: yarn circuits test

contracts-test:
name: Contracts Test
runs-on: ubuntu-22.04
needs: build
timeout-minutes: 30
steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Install node.js
# uses: actions/setup-node@v3
# with:
# node-version: '16'
# - name: Install packages
# run: yarn
- uses: actions/download-artifact@v3
- name: Check out repository code
uses: actions/checkout@v3
- name: Install node.js
uses: actions/setup-node@v3
with:
name: unirep-social
node-version: '16'
- name: Install circom
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
ls -R
cd /tmp
git clone https://github.com/iden3/circom.git
cd circom
cargo build --release
cargo install --path circom
- name: Install packages
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn contracts test

relay-test:
name: Relay Test
runs-on: ubuntu-22.04
needs: build
timeout-minutes: 30
steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Install node.js
# uses: actions/setup-node@v3
# with:
# node-version: '16'
# - name: Install packages
# run: yarn
- uses: actions/download-artifact@v3
- name: Check out repository code
uses: actions/checkout@v3
- name: Install node.js
uses: actions/setup-node@v3
with:
name: unirep-social
node-version: '16'
- name: Install circom
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
ls -R
cd /tmp
git clone https://github.com/iden3/circom.git
cd circom
cargo build --release
cargo install --path circom
- name: Install packages
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn relay test

frontend-test:
name: Frontend Test
runs-on: ubuntu-22.04
needs: build
timeout-minutes: 30
steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Install node.js
# uses: actions/setup-node@v3
# with:
# node-version: '16'
# - name: Install packages
# run: yarn
- uses: actions/download-artifact@v3
- name: Check out repository code
uses: actions/checkout@v3
- name: Install node.js
uses: actions/setup-node@v3
with:
name: unirep-social
node-version: '16'
- name: Install circom
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
ls -R
cd /tmp
git clone https://github.com/iden3/circom.git
cd circom
cargo build --release
cargo install --path circom
- name: Install packages
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn frontend test

lint:
name: Lint
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down