js-waku/.github/workflows/webchat-ci.yml

44 lines
862 B
YAML

name: Webchat CI
on:
push:
branches:
- 'main'
- 'staging'
- 'trying'
pull_request:
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: node-v1-${{ hashFiles('**/package-lock.json') }}
- name: "[js-waku] install using npm ci"
uses: bahmutov/npm-install@v1
- name: "[js-waku] build"
run: npm run build
- name: install using npm ci
uses: bahmutov/npm-install@v1
with:
working-directory: web-chat
- name: test
run: npm run test
working-directory: web-chat