test: add sdk integration tests for core flows #5
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: Integration Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Run integration tests | |
| env: | |
| API_BASE_URL: ${{ vars.API_BASE_URL }} | |
| SERVICE_ID: ${{ vars.SERVICE_ID }} | |
| SERVICE_TOKEN: ${{ secrets.SERVICE_TOKEN }} | |
| ORG_TOKEN: ${{ secrets.ORG_TOKEN }} | |
| run: npx vitest run |