-
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.
* Add Dynamic to matrix build * Support Listing for Job.runs-on * Update env. to support Boolean and Int * Add Job.needs * Add Step.shell * Add branches(-ignore) and path(-ignore) to triggers * Add timeout-minutes * Use Number for env variable * Add Job.environment * Change default values
- Loading branch information
Showing
5 changed files
with
97 additions
and
13 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
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 |
---|---|---|
|
@@ -27,6 +27,9 @@ examples { | |
default: Mona the Octocat | ||
env: | ||
PR_NUMBER: ${{github.event.number}} | ||
SOME_INT: 3 | ||
SOME_FLOAT: 3.2 | ||
SOME_BOOL: true | ||
concurrency: | ||
group: example-group | ||
cancel-in-progress: true | ||
|
@@ -39,6 +42,11 @@ examples { | |
hello_dependabot: | ||
runs-on: macos-latest | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
needs: | ||
- first_job | ||
- second_job | ||
environment: | ||
name: production | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -49,7 +57,10 @@ examples { | |
working-directory: src/ | ||
run: echo Dependabot! | ||
print: | ||
runs-on: ubuntu-latest | ||
runs-on: | ||
- macos-latest | ||
- windows-latest | ||
needs: hello_dependabot | ||
steps: | ||
- name: Hello World | ||
run: echo Hello World | ||
|
@@ -145,7 +156,8 @@ examples { | |
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.17.7 | ||
- run: go run wiki/generateWikiToc.go | ||
- shell: bash | ||
run: go run wiki/generateWikiToc.go | ||
- name: Commit changes | ||
run: |- | ||
git config --global user.email "[email protected]" | ||
|
@@ -169,18 +181,27 @@ examples { | |
jobs: | ||
matrixTest: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5.5 | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
soemthingElse: | ||
- os: ubuntu-latest | ||
runtime: linux-x64 | ||
- os: windows-latest | ||
runtime: windows-x64 | ||
- os: macos-latest | ||
runtime: macos-x64 | ||
steps: | ||
- name: Checkout | ||
timeout-minutes: 2.3 | ||
uses: actions/checkout@v4 | ||
- name: Run on ${{ matrix.os }} | ||
run: echo Hello World | ||
|
||
""" | ||
} | ||
} |