Skip to content

build: setup build and test workflow #2

build: setup build and test workflow

build: setup build and test workflow #2

Workflow file for this run

name: Build and Test
on:
push:
branches:
- "**"
env:
NODE_VERSION: 22
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout local
uses: actions/checkout@v3
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
node-version: ${{ env.NODE_VERSION }}
- name: Lint
shell: bash
run: node --run lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout local
uses: actions/checkout@v3
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
node-version: ${{ env.NODE_VERSION }}
- name: Test
shell: bash
run: node --run test
test-harness:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout local
uses: actions/checkout@v3
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
node-version: ${{ env.NODE_VERSION }}
- name: Build
shell: bash
run: |
node --run build
node --run build.binary -- --target=node18
- name: Test
shell: bash
run: node --run test.harness