Skip to content

Commit

Permalink
chore: improve names in workflow examples
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Sep 30, 2024
1 parent 95e0043 commit 016456b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ This workflow will run the benchmarks found in the `tests/` folder and upload th
It will be triggered on every push to the `main` branch and on every pull request.

```yaml
name: codspeed-benchmarks
name: CodSpeed
on:
push:
Expand All @@ -66,6 +66,7 @@ on:

jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -90,7 +91,7 @@ This workflow will run the benchmarks found in the `tests/` folder and upload th
It will be triggered on every push to the `main` branch and on every pull request.

```yml
name: codspeed-benchmarks
name: CodSpeed
on:
push:
Expand All @@ -102,6 +103,7 @@ on:
workflow_dispatch:

jobs:
name: Run benchmarks
benchmarks:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -131,7 +133,7 @@ This workflow will run the benchmarks defined with `vitest`'s `bench` function a
It will be triggered on every push to the `main` branch and on every pull request.

```yml
name: codspeed-benchmarks
name: CodSpeed
on:
push:
Expand All @@ -144,12 +146,16 @@ on:

jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-node@v3"
- uses: actions/checkout@v4

- uses: actions/setup-node@v3

- name: Install dependencies
run: npm install

- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
Expand Down
12 changes: 8 additions & 4 deletions examples/nodejs-typescript-codspeed.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: codspeed-benchmarks
name: CodSpeed

on:
push:
Expand All @@ -10,13 +10,17 @@ on:
workflow_dispatch:

jobs:
benchmarks:
name: Run benchmarks
codspeed:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-node@v3"
- uses: actions/checkout@v4

- uses: actions/setup-node@v3

- name: Install dependencies
run: npm install

- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
Expand Down
6 changes: 4 additions & 2 deletions examples/python-pytest-codspeed.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: codspeed-benchmarks
name: CodSpeed

on:
push:
Expand All @@ -10,10 +10,12 @@ on:
workflow_dispatch:

jobs:
benchmarks:
codspeed:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v3
with:
python-version: "3.9"
Expand Down
5 changes: 3 additions & 2 deletions examples/rust-cargo-codspeed.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: codspeed-benchmarks
name: CodSpeed

on:
push:
Expand All @@ -10,7 +10,8 @@ on:
workflow_dispatch:

jobs:
benchmarks:
codspeed:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 016456b

Please sign in to comment.