Examples are at the root folder now

This commit is contained in:
Franck Royer 2022-06-17 10:55:51 +10:00
parent 97130af651
commit 47cc98f842
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ jobs:
id: use-yarn id: use-yarn
shell: bash shell: bash
run: echo "::set-output name=lockfile::$(ls yarn.lock 2> /dev/null)" run: echo "::set-output name=lockfile::$(ls yarn.lock 2> /dev/null)"
working-directory: examples/${{ matrix.example }} working-directory: ${{ matrix.example }}
- name: (npm) Cache npm cache - name: (npm) Cache npm cache
if: steps.use-yarn.outputs.lockfile != 'yarn.lock' if: steps.use-yarn.outputs.lockfile != 'yarn.lock'
@ -45,19 +45,19 @@ jobs:
- name: (npm) ${{ matrix.example }} install using npm i - name: (npm) ${{ matrix.example }} install using npm i
if: steps.use-yarn.outputs.lockfile != 'yarn.lock' if: steps.use-yarn.outputs.lockfile != 'yarn.lock'
run: npm install run: npm install
working-directory: examples/${{ matrix.example }} working-directory: ${{ matrix.example }}
- name: (npm) ${{ matrix.example }} test - name: (npm) ${{ matrix.example }} test
if: steps.use-yarn.outputs.lockfile != 'yarn.lock' if: steps.use-yarn.outputs.lockfile != 'yarn.lock'
run: npm run test run: npm run test
working-directory: examples/${{ matrix.example }} working-directory: ${{ matrix.example }}
- name: (yarn) ${{ matrix.example }} install using yarn - name: (yarn) ${{ matrix.example }} install using yarn
if: steps.use-yarn.outputs.lockfile == 'yarn.lock' if: steps.use-yarn.outputs.lockfile == 'yarn.lock'
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
working-directory: examples/${{ matrix.example }} working-directory: ${{ matrix.example }}
- name: (yarn) ${{ matrix.example }} test - name: (yarn) ${{ matrix.example }} test
if: steps.use-yarn.outputs.lockfile == 'yarn.lock' if: steps.use-yarn.outputs.lockfile == 'yarn.lock'
run: echo "test skipped" # yarn test; tracked with https://github.com/status-im/js-waku/issues/563 run: echo "test skipped" # yarn test; tracked with https://github.com/status-im/js-waku/issues/563
working-directory: examples/${{ matrix.example }} working-directory: ${{ matrix.example }}