Nestify #164
This file contains 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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.5.1 | |
cache: 'yarn' | |
- run: mkdir ./packages/client/reports | |
- run: yarn install | |
- name: Install Playwright Browsers | |
run: yarn workspace @ts-react-tdd/e2e playwright install --with-deps | |
- run: docker compose -f packages/e2e/docker-compose.yml up -d | |
- run: yarn dlx wait-on tcp:27017 | |
- run: yarn dev & | |
- run: yarn dlx wait-on tcp:8081 | |
- run: yarn dlx wait-on tcp:8082 | |
- run: yarn dlx wait-on tcp:8083 | |
- run: set -o pipefail; yarn test:ci | bash ./predate.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: playwright-report | |
path: packages/e2e/(playwright-report|test-results)/ | |
retention-days: 30 |