wip #1120
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: | ||
| push: | ||
| env: | ||
| HUSKY: 0 | ||
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '20.x' | ||
| cache: 'yarn' | ||
| - name: Installing Dependencies | ||
| run: yarn install | ||
| - name: Building App | ||
| run: yarn build | ||
| env: | ||
| REACT_APP_SEGMENT_WRITE_KEY: ${{ secrets.REACT_APP_SEGMENT_WRITE_KEY }} | ||
| - name: Deploy with gh-pages | ||
| run: | | ||
| git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
| npx gh-pages -d build -u "github-actions-bot <[email protected]>" | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| analytics-node: | ||
| name: 'analytics-node QA (Node.js v${{ matrix.node-version }})' | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [18] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'yarn' | ||
| - run: yarn install --immutable | ||
| - name: Turbo cache | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: node_modules/.cache/turbo | ||
| key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-turbo- | ||
| - run: yarn turbo run --filter='./packages/node*' lint | ||
| - run: yarn turbo run --filter='./packages/node*' test | ||
| - run: yarn turbo run --filter='./packages/node-integration-tests' test:perf-and-durability | ||
| analytics-node-cf-workers: | ||
| name: 'analytics-node QA (Cloudflare Workers)' | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [18] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'yarn' | ||
| - run: yarn install --immutable | ||
| - name: Turbo cache | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: node_modules/.cache/turbo | ||
| key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-turbo- | ||
| - run: yarn turbo run --filter='./packages/node-integration-tests' test:cloudflare-workers | ||
| consent-intg-tests: | ||
| name: Consent Integration Tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: browser-actions/setup-chrome@v1 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 16 # UPDATE TO NODE 20!!! | ||
| cache: 'yarn' | ||
| - run: yarn install --immutable | ||
| - name: Turbo cache | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: node_modules/.cache/turbo | ||
| key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-turbo- | ||
| - run: yarn turbo run --filter='consent-tools-integration-tests' test:int | ||