chore(deps): update dependency vitest to v4 #137
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test-multi-platform: | |
| if: github.ref == 'refs/heads/main' | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Stencila on ${{ matrix.os }} | |
| uses: ./ | |
| with: | |
| run: --version | |
| id: install | |
| - name: Verify installation | |
| run: stencila --version | |
| - name: Check output version | |
| run: echo "Installed version ${{ steps.install.outputs.version }}" | |
| - name: Test caching of .stencila directory | |
| uses: ./ | |
| with: | |
| run: init | |
| test-ubuntu: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Required for creating releases | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Run linting and type checking | |
| run: make lint | |
| - name: Run tests | |
| run: make test | |
| - name: Test rendering a document | |
| uses: ./ | |
| with: | |
| run: "--version" | |
| lint: test.smd | |
| execute: test.smd | |
| render: test.smd test.json test.md test.docx | |
| convert: test.smd test.myst | |
| assets: test.* | |
| releases: test.* | |
| release-name: "{{ owner }}/{{ repo }} {{ tag }}" | |
| release-filenames: "{{ filestem }}-{{ datetime }}.{{ fileext }}" | |
| artifact-name: stored-assets | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for creating releases | |
| - name: Test continue-on-error | |
| uses: ./ | |
| with: | |
| run: nonexistent-command | |
| lint: test-lint.smd | |
| continue-on-error: true | |
| continue-on-error: true # Don't fail the workflow when this step fails |