Fix build when version of base and react-components changed #20
Workflow file for this run
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: CI/CD | ||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
| jobs: | ||
| build-test: | ||
| name: Build & run unit Tests (${{ matrix.os }}, node-${{ matrix.node-version }}) | ||
| timeout-minutes: 60 | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest] | ||
| node-version: [22] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - name Copy config | ||
| run: | | ||
| cp config/package.json . | ||
| - name: Install npm dependencies and build "traceviewer-base" | ||
| working-directory: base | ||
| run: yarn --frozen-lockfile | ||
| - name: Install npm dependencies and build "traceviewer-react-components" | ||
| working-directory: react-components | ||
| run: yarn --frozen-lockfile | ||
| #- name: Run unit tests for "traceviewer-react-components" | ||
| # working-directory: react-components | ||
| # # admitedly a hack - these dependencies would be defined one level up, | ||
| # # which does not exist here | ||
| # run: | | ||
| # yarn add base [email protected] [email protected] @types/[email protected] [email protected] @types/[email protected] | ||
| # yarn test | ||