feat: canister logs extensions #678
Workflow file for this run
This file contains hidden or 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: Build check | |
| on: | |
| pull_request: | |
| jobs: | |
| build: | |
| # Runs wherever preview-deployment.yml cannot. Fork PRs and Dependabot PRs | |
| # both get a read-only GITHUB_TOKEN with no access to secrets, so the | |
| # preview deploy fails on them; this plain build is their only check. | |
| if: >- | |
| github.event.pull_request.head.repo.full_name != github.repository || | |
| github.event.pull_request.user.login == 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| # Same set as preview-deployment.yml. .sources/motoko is required: pages | |
| # under docs/languages/motoko/ pull code via `file=<motokoExamples>/...` | |
| # includes, and without the submodule they render empty without failing | |
| # the build. | |
| - name: Initialize submodules | |
| run: | | |
| git config --global url."https://github.com/".insteadOf "git@github.com:" | |
| git submodule update --init --depth 1 .sources/examples .sources/motoko | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build |