mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-04-26 13:25:11 +08:00
25 lines
522 B
YAML
25 lines
522 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "renovate/**"
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
CI:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "16"
|
|
cache: "npm"
|
|
- run: npm install
|
|
- run: npm run build
|
|
- name: Get number of CPU cores
|
|
id: cpu-cores
|
|
uses: SimenB/github-actions-cpu-cores@v1
|
|
- run: npm test -- --max-workers ${{ steps.cpu-cores.outputs.count }}
|