Chore/ci workflows #1
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: PR test | |
| on: [pull_request] | |
| concurrency: | |
| group: ${{ github.ref }}-pr-test | |
| cancel-in-progress: true | |
| jobs: | |
| check-code: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check format | |
| run: npm run check-format | |
| - name: Lint | |
| run: npm run lint | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| working-directory: packages/sdk | |
| run: npm ci | |
| - name: Unit tests | |
| working-directory: packages/sdk | |
| run: npm run test:unit | |
| - name: x | |
| working-directory: packages/sdk | |
| run: npm run start-test-stack | |
| - name: Test e2e | |
| working-directory: packages/sdk | |
| run: npm run test:e2e | |
| - name: Stop e2e test stack | |
| working-directory: packages/sdk | |
| if: always() | |
| run: npm run stop-test-stack | |
| npm-dry-run: | |
| uses: ./.github/workflows/reusable-npm.yml | |
| with: | |
| dry-run: true |