Files
libhalo/.github/workflows/check.yml

62 lines
1.5 KiB
YAML

name: Check build
on:
push:
paths-ignore:
- 'README.md'
- 'cli/README.md'
- 'docs/**'
pull_request:
paths-ignore:
- 'README.md'
- 'cli/README.md'
- 'docs/**'
branches:
- master
jobs:
check:
runs-on: ubuntu-24.04
steps:
- name: Install native dependencies (Linux)
run: |
sudo apt-get update && sudo apt-get install -y libpcsclite-dev
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install Node.JS
uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable corepack
run: |
corepack enable
- name: Install dependencies
run: |
yarn workspaces focus --all
yarn install --immutable
- name: Run tsc (core)
run: |
cd core
yarn tsc
- name: Run webpack (core)
run: |
cd core
yarn webpack
- name: Run tsc (cli)
run: |
cd cli
yarn tsc
- name: Run webpack (cli)
run: |
cd cli
yarn webpack
mv dist_webpack/* .
- name: Package HaLo CLI tool (Linux)
run: |
cd cli
cp package.json orig-package.json
npx json-merger orig-package.json bin-cli.json -p -o package.json
yarn pkg --compress GZip -t node20-linux-x64 -o dist/halocli .
chmod +x ./dist/halocli
./dist/halocli cli_version