Feature/gho 61 #18
Workflow file for this run
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
name: build | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
types: [opened, reopened, synchronize] | |
workflow_dispatch: # This will enable the on-demand action | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node: [20] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: mymindstorm/setup-emsdk@v12 | |
- name: 'yarn cache' | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.yarn | |
~/node_modules | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Install | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test | |
- name: Bench | |
run: yarn test bench |