Last active
July 24, 2020 16:41
-
-
Save warrenday/17a02ac384783c7329ffd166282fb067 to your computer and use it in GitHub Desktop.
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: Test App | |
| on: [push] | |
| jobs: | |
| build: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [13.2.x] | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Run API in background | |
| working-directory: packages/api | |
| run: | | |
| yarn install | |
| yarn mock & | |
| env: | |
| PORT: 4000 | |
| - name: Run and test app | |
| working-directory: packages/client | |
| run: | | |
| yarn install | |
| yarn build | |
| yarn start & | |
| yarn test | |
| yarn cypress:run | |
| env: | |
| CI: true | |
| API_URI: http://localhost:4000/graphql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment