mirror of
https://github.com/atxp-dev/cli.git
synced 2026-09-14 20:46:39 +08:00
39 lines
706 B
YAML
39 lines
706 B
YAML
name: Node.js Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22.x'
|
|
cache: 'npm'
|
|
registry-url: 'https://registry.npmjs.org' # Added this line
|
|
|
|
- name: Install dependencies with rollup workaround
|
|
run: npm ci
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
|
|
- name: Run build
|
|
run: npm run build
|
|
|
|
- name: Run typecheck
|
|
run: npm run typecheck
|
|
|
|
- name: Run lint
|
|
run: npm run lint
|
|
|
|
- name: Run tests
|
|
run: npm test
|