diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index abf11ce..8d6e0a5 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -16,26 +16,31 @@ concurrency: jobs: build: + name: Build runs-on: ubuntu-latest + permissions: + contents: write steps: - - uses: actions/checkout@v4 + - name: Check out repo + uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Setup Node uses: actions/setup-node@v4 with: node-version: 20 - - name: run benchmarks - run: | - npm install - npm start y 100 10 40 + - name: Install dependencies + run: npm i + + - name: Run benchmarks + run: npm start y 100 10 40 - - name: compare results + - name: Compare results run: | node ./benchmark compare -t node ./benchmark compare -u - - name: commit and push updated results + - name: Commit and push updated results uses: github-actions-x/commit@v2.9 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e99a13..e750626 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,15 +24,13 @@ jobs: uses: actions/dependency-review-action@v4 test: + name: Test runs-on: ubuntu-latest - permissions: contents: read - strategy: matrix: node-version: [20, 22] - steps: - name: Check out repo uses: actions/checkout@v4 diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index 11747f4..4624a40 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -13,24 +13,27 @@ concurrency: jobs: build: + name: Build runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} + + - name: Setup Node uses: actions/setup-node@v4 with: node-version: 20 - - name: install dependencies - run: | - npm install + - name: Install dependencies + run: npm i - - name: run metrics + - name: Run metrics run: | npm run metrics:run npm run metrics:summary - - name: commit and push updated results + - name: Commit and push updated results uses: github-actions-x/commit@v2.9 with: github-token: ${{ secrets.GITHUB_TOKEN }}