Files
TSinjex/.github/workflows/PullRequestTest.yml
Max P f307233fe7 Enable manual workflow run and add TypeScript types
Added `workflow_dispatch` to GitHub Actions to permit manual execution of pull request tests, enhancing flexibility in CI/CD processes. Included `types` field in `package.json` to specify TypeScript declaration file, improving TypeScript support and integration.
2024-08-14 19:51:45 +02:00

32 lines
734 B
YAML

name: Run Build and Tests on Pull Request
on:
pull_request:
branches:
- main
workflow_dispatch: # Allows manual execution of the workflow.
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.8.0'
- name: Install Dependencies
run: npm install
- name: Run Tests
run: npm run test:verbose
- name: Build the Project
run: npm run build:tsc