Merge pull request #46 from causa-io/chore/v0.7.0 #17
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: π· CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| tags: [v*] | |
| jobs: | |
| test: | |
| name: π§ͺ Build and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: β¬οΈ Checkout | |
| uses: actions/checkout@v6 | |
| - name: π¨ Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: π¨ Install Causa | |
| run: npm install -g @causa/cli | |
| - name: π¨ Restore Causa modules | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| .causa/package* | |
| .causa/node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('causa.yaml') }} | |
| - name: π Initialize | |
| run: cs init | |
| - name: π± Build | |
| run: cs build | |
| - name: π§ͺ Test | |
| run: cs test | |
| - name: π¨ Lint | |
| run: cs lint | |
| - name: π Dependency check | |
| run: cs dep check | |
| publish: | |
| name: π Publish | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: startsWith(github.ref, 'refs/tags/') | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: β¬οΈ Checkout | |
| uses: actions/checkout@v6 | |
| - name: π¨ Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: π¨ Install Causa | |
| run: npm install -g @causa/cli | |
| - name: π¨ Restore Causa modules | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| .causa/package* | |
| .causa/node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('causa.yaml') }} | |
| - name: π Initialize | |
| run: cs init | |
| - name: π Publish | |
| run: cs publish -t semantic |