Skip to content

doc: Update ChangeLog.md for 3.0.0-dev.1 #22

doc: Update ChangeLog.md for 3.0.0-dev.1

doc: Update ChangeLog.md for 3.0.0-dev.1 #22

Workflow file for this run

# Copyright 2015 Shuai Zhang
# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception
name: Continuous Integration
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
validation:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Mise Install Tools
uses: jdx/mise-action@v3
with:
experimental: true
install_args: 'hk pkl typos go:github.com/B1NARY-GR0UP/nwa'
- name: Set up PNPM
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Validate with HK
if: github.event_name == 'push'
run: |
BASE="${{ github.event.before }}"
HEAD="${{ github.sha }}"
echo "hk check from $BASE to $HEAD"
hk check --check --from-ref "$BASE" --to-ref "$HEAD"
- name: Validate with HK
if: github.event_name == 'pull_request'
run: |
BASE="${{ github.event.pull_request.base.sha }}"
HEAD="${{ github.event.pull_request.head.sha }}"
echo "hk check from $BASE to $HEAD"
hk check --check --from-ref "$BASE" --to-ref "$HEAD"
- name: Validate with PNPM
run: pnpm lint && pnpm typecheck
test:
name: Test & Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.19.0, 20.x, 22.x, 24.x]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up PNPM
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm run test
- name: Build
run: pnpm run build