|
| 1 | +name: Test E2E Packaged |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [main, develop] |
| 6 | + push: |
| 7 | + branches: [main, develop] |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +env: |
| 11 | + TEST_PACKAGED: true |
| 12 | + GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} |
| 13 | + GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} |
| 14 | + RUDDERSTACK_CLIENT_ID: ${{ secrets.RUDDERSTACK_CLIENT_ID }} |
| 15 | + |
| 16 | +jobs: |
| 17 | + linux: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - name: Checkout repository. |
| 21 | + uses: actions/checkout@v3 |
| 22 | + with: |
| 23 | + submodules: 'recursive' |
| 24 | + token: ${{ secrets.pat }} |
| 25 | + - name: Setup NodeJS |
| 26 | + uses: actions/setup-node@v2 |
| 27 | + with: |
| 28 | + node-version: '18' |
| 29 | + - name: Reconfigure git to use HTTP authentication |
| 30 | + run: > |
| 31 | + git config --global url."https://github.com/".insteadOf |
| 32 | + ssh://git@github.com/ |
| 33 | + - name: Authenticate with private NPM package |
| 34 | + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc |
| 35 | + - name: Install modules. |
| 36 | + run: yarn |
| 37 | + env: |
| 38 | + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 |
| 39 | + - name: Build and Test |
| 40 | + run: yarn test:e2ePackaged-ci |
| 41 | + |
| 42 | + mac: |
| 43 | + runs-on: macos-latest |
| 44 | + steps: |
| 45 | + - name: Checkout repository. |
| 46 | + uses: actions/checkout@v3 |
| 47 | + with: |
| 48 | + submodules: 'recursive' |
| 49 | + token: ${{ secrets.pat }} |
| 50 | + - name: Setup NodeJS |
| 51 | + uses: actions/setup-node@v2 |
| 52 | + with: |
| 53 | + node-version: '18' |
| 54 | + - name: Reconfigure git to use HTTP authentication |
| 55 | + run: > |
| 56 | + git config --global url."https://github.com/".insteadOf |
| 57 | + ssh://git@github.com/ |
| 58 | + - name: Authenticate with private NPM package |
| 59 | + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc |
| 60 | + - name: Install modules. |
| 61 | + run: yarn |
| 62 | + env: |
| 63 | + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 |
| 64 | + - name: Build and Test |
| 65 | + run: yarn test:e2ePackaged-ci |
| 66 | + env: |
| 67 | + GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} |
| 68 | + GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} |
| 69 | + CSC_IDENTITY_AUTO_DISCOVERY: false |
| 70 | + |
| 71 | + windows: |
| 72 | + runs-on: windows-latest |
| 73 | + steps: |
| 74 | + - name: Checkout repository. |
| 75 | + uses: actions/checkout@v3 |
| 76 | + with: |
| 77 | + submodules: 'recursive' |
| 78 | + token: ${{ secrets.pat }} |
| 79 | + - name: Setup NodeJS |
| 80 | + uses: actions/setup-node@v2 |
| 81 | + with: |
| 82 | + node-version: '18' |
| 83 | + - name: Reconfigure git to use HTTP authentication |
| 84 | + run: > |
| 85 | + git config --global url."https://github.com/".insteadOf |
| 86 | + ssh://git@github.com/ |
| 87 | + - name: Authenticate with private NPM package |
| 88 | + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc |
| 89 | + - name: Install modules. |
| 90 | + run: npm i --legacy-peer-deps |
| 91 | + env: |
| 92 | + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 |
| 93 | + - name: Build and Test |
| 94 | + run: yarn test:e2ePackaged-ci |
| 95 | + env: |
| 96 | + GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} |
| 97 | + GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} |
0 commit comments