27 lines
517 B
YAML
27 lines
517 B
YAML
name: Test Workflow
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test-and-lint:
|
|
# Use the label matching your registered runner
|
|
runs-on: ubuntu-latest
|
|
# Or specify a custom image directly if your runner supports it
|
|
container:
|
|
image: node:24-alpine
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run linter
|
|
run: npm run lint
|
|
|
|
- name: Run tests
|
|
run: npm test
|