Add test build

main
Jackson Morgan 3 months ago
parent d5279186a1
commit 80891ccec8
  1. 38
      .github/workflows/test.yml

@ -0,0 +1,38 @@
name: Test LDO Packages
on:
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # or whatever Node version you use
- name: Install dependencies
run: npm install
- name: Build package
run: npm run build
- name: Run tests
run: npm test
- name: Upload test results if available
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
**/junit*.xml
**/test-results*.xml
**/coverage
if-no-files-found: ignore
Loading…
Cancel
Save