Support emit custom message #1064
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Test Javascript | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [15.5.0] | |
defaults: | |
run: | |
working-directory: javascript | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3.6.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache dependencies | |
uses: actions/cache@v3.2.3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: npm ci | |
- run: npm run check-format | |
- run: npm run test | |
- run: npm run build | |
- name: Save build output | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: built-output | |
path: ./javascript/dist | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" |