Skip to content

build: add GitHub action for build #1

build: add GitHub action for build

build: add GitHub action for build #1

Workflow file for this run

name: Build
on: [push]
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install --no-optional
- name: Build
run: npm run build
- name: Coveralls
if: runner.os == 'Linux'
uses: coverallsapp/[email protected]
with:
github-token: ${{ github.token }}
file: ./out/coverage/lcov.info