Rolled back II version because latest version broke login locally #5
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
name: "PR Build" | |
on: | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build-canister: | |
runs-on: ubuntu-latest | |
environment: | |
name: ${{ github.ref_name }} | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: yarn install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install | |
- name: Install dfx | |
run: | | |
DFX_VERSION=0.14.3 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" | |
dfx --version | |
- name: Set up dfx identity | |
run: | | |
mkdir -p ~/.config/dfx/identity/default/ | |
echo "$IC_IDENTITY_FILE" > ~/.config/dfx/identity/default/identity.pem | |
dfx identity get-principal | |
cat ~/.config/dfx/identity/default/identity.pem | |
env: | |
IC_IDENTITY_FILE: ${{ secrets.IC_IDENTITY_FILE_QA }} | |
- name: Install mops | |
run: | | |
npm i ic-mops -g | |
mops -v | |
mops install | |
- name: dfx start | |
run: | | |
dfx start --background | |
- name: Build BE canisters | |
run: | | |
source scripts/deployment/build_utils.sh | |
source scripts/utils.sh | |
DEV_ENV=qa create_canisters qa && build_be_canisters_quick qa local | |
- name: generate declaration | |
run: | | |
source scripts/utils.sh | |
generate_declarations qa | |
- name: Build FE canisters | |
run: | | |
source scripts/deployment/build_utils.sh | |
source scripts/utils.sh | |
build_fe_canisters qa | |
- name: Check result | |
run: | | |
tree .dfx -P '*.wasm' |