-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snake case for canister names; fix CI
- Loading branch information
1 parent
230c57a
commit d3d600d
Showing
42 changed files
with
95 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
name: CI Build and Test (Mainnet setup) | ||
# name: CI Build and Test (Mainnet setup) | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
# on: | ||
# push: | ||
# branches: [ "main" ] | ||
# pull_request: | ||
# branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
# env: | ||
# CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
# jobs: | ||
|
||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
include: | ||
- os: ubuntu-latest | ||
file_suffix: "-linux" | ||
- os: macos-latest | ||
file_suffix: "-mac" | ||
# build: | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-latest, macos-latest] | ||
# include: | ||
# - os: ubuntu-latest | ||
# file_suffix: "-linux" | ||
# - os: macos-latest | ||
# file_suffix: "-mac" | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Set up environment | ||
run: | | ||
echo "Setting up on ${{ matrix.os }}" | ||
mv ic-test-machine-binaries/ic-test-state-machine${{ matrix.file_suffix }} ic-test-state-machine | ||
# steps: | ||
# - name: Check out repository code | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: 'recursive' | ||
# - name: Set up environment | ||
# run: | | ||
# echo "Setting up on ${{ matrix.os }}" | ||
# mv ic-test-machine-binaries/ic-test-state-machine${{ matrix.file_suffix }} ic-test-state-machine | ||
|
||
- name: Install dfx | ||
uses: dfinity/setup-dfx@main | ||
- name: Confirm successful installation | ||
run: dfx --version | ||
- name: Install Rust target | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Install dependencies | ||
run: | | ||
npm install | ||
cargo install ic-wasm | ||
- name: Create canisters and start local ICP replica | ||
run: | | ||
dfx start --clean --background | ||
dfx canister create --all | ||
- name: Deploy Civic Canister | ||
run: src/civic_canister_backend/deploy-civic.sh --network ic | ||
- name: Set env variables | ||
run: | | ||
# export VITE_LOCAL_CIVIC_FRONTEND_CANISTER_ID=$(dfx canister id civic-canister-frontend) | ||
# export VITE_LOCAL_INTERNET_IDENTITY_CANISTER_ID=$(dfx canister id internet_identity) | ||
# export VITE_LOCAL_CIVIC_BACKEND_CANISTER_ID=$(dfx canister id civic_canister_backend) | ||
- name: Deploy Canisters | ||
run: | | ||
dfx deploy internet_identity | ||
dfx deploy civic-canister-frontend | ||
- name: Run tests | ||
run: | | ||
chmod +x ic-test-state-machine | ||
cargo test --test integration_tests | ||
- run: echo "🐧 This job's status is ${{ job.status }}." | ||
# - name: Install dfx | ||
# uses: dfinity/setup-dfx@main | ||
# - name: Confirm successful installation | ||
# run: dfx --version | ||
# - name: Install Rust target | ||
# run: rustup target add wasm32-unknown-unknown | ||
# - name: Install dependencies | ||
# run: | | ||
# npm install | ||
# cargo install ic-wasm | ||
# - name: Create canisters and start local ICP replica | ||
# run: | | ||
# dfx start --clean --background | ||
# dfx canister create --all | ||
# - name: Deploy Civic Canister | ||
# run: src/civic_canister_backend/deploy-civic.sh --network ic | ||
# - name: Set env variables | ||
# run: | | ||
# # export VITE_LOCAL_CIVIC_FRONTEND_CANISTER_ID=$(dfx canister id civic_canister_frontend) | ||
# # export VITE_LOCAL_INTERNET_IDENTITY_CANISTER_ID=$(dfx canister id internet_identity) | ||
# # export VITE_LOCAL_CIVIC_BACKEND_CANISTER_ID=$(dfx canister id civic_canister_backend) | ||
# - name: Deploy Canisters | ||
# run: | | ||
# dfx deploy internet_identity | ||
# dfx deploy civic_canister_frontend | ||
# - name: Run tests | ||
# run: | | ||
# chmod +x ic-test-state-machine | ||
# cargo test --test integration_tests | ||
# - run: echo "🐧 This job's status is ${{ job.status }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
VITE_LOCAL_INTERNET_IDENTITY_CANISTER_ID=avqkn-guaaa-aaaaa-qaaea-cai | ||
VITE_LOCAL_CIVIC_FRONTEND_CANISTER_ID=by6od-j4aaa-aaaaa-qaadq-cai | ||
VITE_LOCAL_CIVIC_BACKEND_CANISTER_ID=b77ix-eeaaa-aaaaa-qaada-cai | ||
VITE_LOCAL_HOST=localhost:4943 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
VITE_LOCAL_HOST=localhost:4943 | ||
VITE_LOCAL_INTERNET_IDENTITY_CANISTER_ID=avqkn-guaaa-aaaaa-qaaea-cai | ||
VITE_LOCAL_RELYING_FRONTEND_CANISTER_ID=asrmz-lmaaa-aaaaa-qaaeq-cai | ||
VITE_LOCAL_CIVIC_BACKEND_CANISTER_ID=b77ix-eeaaa-aaaaa-qaada-cai |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.