Broaden checks/tests run to encompass JS (#182)

* Broaden checks/tests run to encompass JS

* install deps

* prettier catch

* Install ts deps on checks

* more deps, maybe makefile this

* eslint fixes

* missed merge marker

* Add build step for hlyr

* in theory add golangci-lint to path
This commit is contained in:
Sundeep Malladi
2025-05-28 13:57:50 -05:00
committed by GitHub
parent 523650407d
commit 1dc6fcbca1
2 changed files with 32 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ on:
jobs:
# todo needs check-ts and test-ts too!
quality-py:
checks:
runs-on: ubuntu-latest
steps:
- name: Check out
@@ -34,10 +34,24 @@ jobs:
- name: Install the project
run: uv sync --all-extras --dev
- name: Run checks
run: make check-py
- name: Install ts deps
run: npm -C humanlayer-ts install && npm -C hlyr install
tests-py:
- uses: actions/setup-go@v5
with:
go-version: stable
# TODO: Update this, let's just pull the binary?
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Build CLI
run: npm -C hlyr run build
- name: Run checks
run: make check
tests:
runs-on: ubuntu-latest
strategy:
matrix:
@@ -47,6 +61,12 @@ jobs:
- name: Check out
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
cache-dependency-path: humanlayer-ts/package-lock.json
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
@@ -56,8 +76,14 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install ts deps
run: npm -C humanlayer-ts install && npm -C hlyr install
- name: Build CLI
run: npm -C hlyr run build
- name: Test
run: make test-py
run: make test
- name: Upload Test Results
if: always()

View File

@@ -220,8 +220,8 @@ describe('config show e2e tests', () => {
// Execute command
const result = await runCommand(args, testCase.env, tempDir)
expect(result.exitCode).toBe(0)
expect(result.stderr).toBe('')
expect(result.exitCode).toBe(0)
const output = JSON.parse(result.stdout)