Skip to content

Commit

Permalink
ci: optimize ci jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdev03 committed Jun 16, 2024
1 parent 5adaf00 commit f909dc8
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build XLucene Grammar
run: npm run prebuild
- name: Shared Setup
uses: ./.github/actions/setup
- name: Run lint
run: npm run lint
- name: Run format
Expand All @@ -35,15 +28,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Test Build
run: npm run build
- name: Shared Setup
uses: ./.github/actions/setup
- name: Run tests
run: npm run test:coverage
- name: Upload coverage reports to Codecov
Expand All @@ -52,16 +38,16 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
bench:
runs-on: ubuntu-latest
# needs: test
needs: test
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Shared Setup
uses: ./.github/actions/setup
# - name: Run Benchmarks
# uses: CodSpeedHQ/action@v2
# with:
# run: npm run bench
# token: ${{ secrets.CODSPEED_TOKEN }}
- name: Run Benchmarks
uses: CodSpeedHQ/action@v2
with:
run: npm run bench
token: ${{ secrets.CODSPEED_TOKEN }}

0 comments on commit f909dc8

Please sign in to comment.