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: Setup, test and build | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| jobs: | ||
| setup: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install root dependencies | ||
| run: yarn | ||
| build: | ||
| needs: setup | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Full debug | ||
| run: | | ||
| pwd | ||
| ls -la | ||
| echo "Parent dir:" | ||
| ls -la .. | ||
| echo "Grandparent dir:" | ||
| ls -la ../.. | ||
| - name: Build | ||
| run: | | ||
| yarn build | ||
| - name: Check TS declaration files | ||
| run: | | ||
| [[ -f react/dist/index.d.ts ]] | ||
| test: | ||
| needs: setup | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Run react unit tests | ||
| run: yarn test | ||