2022-06-17 00:50:54 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
examples_build_and_test:
|
|
|
|
strategy:
|
2022-08-07 06:33:22 +00:00
|
|
|
fail-fast: false
|
2022-06-17 00:50:54 +00:00
|
|
|
matrix:
|
|
|
|
example:
|
|
|
|
[
|
|
|
|
eth-pm-wallet-encryption,
|
2022-08-08 02:47:28 +00:00
|
|
|
eth-pm,
|
|
|
|
relay-angular-chat,
|
2022-06-17 00:50:54 +00:00
|
|
|
relay-reactjs-chat,
|
|
|
|
store-reactjs-chat,
|
2022-08-08 02:47:28 +00:00
|
|
|
web-chat
|
2022-06-17 00:50:54 +00:00
|
|
|
]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-08-07 07:47:48 +00:00
|
|
|
- uses: pnpm/action-setup@v2.2.2
|
2022-06-17 00:50:54 +00:00
|
|
|
with:
|
2022-08-07 07:47:48 +00:00
|
|
|
version: 7
|
2022-06-17 00:50:54 +00:00
|
|
|
|
2022-08-07 07:47:48 +00:00
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: "16"
|
2022-08-08 02:43:12 +00:00
|
|
|
cache: "pnpm"
|
2022-08-07 23:58:16 +00:00
|
|
|
cache-dependency-path: "*/pnpm-lock.yaml"
|
2022-08-07 07:47:48 +00:00
|
|
|
|
2022-08-08 02:43:12 +00:00
|
|
|
- name: install
|
2022-08-07 07:47:48 +00:00
|
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
working-directory: ${{ matrix.example }}
|
|
|
|
|
2022-08-08 02:43:12 +00:00
|
|
|
- name: test
|
|
|
|
run: pnpm run test
|
2022-06-17 00:55:51 +00:00
|
|
|
working-directory: ${{ matrix.example }}
|