Version Packages (#224) #66
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: Courier Vue Tests | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Build courier-vue dependencies | |
| run: | | |
| yarn workspace @trycourier/courier-js run build | |
| yarn workspace @trycourier/courier-ui-core run build | |
| yarn workspace @trycourier/courier-ui-inbox run build | |
| yarn workspace @trycourier/courier-ui-toast run build | |
| yarn workspace @trycourier/courier-ui-preferences run build | |
| - name: Run courier-vue tests | |
| run: yarn workspace @trycourier/courier-vue run test | |
| env: | |
| JWT: ${{ secrets.JWT }} | |
| USER_ID: ${{ secrets.USER_ID }} | |
| COURIER_REST_URL: ${{ secrets.COURIER_REST_URL }} | |
| COURIER_GRAPHQL_URL: ${{ secrets.COURIER_GRAPHQL_URL }} | |
| INBOX_GRAPHQL_URL: ${{ secrets.INBOX_GRAPHQL_URL }} | |
| INBOX_WEBSOCKET_URL: ${{ secrets.INBOX_WEBSOCKET_URL }} | |
| TOPIC_ID: ${{ secrets.TOPIC_ID }} |