Skip to content

Merge branch 'pr-22' of https://github.com/NatLabs/icrc1 into pr-22 #154

Merge branch 'pr-22' of https://github.com/NatLabs/icrc1 into pr-22

Merge branch 'pr-22' of https://github.com/NatLabs/icrc1 into pr-22 #154

Workflow file for this run

name: Makefile CI
on: [push, pull_request_target]
jobs:
build:
runs-on: ubuntu-latest
name: Build and test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: aviate-labs/[email protected]
with:
dfx-version: 0.15.1
- name: Cache Node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install moc version manager
run: |
npm --yes -g i mocv
mocv use 0.9.1
export DFX_MOC_PATH=$(mocv bin current)/moc
- name: install mops
run: |
npm --yes -g i ic-mops
mops i
- name: Detect warnings
run: make no-warn
- name: Run Tests
run: |
make test
make actor-test
icrc1-ref-test:
runs-on: ubuntu-latest
name: ICRC-1 reference test
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: aviate-labs/[email protected]
with:
dfx-version: 0.15.1
- name: Install moc version manager
run: |
npm --yes -g i mocv
mocv use 0.9.1
export DFX_MOC_PATH=$(mocv bin current)/moc
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: install mops
run: |
npm --yes -g i ic-mops
mops i
- name: Run reference tests
run: |
echo "${{ secrets.IDENTITY_SSH }}" > ./identity.pem
dfx identity import icrc-ref-test ./identity.pem --storage-mode plaintext
dfx identity use icrc-ref-test
dfx identity whoami
make ref-test