Test #178
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: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
| - name: Install Go | |
| uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
| with: | |
| go-version-file: provider/go.mod | |
| cache: true | |
| cache-dependency-path: | | |
| examples/go/*.sum | |
| provider/*.sum | |
| sdk/*.sum | |
| - name: Install Node.js | |
| uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
| with: | |
| node-version: '20' | |
| - name: Install Yarn | |
| run: npm install -g yarn | |
| - name: Build Provider | |
| run: make provider | |
| - name: Build Go SDK | |
| run: make go_sdk | |
| - name: Build Node.js SDK | |
| run: make nodejs_sdk | |
| - name: Build Node.js SDK (compile TypeScript) | |
| run: | | |
| cd sdk/nodejs | |
| yarn install | |
| yarn run tsc | |
| - name: Install Provider | |
| run: make install | |
| - name: PulumiUp | |
| id: up | |
| run: make up | |
| env: | |
| TURSO_ORGANIZATION: ${{ secrets.TURSO_ORGANIZATION }} | |
| TURSO_API_TOKEN: ${{ secrets.TURSO_API_TOKEN }} | |
| - name: PulumiDown | |
| id: down | |
| run: make down | |
| env: | |
| TURSO_ORGANIZATION: ${{ secrets.TURSO_ORGANIZATION }} | |
| TURSO_API_TOKEN: ${{ secrets.TURSO_API_TOKEN }} |