mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
chore: only test changed packages (#1194)
This commit is contained in:
10
.github/workflows/Ci.yml
vendored
10
.github/workflows/Ci.yml
vendored
@ -12,6 +12,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
@ -20,8 +21,13 @@ jobs:
|
||||
- name: 📦 Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: 🧪 Run tests
|
||||
run: npm test
|
||||
- name: 🧪 Run all tests
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
run: npm run test
|
||||
|
||||
- name: 🧪 Run tests for changed files only
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: npm run test-changed
|
||||
|
||||
- name: 💄 Code style
|
||||
run: npm run style
|
||||
|
Reference in New Issue
Block a user