-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interpolate job name with matrix (#106)
Fix go-gitea/gitea#28207 Reviewed-on: https://gitea.com/gitea/act/pulls/106 Reviewed-by: Jason Song <i@wolfogre.com> Co-authored-by: Zettat123 <zettat123@gmail.com> Co-committed-by: Zettat123 <zettat123@gmail.com>
- Loading branch information
Showing
4 changed files
with
127 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: test | ||
jobs: | ||
job1: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04, ubuntu-20.04] | ||
version: [1.17, 1.18, 1.19] | ||
runs-on: ${{ matrix.os }} | ||
name: test_version_${{ matrix.version }}_on_${{ matrix.os }} | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.version }} | ||
- run: uname -a && go version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: test | ||
jobs: | ||
job1: | ||
name: test_version_1.17_on_ubuntu-20.04 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.version }} | ||
- run: uname -a && go version | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
version: | ||
- 1.17 | ||
--- | ||
name: test | ||
jobs: | ||
job1: | ||
name: test_version_1.18_on_ubuntu-20.04 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.version }} | ||
- run: uname -a && go version | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
version: | ||
- 1.18 | ||
--- | ||
name: test | ||
jobs: | ||
job1: | ||
name: test_version_1.19_on_ubuntu-20.04 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.version }} | ||
- run: uname -a && go version | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
version: | ||
- 1.19 | ||
--- | ||
name: test | ||
jobs: | ||
job1: | ||
name: test_version_1.17_on_ubuntu-22.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.version }} | ||
- run: uname -a && go version | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
version: | ||
- 1.17 | ||
--- | ||
name: test | ||
jobs: | ||
job1: | ||
name: test_version_1.18_on_ubuntu-22.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.version }} | ||
- run: uname -a && go version | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
version: | ||
- 1.18 | ||
--- | ||
name: test | ||
jobs: | ||
job1: | ||
name: test_version_1.19_on_ubuntu-22.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.version }} | ||
- run: uname -a && go version | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
version: | ||
- 1.19 |