Skip to content

[backend] update default packages #650

[backend] update default packages

[backend] update default packages #650

Workflow file for this run

name: mops test
on:
push:
branches:
- main
- master
pull_request:
jobs:
test:
strategy:
max-parallel: 3
fail-fast: false
matrix:
mops-version: [./cli/dist, ic-mops@1.0.0, "https://cli.mops.one/versions/latest.tgz"]
moc-version: [0.11.1]
node-version: [18, 20, 22]
runner: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.runner }}
name: ${{ matrix.runner }}, node ${{ matrix.node-version }}, moc ${{ matrix.moc-version }}, ${{ matrix.mops-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Cache mops packages
uses: actions/cache@v4
with:
key: mops-packages-${{ runner.os }}-${{ hashFiles('mops.toml') }}
restore-keys: |
mops-packages-${{ runner.os }}-${{ hashFiles('mops.toml') }}
mops-packages-${{ runner.os }}
path: |
~/.cache/mops
~/Library/Caches/mops
- name: Install npm packages
if: ${{ matrix.mops-version == './cli/dist' }}
run: cd cli && npm install
- name: Build local cli
if: ${{ matrix.mops-version == './cli/dist' }}
run: cd cli && npm run prepare
- name: Install mops
run: npm i -g ${{ matrix.mops-version }}
- name: Install mops packages
run: mops install
- name: Print resolved mops packages
run: mops sources
- name: Select moc version
run: mops toolchain use moc ${{ matrix.moc-version }}
- name: Run tests
run: mops test