diff --git a/.github/workflows/test-browser-to-browser.yml b/.github/workflows/test-js-projects.yml similarity index 58% rename from .github/workflows/test-browser-to-browser.yml rename to .github/workflows/test-js-projects.yml index 2ab1e0b..04bcce7 100644 --- a/.github/workflows/test-browser-to-browser.yml +++ b/.github/workflows/test-js-projects.yml @@ -1,4 +1,4 @@ -name: Run tests for "browser to browser example" +name: Run tests for js-based projects on: push: @@ -6,13 +6,20 @@ on: jobs: build: runs-on: ubuntu-latest - defaults: - run: - working-directory: ./quickstart/1-browser-to-browser strategy: matrix: node-version: [16.x] + working-directory: [ + "/quickstart/1-browser-to-browser", + "/quickstart/3-browser-to-service", + "/fluence-js-examples/hello-world", + "/fluence-js-examples/browser-example", + "/fluence-js-examples/node-example", + "/aqua-examples/echo-greeter/client-peer", + "/aqua-examples/price-oracle/client-peer", + "/aqua-examples/price-oracle/web" + ] steps: - uses: actions/checkout@v2 @@ -30,6 +37,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: run tests + working-directory: ${{ matrix.working-directory }} env: CI: true run: | diff --git a/.github/workflows/test-template.yml.off b/.github/workflows/test-template.yml.off deleted file mode 100644 index ad40408..0000000 --- a/.github/workflows/test-template.yml.off +++ /dev/null @@ -1,38 +0,0 @@ -name: Run tests for - -on: - push: - -jobs: - build: - runs-on: ubuntu-latest - defaults: - run: - working-directory: - - strategy: - matrix: - node-version: [16.x] - - steps: - - uses: actions/checkout@v2 - - - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-v1-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-v1-node-${{ matrix.node-version }} - - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - name: run tests - env: - CI: true - run: | - npm i - npm build - npm test