Multiple owners/maintainers #481
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
max-parallel: 1 | |
matrix: | |
mops-version: [ic-mops@1.0.0, ./cli/dist] | |
moc-version: [0.11.1] | |
node-version: [20] | |
runs-on: ubuntu-latest | |
name: 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' | |
- uses: oven-sh/setup-bun@v1.1.1 | |
- uses: dfinity/setup-dfx@main | |
- 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 | |
run: bun 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: Select moc version | |
run: mops toolchain use moc ${{ matrix.moc-version }} | |
- name: Run replica | |
run: npm run replica | |
- name: Deploy backend | |
run: npm run deploy-local | |
- name: Build frontend | |
run: npm run build-frontend | |
- name: Build docs | |
run: npm run build-docs | |
- name: Build blog | |
run: npm run build-blog | |
- name: Build CLI releases | |
run: npm run build-cli-releases |