Skip to content

Use standardized workflow/job/step names in workflows #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check-code-generation-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
- "etc/schemas/**/*.json"

jobs:
test-go:
check:
runs-on: ubuntu-latest

steps:
Expand All @@ -35,7 +35,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Taskfile
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-go-nightly-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Taskfile
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-go-tester-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
fetch-depth: 0

- name: Install Taskfile
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
case-insensitive-regex: true
changelog-file-path: "${{ env.DIST_DIR }}/CHANGELOG.md"

- name: Install Taskfile
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-go-integration-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
- "tests/**"

jobs:
test-go:
test:
strategy:
matrix:
operating-system:
Expand All @@ -41,15 +41,15 @@ jobs:
runs-on: ${{ matrix.operating-system }}

steps:
- name: Checkout local repository
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Taskfile
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-go-task.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/test-go-task.md
name: Run tests
name: Test Go

env:
# See: https://github.com/actions/setup-go/tree/v2#readme
Expand All @@ -24,7 +24,7 @@ on:
- "**/testdata/**"

jobs:
test-go:
test:
strategy:
matrix:
operating-system:
Expand All @@ -35,21 +35,21 @@ jobs:
runs-on: ${{ matrix.operating-system }}

steps:
- name: Checkout local repository
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Taskfile
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: 3.x

- name: Run unit tests
- name: Run tests
run: task go:test

- name: Send unit tests coverage to Codecov
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Checkout local repository
- name: Checkout repository
uses: actions/checkout@v2

- name: Run script with defaults
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
echo "BINDIR=${{ runner.temp }}/custom-installation-folder" >> "$GITHUB_ENV"

- name: Checkout local repository
- name: Checkout repository
uses: actions/checkout@v2

- name: Run script with custom install location
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
VERSION: "1.0.0"

steps:
- name: Checkout local repository
- name: Checkout repository
uses: actions/checkout@v2

- name: Run script with version argument
Expand All @@ -121,7 +121,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Checkout local repository
- name: Checkout repository
uses: actions/checkout@v2

- name: Run script with nightly build version argument
Expand Down