Skip to content

Update launch command #130

Update launch command

Update launch command #130

Workflow file for this run

name: Build (main)
on:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
YARN_CACHE_FOLDER: ./.yarn/cache
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "20"
cache: "yarn"
- name: install
run: yarn install
- name: build
run: yarn build
test:
runs-on: ubuntu-latest
env:
YARN_CACHE_FOLDER: ./.yarn/cache
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "20"
cache: "yarn"
- name: install
run: yarn install
- name: copy env file
run: cp .example.env .env
- name: test
run: yarn test --forceExit --coverage
env:
# Current max memory size of Linux hosted runner is 7 GB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: "--max-old-space-size=5120"
- name: format code coverage
uses: xylabs/[email protected]
with:
subcommand: "format-coverage -t lcov ./coverage/lcov.info"
# TODO: Setup coverage project on Code Climate
# - name: upload code coverage
# uses: xylabs/[email protected]
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# with:
# subcommand: "upload-coverage"