mirror of
https://github.com/fluencelabs/examples
synced 2025-06-10 16:41:21 +00:00
Trying matrix for working directory
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
name: Run tests for "browser to browser example"
|
name: Run tests for js-based projects
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -6,13 +6,20 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./quickstart/1-browser-to-browser
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x]
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -30,6 +37,7 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- name: run tests
|
- name: run tests
|
||||||
|
working-directory: ${{ matrix.working-directory }}
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
run: |
|
run: |
|
38
.github/workflows/test-template.yml.off
vendored
38
.github/workflows/test-template.yml.off
vendored
@ -1,38 +0,0 @@
|
|||||||
name: Run tests for <project name>
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: <path/to/project>
|
|
||||||
|
|
||||||
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
|
|
Reference in New Issue
Block a user