fix: set XDG_CONFIG_HOME and XDG_CACHE_HOME to temp directory (#1912) #448
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: Mermaid CI | |
| on: | |
| push: | |
| paths: | |
| - 'mermaid/**' | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - 'mermaid/**' | |
| branches: | |
| - '*' | |
| jobs: | |
| mermaid-ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 'Setup Node.js 22' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install Node dependencies | |
| run: npm i | |
| working-directory: mermaid | |
| - name: Lint & tests | |
| run: npm run lint && npm t | |
| working-directory: mermaid |