Compare commits

..

308 Commits

Author SHA1 Message Date
Steve Winton 8da6f2ecd8 Add new issue template for Code Scanning partners
Validate Data / validate-data (push) Has been cancelled
2021-02-09 16:13:45 -06:00
Chris Patterson c59b62dee0 Adding new environment tag (#784) 2021-01-20 11:34:18 -05:00
litetex 5760418d4f dotnet-Workflows: Use latest channel version (#723)
* Use latest channel-version

* Use latest channel-version
2021-01-15 15:20:42 -05:00
John Bohannon 97cad8dbc7 Merge pull request #742 from ljinging/main
Create alibabacloud.yml
2021-01-12 13:35:45 -05:00
Andy McKay 2c71fd3721 Merge branch 'main' into main 2021-01-07 15:00:00 -08:00
arnu515 b20b76eb79 Fix grammar error (#773)
In the comment on line `1`, it says "This workflows", but I think that "This workflow" makes more sense.
2021-01-07 10:46:24 -05:00
chenrui ef1224c284 go: update starter (#768)
Signed-off-by: Rui Chen <rui@chenrui.dev>

Co-authored-by: Josh Gross <joshmgross@github.com>
2021-01-05 11:47:18 -05:00
chenrui d36b72e889 ruby: add ruby 2.7 and 3.0 into bootstrap script (#766)
sync with main branch

quote versions

remove redundant bundle install

Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-01-05 11:11:06 -05:00
Benoit Daloze d644b9852c Update ruby.yml to use the latest release of ruby/setup-ruby (#758)
https://github.com/ruby/setup-ruby/releases/tag/v1.61.0

Co-authored-by: Josh Gross <joshmgross@github.com>
2021-01-04 15:24:14 -05:00
Andrew Marshall c17ea6bad7 fix context references in cmake template (#762)
Co-authored-by: Josh Gross <joshmgross@github.com>
2021-01-04 13:52:34 -05:00
Jan Jurzitza 3b047441fd update setup-dlang to v1.0.2 (#763)
This fixes the previous version using the outdated `::set-env` command which is disabled now. (See https://github.com/dlang-community/setup-dlang/issues/34)

Co-authored-by: Andy McKay <andymckay@github.com>
Co-authored-by: Josh Gross <joshmgross@github.com>
2021-01-04 13:44:59 -05:00
Andy McKay e402d2478e Merge pull request #685 from Sheeri/main
Get rid of quoting that breaks by default.
2021-01-04 08:41:45 -08:00
Andy McKay 2e8181996a Merge branch 'main' into main 2021-01-04 08:41:14 -08:00
Andy McKay f631f1f2a9 Update automation/greetings.yml 2021-01-04 08:40:18 -08:00
Andy McKay 25beec943d Merge pull request #764 from chenrui333/ghc-8.10-cabal-3.2
haskell: ghc 8.10 and cabal 3.2
2021-01-04 08:35:45 -08:00
Andy McKay 6c0603b492 Merge branch 'main' into ghc-8.10-cabal-3.2 2021-01-04 08:33:47 -08:00
Andy McKay db98e7bafe Merge pull request #765 from chenrui333/python-3.9
python: include python 3.9 for the build
2021-01-04 08:33:23 -08:00
Andy McKay 9959a5d8cd Merge branch 'main' into python-3.9 2021-01-04 08:32:40 -08:00
William Entriken ebda693bc0 Add every version of Node.js that is supported upstream (#754) 2021-01-04 11:16:33 -05:00
Rui Chen d5de0a136a python: include python 3.9 for the build 2021-01-02 16:26:06 -05:00
Rui Chen f9cb2aceea haskell: ghc 8.10 and cabal 3.2
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-01-02 16:06:19 -05:00
ljing 95adc26526 Merge branch 'main' into main 2020-12-19 10:12:28 +08:00
Andy McKay e9e00b0177 Merge pull request #748 from TheBikramLama/main
Added PHP version (default 8.0)
2020-12-18 12:58:24 -08:00
Andy McKay 26b1c798c4 Merge branch 'main' into main 2020-12-18 12:57:36 -08:00
Andy McKay 1611798954 Update ci/laravel.yml 2020-12-18 12:54:48 -08:00
Yashovardhan Dhanania 916f29234a Android: Granting execute permission for gradlew (#70)
* Granting execute permission for gradlew

In https://github.com/yashovardhan99/HealersDiary, while testing this action, I noticed `./gradlew build` fails because it does not have execute permissions. Adding the execute permissions using `chmod` fixes this issue.

* fixing line endings

This should fix it

* Renormalizing changes
2020-12-18 15:01:28 -05:00
Bikram Lama 038c492e5d Added PHP version (default 8.0) 2020-12-17 01:57:39 +05:45
ljing 2cce108822 Merge branch 'main' into main 2020-12-16 13:39:48 +08:00
John Bohannon cefd62c81b Merge pull request #743 from bharathkkb/bharathkkb-patch-1
Updates for new google org and actions
2020-12-15 09:50:48 -05:00
John Bohannon 59b02379ec Merge branch 'main' into bharathkkb-patch-1 2020-12-15 09:50:04 -05:00
ljing 5adbc985bb Merge branch 'main' into main 2020-12-15 15:06:36 +08:00
Andy McKay f3f093bce8 Merge pull request #740 from rainersigwald/dotnet-updates
Dotnet updates
2020-12-14 17:08:00 -08:00
Bharath KKB ab930e94bf fix cluster var 2020-12-14 18:59:18 -06:00
Bharath KKB c5e7bc70b5 use GKE action for credentials 2020-12-14 18:49:58 -06:00
Bharath KKB 14acff1f1e fix: switch to new google actions org 2020-12-14 18:38:42 -06:00
ljing 14547bfc79 Delete alibabacloud.properties.json 2020-12-11 23:40:14 +08:00
ljing 90f8fd731d Add icon 2020-12-11 23:39:46 +08:00
ljing 08c2049aed Create alibabacloud.properties.json 2020-12-11 23:26:26 +08:00
ljing b3f8b48094 Create alibabacloud.properties.json 2020-12-11 23:17:45 +08:00
ljing a921a9e19d Update alibabacloud.yml 2020-12-11 23:02:57 +08:00
ljing a88b31b693 Create alibabacloud.yml
This workflow will build and push a new container image to Alibaba Cloud Container Reigstry (ACR),
and then will deploy it to Alibaba Cloud Container Service for Kubernetes (ACK), when a release is created.
2020-12-11 22:49:36 +08:00
Rainer Sigwald 2c1a53ec93 Don't build when running tests
If the workflow is going to split restore, build, and test into separate
steps, each should use the result of the prior. Build was invoked with
`--no-restore` but test was restoring, building, and then testing.
2020-12-10 17:45:12 +00:00
Rainer Sigwald 0c4ccab691 Don't specify configuration for dotnet build
Since `dotnet test` below didn't specify the Release configuration,
it used the default configuration (generally Debug).
2020-12-10 17:45:12 +00:00
Rainer Sigwald b05136d6b3 Nit: Title restore step with "restore"
This is more like how folks generally refer to it in .NET-land.
2020-12-10 17:41:44 +00:00
Rainer Sigwald 4dae3bbf12 Update .NET Core branding to .NET
Per the branding that .NET 5.0 is the next release after .NET Core 3.1.
2020-12-10 17:40:37 +00:00
Andy McKay a571f2981a Merge pull request #737 from actions/add-manual-icon
Add in a person icon
2020-12-07 10:16:02 -08:00
Andy McKay 32294ec235 add in a person icon 2020-12-07 10:11:02 -08:00
Andy McKay 93dbc9b111 Merge pull request #731 from davidar/patch-1
Add conda to system path
2020-12-07 09:56:42 -08:00
David A Roberts 778f6e55ec Add conda to system path 2020-12-05 09:30:21 +10:00
Andy McKay 1098e119bf Merge pull request #708 from benmcmorran/add-msbuild-cpp-workflow
Add MSBuild C/C++ starter workflow
2020-12-04 13:29:10 -08:00
Ben McMorran c4f8fd37a9 Merge branch 'main' into add-msbuild-cpp-workflow 2020-12-04 13:09:44 -08:00
Josh Gross b247fc6998 Fix CODEOWNERS (#730) 2020-12-04 15:45:26 -05:00
Ben McMorran 5df85a656f Merge branch 'main' into add-msbuild-cpp-workflow 2020-12-02 09:28:27 -08:00
Andy McKay edab906081 Merge pull request #727 from actions/bump/setup-ruby
Update ruby.yml
2020-12-01 14:01:35 -08:00
Andy McKay 04faecd243 Update ruby.yml
Noticed that this version of setup-ruby causes problems with the `set-env` deprecation. This just bumps it up to the latest commit on https://github.com/ruby/setup-ruby/
2020-12-01 13:40:54 -08:00
John Bohannon 1121235708 Merge pull request #726 from redhat-actions/openshiftCategories
Add Dockerfile category to openshift workflow
2020-11-30 13:08:38 -05:00
Tim Etchells cfbd40a9c2 Add Dockerfile category to openshift workflow
Signed-off-by: Tim Etchells <tetchell@redhat.com>
2020-11-30 13:03:33 -05:00
John Bohannon 33f788c27e Merge pull request #725 from redhat-actions/openshift
Update OpenShift starter with new actions
2020-11-30 12:02:24 -05:00
Tim Etchells 443491da63 Add GitHub disclaimer
Signed-off-by: Tim Etchells <tetchell@redhat.com>
2020-11-30 11:17:47 -05:00
Tim Etchells 6a074bcdf6 Update OpenShift starter with new actions
Signed-off-by: Tim Etchells <tetchell@redhat.com>
2020-11-30 11:15:59 -05:00
Ben McMorran 3f9a0a4044 Merge branch 'main' into add-msbuild-cpp-workflow 2020-11-25 12:25:48 -08:00
Andy McKay 8c0ca1f934 Merge pull request #721 from actions/add-in-stale
Create stale.yml
2020-11-24 14:52:49 -08:00
Andy McKay b38e80f939 Merge branch 'main' into add-in-stale 2020-11-24 14:51:24 -08:00
Andy McKay 8ca17cdb3e Merge pull request #722 from actions/add-in-codeowners
Add in codeowners for this repo
2020-11-24 14:51:15 -08:00
Andy McKay d41b5571e7 Add in codeowners for this repo 2020-11-24 14:43:12 -08:00
Andy McKay bb39041a60 Create stale.yml 2020-11-24 13:52:32 -08:00
Andy McKay ff9e5d1209 Merge pull request #658 from actions/dependabot/npm_and_yarn/script/validate-data/actions/core-1.2.6
Bump @actions/core from 1.2.4 to 1.2.6 in /script/validate-data
2020-11-24 13:46:17 -08:00
Andy McKay 66d8b02dfe Merge branch 'main' into dependabot/npm_and_yarn/script/validate-data/actions/core-1.2.6 2020-11-24 13:43:24 -08:00
Andy McKay 4e1a218f3b Merge pull request #659 from damccorm/patch-1
Update stale to most recent version
2020-11-24 13:42:56 -08:00
Andy McKay 019eff621a Merge branch 'main' into patch-1 2020-11-24 13:42:21 -08:00
Andy McKay 6999ba1689 Merge pull request #682 from abc52090241/patch-1
更新許可
2020-11-24 13:40:31 -08:00
Andy McKay a50e787c3d Merge branch 'main' into patch-1 2020-11-24 13:39:40 -08:00
Andy McKay eab784e4cf Merge pull request #703 from boxed/patch-1
Prepare python-package.yml for python 3.10
2020-11-24 13:38:11 -08:00
Andy McKay 54c9648f3b Merge branch 'main' into patch-1 2020-11-24 13:37:06 -08:00
Andy McKay 9f124372e3 Merge pull request #717 from RobertRosca/patch-1
Use consistent calls to pip
2020-11-24 13:23:55 -08:00
Andy McKay 6ff9ab42eb Merge branch 'main' into patch-1 2020-11-24 13:23:26 -08:00
Andy McKay decb3a996a Merge pull request #720 from ostaebler/go_build_all
Build/Test all go packages
2020-11-24 13:21:49 -08:00
Oliver Stäbler 64f653a809 Build/Test all go packages
Use the "..." pattern to build/test all go packages in a repository.
2020-11-24 21:16:36 +01:00
Robert Rosca 0e2cd77dc8 Use consistent calls to pip
`pip` was called in two different ways which is a bit inconsistent, this change just makes it so that it is called in the same way both times.
2020-11-23 11:13:06 +01:00
Christopher Schleiden 2d3a2e57d3 Merge pull request #713 from actions/cschleiden/add-workflow-dispatch
Add workflow_dispatch trigger to the default empty workflow
2020-11-19 14:27:14 -08:00
Christopher Schleiden bfb45aec41 Shorten the description 2020-11-19 14:21:12 -08:00
Christopher Schleiden ef7878c3e6 Add workflow_dispatch trigger to the default empty workflow 2020-11-19 14:07:15 -08:00
Nick Fyson b2e55d25f2 Merge pull request #704 from nickfyson/update_terms
update terms and guidelines to account for code scanning workflows
2020-11-16 14:58:21 +00:00
Nick Fyson cf9a85beec Merge branch 'main' into update_terms 2020-11-16 14:56:30 +00:00
Ben McMorran 92d9a2c433 Add MSBuild C/C++ starter workflow 2020-11-13 13:53:37 -08:00
Nick Fyson aa9d3bc6cc Merge pull request #702 from nickfyson/add-codeql-workflow
add codeql workflow
2020-11-13 16:45:58 +00:00
Nick Fyson 44c50acb70 amend link in codeql workflow 2020-11-13 16:33:01 +00:00
Nick Fyson 500534878c update doc link in codeql template 2020-11-12 12:46:34 +00:00
Nick Fyson 545a711d57 Merge branch 'main' into add-codeql-workflow 2020-11-11 11:26:31 +00:00
Nick Fyson 85739b01da update terms and guidelines to account for code scanning workflows 2020-11-11 09:30:58 +00:00
Anders Hovmöller 33c4d0afcb Prepare python-package.yml for python 3.10
Python 3.10 is coming soon, and this will cause problems with the code as currently written. The python versions are written as floats and not strings, which will mean that 3.10 == 3.1, which is going to be very surprising.
2020-11-10 13:57:09 +01:00
Andy McKay 6e6b7a3a65 Merge pull request #690 from devoncarew/patch-1
Update dart.yml
2020-11-09 12:32:02 -08:00
Andy McKay 07d00868c1 Merge branch 'main' into patch-1 2020-11-09 12:31:19 -08:00
Devon Carew 1e97b0eba7 Update dart.yml
Change to sentence fragment case for the step names
2020-11-09 09:54:52 -08:00
Andy McKay 1e1b67d2e3 Merge pull request #697 from xiongnemo/patch-1
remove misleading info
2020-11-09 09:42:21 -08:00
Andy McKay 90f04bcdca Merge branch 'main' into patch-1 2020-11-09 09:41:33 -08:00
Nick Fyson 33e4b7e557 add codeql workflow 2020-11-09 11:08:35 +00:00
Andy McKay d9b22d32d2 Merge pull request #698 from actions/revert-639-kaylangan-publish-docker-to-ghcr
Revert "Update Publish Docker template to publish to GitHub Container Registry"
2020-11-06 10:26:13 -08:00
Kayla Ngan cfb65e2931 Merge branch 'main' into revert-639-kaylangan-publish-docker-to-ghcr 2020-11-06 11:08:22 -05:00
Devon Carew 6566b994c5 Merge branch 'main' into patch-1 2020-11-05 14:50:13 -08:00
Andy McKay b74ba94525 Merge pull request #699 from N-Usha/patch-4
Update azure.yml
2020-11-05 09:07:01 -08:00
Usha N 5aeeb19100 Update azure.yml 2020-11-05 22:32:30 +05:30
Andy McKay 6802e0bb22 Merge pull request #696 from N-Usha/patch-3
Updating the pre-req configuration steps for Azure workflow
2020-11-05 08:35:31 -08:00
Kayla Ngan f75012de65 Revert "Update Publish Docker template to publish to GitHub Container Registry" 2020-11-04 16:32:58 -05:00
Nemo Xiong dfaa4e420b remove misleading info
python-django.* has renamed to django.*, while the doc remains the same
2020-11-05 01:57:31 +08:00
Usha N e2510e2a62 Updating the pre-req configuration steps
For Linux Apps, Developers need to set a new app setting called WEBSITE_WEBDEPLOY_USE_SCM and set to `true` before downloading the publish profile.
2020-11-03 18:21:34 +05:30
Devon Carew 17e1df2111 Update dart.yml
Review comments from @mit-mit.
2020-11-02 09:07:53 -08:00
Devon Carew f938476d14 Update dart.yml 2020-10-30 12:46:33 -07:00
Andy McKay d7ac62140f Create label-feature.yml 2020-10-27 15:47:43 -07:00
Andy McKay fecbb32bb8 Rename label-close.yml to label-support.yml 2020-10-27 15:44:22 -07:00
Sheeri Cabral 5699eea8b2 Get rid of quoting that breaks by default.
it looks like someone tried to use '' to make a ' happen for the possessive tense of users. But that messes up the quoting:
issue-message: 'Message that will be displayed on users'' first issue'
pr-message: 'Message that will be displayed on users'' first pr'

It should be:
issue-message: 'Message that will be displayed on the first issue for that user'
pr-message: 'Message that will be displayed on the first pr for that user'

(this gets rid of the spurious quotes, but also doesn't introduce any grammatical errors)

It was a very bad impression to have a simple script designed to welcome folks be broken by default.
2020-10-27 12:25:47 -04:00
Andy McKay b4fa2522d2 Merge pull request #683 from nickfyson/code-scanning-placeholder
add code scanning placeholder readme
2020-10-23 08:22:34 -07:00
Nick Fyson 8d7b3c7bb7 add code scanning readme 2020-10-23 15:30:48 +01:00
Tang wiki fbdaed8a1c 更新許可 2020-10-23 05:20:15 +08:00
Andy McKay 48d91f58fd Merge pull request #673 from kszonek/fix-cmake-docs
Fix docs link in cmake CI file
2020-10-21 13:28:42 -07:00
Andy McKay 93e3710ab0 Merge branch 'main' into fix-cmake-docs 2020-10-21 13:27:46 -07:00
Andy McKay e3365944ac Merge pull request #674 from nschonni/patch-1
chore: Remove id for go install
2020-10-21 13:25:17 -07:00
Nick Schonning b1cd56fafa chore: Remove id for go install
The ID isn't used in other steps of the script
2020-10-19 20:26:29 -04:00
kszonek e24322bcc0 Fix docs link in cmake CI file 2020-10-19 21:30:11 +02:00
Andy McKay 08ff79c7b9 Merge pull request #657 from lstocchi/openshift_action_ci
Add support for OpenShift
2020-10-14 08:02:17 -07:00
Danny McCormick ca7b1e42d8 Update stale to most recent version 2020-10-01 15:06:20 -04:00
dependabot[bot] 7828f6c354 Bump @actions/core from 1.2.4 to 1.2.6 in /script/validate-data
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.4 to 1.2.6.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-01 17:38:26 +00:00
Luca Stocchi 12319ff7de update branch
Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
2020-09-28 17:10:57 +02:00
Luca Stocchi 545967cef7 Add support for OpenShift Action
Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
2020-09-28 16:59:32 +02:00
Mike Coutermarsh dacfd0a22a Merge pull request #645 from simonini/patch-1
Fix rubygems step
2020-09-21 14:24:59 -07:00
Alessandro 732e5a4fed Fix rubygems step
With GitHub Packages everything is ok, but we had a problem with "bearer" in the RubyGems step.
We solved when we removed the bearer in the ruby gem step.
Is it ok?

Repo with our test (https://github.com/rubynetti/amico-db)
2020-09-17 17:11:19 +02:00
Andy McKay 6933b58bfe Merge pull request #644 from hharutyunyan/main
Fix on step name for pylint action
2020-09-16 06:49:26 -07:00
Henry Harutyunyan 4fc839617b Fix on step name for pylint action
On analyzing the code with `pylint`, the name of the step is `Test with pytest`, which is certainly not what it does.
2020-09-16 14:49:17 +04:00
Cameron Booth 60765e8490 Merge pull request #641 from actions/cdb/npm-registry-url
Update to use the $registry-url() token
2020-09-09 17:20:59 -07:00
Cameron Booth c6ccc6f609 Update to use the $registry-url() token 2020-09-09 15:42:40 -07:00
Andy McKay 188a1b0995 Merge pull request #639 from actions/kaylangan-publish-docker-to-ghcr
Update Publish Docker template to publish to GitHub Container Registry
2020-09-01 09:43:20 -07:00
Kayla Ngan 01816c2943 Add in account path part 2020-08-31 16:40:03 -04:00
Kayla Ngan b54b703ab1 Update docker-publish.yml 2020-08-31 16:21:54 -04:00
Andy McKay 8e9dd416eb Merge pull request #624 from mohd-akram/blank-indentation
blank.yml: fix indentation
2020-08-26 15:05:31 -07:00
Andy McKay 3ba9eeb432 Merge pull request #493 from mosteo/master
Ada starter workflow, icon and properties
2020-08-25 09:17:05 -07:00
Andy McKay ac0f10b559 Merge pull request #604 from maximousblk/add-setup-deno
Add Deno
2020-08-25 09:13:19 -07:00
Maximous Black 4c50c2463d Update deno.yml 2020-08-25 13:24:46 +05:30
Andy McKay af51c4b131 Merge pull request #47 from jherico/master
Add a starter cmake workflow
2020-08-24 09:58:27 -07:00
Andy McKay 7170aed588 Merge pull request #460 from jai/ios-starter-workflow
Add iOS Starter Workflow
2020-08-24 09:56:49 -07:00
Andy McKay 5524770ebc Merge pull request #197 from ben-heil/conda
Python package unit testing using Anaconda
2020-08-24 09:54:58 -07:00
Andy McKay 556dbfef74 Merge branch 'master' into master 2020-08-24 08:37:18 -07:00
Alejandro R. Mosteo 0e05d2e2d5 Updated Ada logo (Public Domain) 2020-08-24 13:04:54 +02:00
Alejandro R Mosteo d9ef0c9fa9 s/master/$default-branch/ in workflow
Co-authored-by: Andy McKay <andymckay@github.com>
2020-08-24 11:10:05 +02:00
Ben Heil 781ae15668 Corrected the name: the action uses Conda but not Anaconda 2020-08-23 22:21:14 -04:00
Ben Heil e6a92cdf5e Update with requested changes from @andymckay 2020-08-22 09:09:50 -04:00
Ben Heil 9d5fc9a9d5 Get up to date with actions:main 2020-08-22 08:38:27 -04:00
Maximous Black b2a9ff937c Update Deno Workflow
- Use 40 char SHA string for action's version
- Add nightly testing
- Add cross platform testing
2020-08-22 17:26:46 +05:30
Jai Govindani d344ceca32 fix(icon): remove ios icon
Signed-off-by: Jai Govindani <jai@honestbank.com>
2020-08-22 15:07:17 +07:00
Jai Govindani cd6c492b58 fix(icon): use xcode icon
Signed-off-by: Jai Govindani <jai@honestbank.com>
2020-08-22 15:06:08 +07:00
Jai Govindani 1d9faa8666 fix(triggers): use $default-branch instead of hard-coding
Co-authored-by: Andy McKay <andymckay@github.com>
2020-08-22 15:06:07 +07:00
Jai Govindani 8b99b795cd fix: incorrect capitalization of iOS icon name
Signed-off-by: Jai Govindani <jai@honestbank.com>
2020-08-22 15:06:05 +07:00
Jai Govindani a7d5e843be fix: add newline to end of file ios.properties.json
Signed-off-by: Jai Govindani <jai@honestbank.com>
2020-08-22 15:06:04 +07:00
Jai Govindani 044885a132 fix: add iOS icon
Signed-off-by: Jai Govindani <jai@honestbank.com>
2020-08-22 15:06:02 +07:00
Jai Govindani f5834be4a7 Add ios.properties.json
Signed-off-by: Jai Govindani <jai@honestbank.com>
2020-08-22 15:06:01 +07:00
Jai Govindani 8086b89ce1 Set name of workflow to sentence case
Signed-off-by: Jai Govindani <jai@honestbank.com>
2020-08-22 15:05:59 +07:00
Jai Govindani eb30c1ee37 Add iOS Starter Workflow
Signed-off-by: Jai Govindani <jai@honestbank.com>
2020-08-22 15:05:58 +07:00
Bradley Austin Davis 917a8740ae Merge remote-tracking branch 'upstream/master' 2020-08-21 18:39:57 -07:00
Bradley Austin Davis 9ca8884216 Switching to single-platform build per PR comments 2020-08-21 18:39:05 -07:00
Bradley Austin Davis 760d91097a Update ci/cmake.yml
Co-authored-by: Andy McKay <andymckay@github.com>
2020-08-21 18:35:36 -07:00
Andy McKay 60a9e86952 Merge pull request #633 from actions/revert-311-add-cypress-workflow
Revert "add Cypress starter workflow"
2020-08-21 15:00:45 -07:00
Andy McKay 1dc9bda71d Revert "add Cypress starter workflow" 2020-08-21 15:00:23 -07:00
Andy McKay 55d2f670aa Merge pull request #311 from bahmutov/add-cypress-workflow
add Cypress starter workflow
2020-08-21 15:00:18 -07:00
Andy McKay c7007251e8 Merge pull request #298 from fjy202/pylint
Pylint
2020-08-21 12:02:06 -07:00
Andy McKay acf5f6e3fc Merge pull request #166 from jimhester/r-starter-workflow
Add R starter workflow
2020-08-21 12:00:18 -07:00
Andy McKay 94759fc6c5 Update d.yml 2020-08-21 11:57:09 -07:00
Andy McKay e6715401a9 Merge pull request #166 from jimhester/r-starter-workflow
Add R starter workflow
2020-08-21 08:27:29 -07:00
Andy McKay a4513263ef Merge branch 'master' into r-starter-workflow 2020-08-21 08:26:40 -07:00
Andy McKay dc7a645261 Update ci/properties/r.properties.json 2020-08-21 08:25:55 -07:00
Jim Hester fae2392dd2 Update ci/r.yml
Co-authored-by: Andy McKay <andymckay@github.com>
2020-08-21 09:24:31 -04:00
Andy McKay e06cc27dea Merge pull request #632 from actions/hold-starter-workflows
updates to starter workflows
2020-08-20 18:09:56 -07:00
Andy McKay e29f776785 updates to starter workflows 2020-08-20 18:09:12 -07:00
Andy McKay 4085d2783b Merge pull request #546 from Geod24/dlang-workflow
Add D workflow
2020-08-20 17:27:47 -07:00
Ernesto Castellotti ccf96281e9 Add D workflow
D is a statically and strongly typed, multi-paradigm, general-purpose native programming language.
D is fully open-source and maintained by a volunteer community.
For more information, see https://dlang.org

This patch adds a minimal workflow that allows users to compile D projects that use DUB,
the official D package manager and build tool.

The workflow uses the community-maintained `setup-dlang` action,
which can install any version of `dmd` (the reference compiler),
or `ldc` (the LLVM-based, performance oriented compiler,
on any of the three platforms currently supported by Github free runners.
Support for GDC is not yet implemented.

The logo used (d.svg) originates from
https://github.com/dlang/dlang.org/blob/master/images/dlogo_2015.svg
and is available under the BSL-1.0 license
(https://github.com/dlang/dlang.org/blob/master/LICENSE.txt)

Co-Authored-By: Mathias Lang <pro.mathias.lang@gmail.com>
2020-08-19 13:20:57 +09:00
John Bohannon 9ddf3f1e08 Merge pull request #611 from ktoor-google/update-gke
Updated google gke workflow(https://github.com/GoogleCloudPlatform/github-actions/blob/master/example-workflows/gke/.github/workflows/gke.yml)
2020-08-18 08:58:01 -04:00
ktoor-google bfe353443a Update ci/google.yml
Co-authored-by: John Bohannon <imjohnbo@github.com>
2020-08-13 11:52:11 -07:00
Mohamed Akram ebe6a9d913 blank.yml: fix indentation 2020-08-12 18:56:23 +04:00
Kunwar Toor ee064c5e4b updated gcloud action to latest 2020-08-10 17:07:34 -07:00
ktoor-google 0ec52ad66b Update ci/google.yml
Co-authored-by: John Bohannon <imjohnbo@github.com>
2020-08-10 16:43:03 -07:00
ktoor-google 27c4cec0db Update ci/google.yml
Co-authored-by: John Bohannon <imjohnbo@github.com>
2020-08-10 16:42:41 -07:00
Kunwar Toor 96d4d9913c updated google.yml to reflect the more recent gke workflow action given by google in https://github.com/GoogleCloudPlatform/github-actions 2020-08-03 10:55:35 -07:00
Kunwar Toor e0507e673c updated google.yml to reflect the more recent gke workflow action given by google in https://github.com/GoogleCloudPlatform/github-actions 2020-08-03 10:47:03 -07:00
Andy McKay 948df6a3d0 Merge pull request #608 from simonw/patch-1
Use actions/setup-python@v2
2020-07-31 10:35:12 -07:00
Simon Willison 8f334e85aa Use actions/setup-python@v2 2020-07-31 10:21:41 -07:00
Ben Heil fb3fd40c90 Merge branch 'master' into conda 2020-07-31 08:37:26 -04:00
Maximous Black 5a6d7fe48f fix typo 2020-07-24 01:33:30 +05:30
Maximous Black e0b4d1e49e added warning 2020-07-24 01:31:50 +05:30
Maximous Black 96bdc687f4 made it as simple as possible 2020-07-24 01:30:01 +05:30
Maximous Black 125b38d041 Create deno.svg 2020-07-24 01:18:56 +05:30
Maximous Black 613f51fa51 Create deno.properties.json 2020-07-24 01:16:06 +05:30
Maximous Black 860fdf02bf Create deno.yml 2020-07-24 01:13:53 +05:30
Konrad Pabjan e11672e5a9 Merge pull request #600 from actions/konradpabjan/artifact-v2
Update artifact actions from v1 to v2
2020-07-22 15:44:05 +02:00
Konrad Pabjan 3c570179b7 Update artifact actions from v1 to v2 2020-07-22 13:44:29 +02:00
Andy McKay 02575c8e91 Merge pull request #594 from robatron/patch-1
Move "checkout" comment adjacent to its step
2020-07-20 08:14:13 -07:00
Andy McKay 94b77c19d0 Merge pull request #595 from stevedesmond-ca/patch-1
Update .NET Core SDK version
2020-07-20 08:13:19 -07:00
Steve Desmond 318a078faf Update .NET Core SDK version
Blazor projects fail to build in 3.1.101 due to a bug in the .NET Core SDK. Updating the SDK to the latest version fixes this bug.
2020-07-18 16:17:03 -04:00
Rob McGuire 2740936be4 Move "checkout" comment adjacent to its step 2020-07-17 19:54:48 -07:00
Andy McKay a98cc94869 Merge pull request #593 from actions/rename-to-main
Rename to main
2020-07-15 16:41:33 -07:00
Andy McKay aa2ec78d14 rename to main 2020-07-15 16:21:25 -07:00
Andy McKay eeaa6d60cd Merge pull request #575 from koshilife/feature/573_update_deprecated_ruby_version
Update deprecated for actions/setup-ruby to on gem-push.yml
2020-07-15 11:01:59 -07:00
Andy McKay 84197f1cbe Merge branch 'master' into feature/573_update_deprecated_ruby_version 2020-07-15 11:01:05 -07:00
Andy McKay a4013e698d Merge pull request #584 from jcansdale/patch-1
Include Bearer in GEM_HOST_API_KEY
2020-07-15 09:10:38 -07:00
Christopher Schleiden 930a2cac2b Update PR template to refer to $default-branch 2020-07-14 12:57:43 -07:00
Christopher Schleiden 920aa0286c Merge pull request #590 from actions/cschleiden/use-default-branch-token
Use $default-branch token
2020-07-14 11:11:20 -07:00
Christopher Schleiden 7ed78293f7 Use repository link 2020-07-13 12:13:03 -07:00
Christopher Schleiden abf7f258d1 Use $default-branch token 2020-07-13 12:12:41 -07:00
Jamie Cansdale bd169be472 Use ruby-version instead of version
This fixes warning:
Input 'version' has been deprecated with message: The version property will not be supported after October 1, 2019. Use ruby-version instead
2020-07-10 11:25:05 +01:00
Jamie Cansdale 0ca3f2a990 Remove Bearer from printf .gem/credentials 2020-07-10 11:15:29 +01:00
Jamie Cansdale 9e8735b0e6 Use ${{ github.repository_owner }} as OWNER 2020-07-10 11:12:02 +01:00
Jamie Cansdale 15e1039f3f Include Bearer in GEM_HOST_API_KEY 2020-07-10 10:55:13 +01:00
Christopher Schleiden 7e9fc80858 Merge pull request #583 from actions/cschleiden/move-manual-to-automation
Move manual workflow template to automation category
2020-07-09 11:07:19 -07:00
Christopher Schleiden d84eed709f Move manual workflow template to automation category 2020-07-09 08:32:58 -07:00
Christopher Schleiden 4aa38dfed2 Merge pull request #579 from actions/cschleiden/add-manual-template
Add manually triggered workflow template
2020-07-08 12:03:22 -07:00
Christopher Schleiden b79be1ea1a Add manually triggered workflow template 2020-07-07 14:07:47 -07:00
Jonathan Clem be562a7239 Merge pull request #185 from iangreenleaf/elixir-caching
Add caching to Elixir workflow
2020-07-01 17:06:52 -04:00
Jonathan Clem 9995e35e75 Cache only Elixir dependencies, not build 2020-07-01 17:06:09 -04:00
Bradley Austin Davis c85b474fcc Merge branch 'master' into master 2020-07-01 13:16:54 -07:00
Jonathan Clem cb6cee5157 Update elixir.yml 2020-07-01 14:14:45 -04:00
Jonathan Clem 97ae763335 Merge branch 'master' into elixir-caching 2020-07-01 14:13:53 -04:00
Jonathan Clem b4f1aae32f Use sentence casing 2020-07-01 14:09:21 -04:00
Jonathan Clem 3dc05114be Merge pull request #571 from henrik/patch-3
elixir.yml: Specify latest Elixir/OTP versions
2020-07-01 14:08:36 -04:00
Jonathan Clem ac240939ca Merge branch 'master' into patch-3 2020-07-01 14:06:15 -04:00
Kenji Koshikawa dabe11f6f7 refs #573 Update deprecated for actions/setup-ruby to on gem-push.yml 2020-07-02 00:48:02 +09:00
Jonathan Clem b0521d7270 Merge pull request #570 from henrik/patch-1
elixir.yml: More consistent case
2020-06-30 10:46:45 -04:00
Henrik Nyh 0159b6df78 elixir.yml: Specify latest Elixir/OTP versions
There is an OTP 23.0 but 22.3 is the max that latest Elixir supports currently.
2020-06-29 17:20:56 +01:00
Henrik Nyh e4f46dac76 elixir.yml: More consistent case
When running this action, it will show steps like "Set up job", "Initialize containers" and "Complete job", which are not in Title Case. Nor is "Set up Elixir".

(Some steps like "Post Restore cache" are some sort of half-Title Case, but they seem to be in the minority.)
2020-06-29 17:13:20 +01:00
Konrad Pabjan 7ce8ea570d Merge pull request #569 from actions/jclem-patch-1
Improve name of "Setup elixir" step in Elixir workflow
2020-06-29 18:04:30 +02:00
Jonathan Clem f1fa7ed328 Improve name of "Setup elixir" step in Elixir workflow 2020-06-29 11:44:45 -04:00
Andy McKay 3c3736f598 Merge pull request #552 from MasterOdin/patch-1
Update php cache key to use php in its name
2020-06-17 16:12:09 -07:00
Matthew Peveler 330ca7d1bd Update php cache key to use php in its name
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-06-16 18:44:47 -04:00
Andy McKay 0170fa5239 Merge pull request #544 from actions/andymckay-patch-2
Change the cron for stale
2020-06-08 08:35:02 -07:00
Andy McKay b4362decc9 Change the cron for stale
Let's move the recommended stale cron tab away from 00:00 UTC
2020-06-08 08:30:24 -07:00
Cameron Booth 2ffdd0654e Merge pull request #537 from actions/cdb/creator
Add creator field and populate for partner templates
2020-06-03 09:42:59 -07:00
Cameron Booth 4ad3f70666 Fix creator name
Co-authored-by: Christopher Schleiden <cschleiden@live.de>
2020-06-02 21:57:58 -07:00
Cameron Booth ef82cf1b1a Add creator to validation schema 2020-06-02 13:40:45 -07:00
Cameron Booth b7eff1ebe9 Add creator to partner workflows 2020-06-02 13:40:33 -07:00
Ben Heil 3d33354a89 Merge branch 'master' into conda 2020-05-29 08:39:34 -04:00
Bradley Austin Davis ef7fa950a5 Merge branch 'master' into master 2020-05-27 17:21:37 -07:00
Chris Patterson 87a8d83e30 Merge pull request #194 from christeredvartsen/feature/cache-composer-packages
PHP: Use actions/cache for the Composer packages
2020-05-27 10:59:05 -04:00
Chris Patterson 9fd65b230c Merge branch 'master' into feature/cache-composer-packages 2020-05-27 10:51:16 -04:00
Chris Patterson 297af984ba Update ci/php.yml 2020-05-27 10:49:51 -04:00
Andy McKay acf744fba2 Merge pull request #495 from ChristophDietrich/patch-1
Update docker-publish.yml
2020-05-25 13:20:05 -07:00
Andy McKay a6347ae487 Merge branch 'master' into patch-1 2020-05-25 13:19:11 -07:00
Andy McKay 95df65269a Merge pull request #501 from HonkingGoose/patch-1
Remove deprecated '--no-suggest' flag
2020-05-25 13:16:57 -07:00
Andy McKay e99fd3f99c Merge pull request #496 from bjornstar/add-node-14
Add node v14
2020-05-25 13:13:33 -07:00
Andy McKay 74d3867049 Merge branch 'master' into add-node-14 2020-05-25 13:12:59 -07:00
Andy McKay 54a75270fc Update pull_request_template.md 2020-05-25 13:10:00 -07:00
Andy McKay 0195d47eee Update pull_request_template.md 2020-05-25 13:09:29 -07:00
Andy McKay 5f92f1fdcc Merge pull request #436 from jakejarvis/docs-properties-file
docs: Correct location of corresponding properties.json files
2020-05-25 13:03:54 -07:00
Andy McKay 26cd848b53 Merge branch 'master' into docs-properties-file 2020-05-25 13:02:46 -07:00
Andy McKay 861a79590c Rename main.yml to label-close.yml 2020-05-25 12:57:07 -07:00
Andy McKay 9d886e00f9 Create main.yml 2020-05-25 12:55:49 -07:00
Andy McKay b188e5bd5b Merge pull request #515 from stevemar/cleanup-iks
clean up IBM title and icon
2020-05-25 12:52:14 -07:00
Andy McKay c36e34100d Merge branch 'master' into cleanup-iks 2020-05-25 12:51:37 -07:00
Andy McKay 9171a83a7a Merge pull request #527 from shesek/patch-1
Rust: Enable cargo colors for prettier output
2020-05-25 12:48:55 -07:00
Alejandro R. Mosteo 90ace1f9e2 Review: updated description in ada.properties.json 2020-05-25 12:28:05 +02:00
Nadav Ivgi 15d943af34 Rust: Enable cargo colors for prettier output 2020-05-24 08:21:13 +03:00
Edward Thomson b109c5bb93 Merge pull request #494 from edwardskrod/dev/edskrod/master/UpdateName
Update workflow name from "WPF .NET Core" to ".NET Core Desktop"
2020-05-22 20:48:12 +01:00
Edward Skrod f7188c3581 Resolved merge conflict. 2020-05-22 14:58:35 -04:00
Christopher Schleiden 05c6db96ec Merge pull request #520 from actions/cschleiden/reduce-ghes-workflows
Do not sync workflows without categories to GHES
2020-05-22 08:44:20 -07:00
Steve Martinelli 958d73b16f Merge branch 'master' into cleanup-iks 2020-05-21 18:24:17 -04:00
Christopher Schleiden de4411e097 Ensure "blank" template is available 2020-05-21 14:34:44 -07:00
Edward Skrod 0ac0954673 Remove WindowsForms 2020-05-21 17:33:37 -04:00
Christopher Schleiden bf6f0d9476 Merge branch 'master' into cschleiden/reduce-ghes-workflows 2020-05-21 14:16:48 -07:00
Cameron Booth 4828a683d0 Merge pull request #522 from actions/cdb/job-name
Update workflow job name
2020-05-21 14:16:04 -07:00
Cameron Booth 249441a642 Update job name 2020-05-21 13:55:36 -07:00
Christopher Schleiden 75ab82ca92 Merge pull request #521 from actions/jclem-patch-1
Define OTP/Elixir versions as strings
2020-05-21 13:35:46 -07:00
Jonathan Clem ec3fe32d43 Define OTP/Elixir versions as strings
As now [recommended](https://github.com/actions/setup-elixir/tree/2071beb570a53fb599fbd638d0a4f4577d57143d#usage) in the action's README, the configuration versions should be strings so that YAML parsing doesn't truncate something like `23.0` to `23`, which isn't equivalent.
2020-05-21 16:32:47 -04:00
Cameron Booth c63b77dfb3 Merge pull request #488 from edwardskrod/patch-1
Update the description with the proper case
2020-05-21 12:07:13 -07:00
Cameron Booth 727a831173 Merge pull request #492 from timdorr/patch-1
Fix source image name on docker tag
2020-05-21 11:54:55 -07:00
Christopher Schleiden 15c78f8802 Do not sync workflows without categories to GHES 2020-05-21 11:09:51 -07:00
Cameron Booth 60749c6653 Merge pull request #518 from cdb/cdb/dont-fail-on-no-changes
Don't fail GHES workflow if nothing changed
2020-05-20 16:43:49 -07:00
Cameron Booth 9a0a11423d Name the workflow 2020-05-20 16:31:33 -07:00
Cameron Booth 74c1e87c6b Don’t fail if no changes 2020-05-20 16:31:20 -07:00
Cameron Booth 9ea914b370 Merge pull request #517 from cdb/cdb/validate-data
Workflow to validate starter-workflows data is setup correctly
2020-05-20 16:03:12 -07:00
Cameron Booth 1bb7228652 Report success as well for visibility 2020-05-20 13:28:55 -07:00
Cameron Booth 3dd92068cf Add missing icons 2020-05-20 13:28:44 -07:00
Cameron Booth a83abcc872 Script to validate the main parts of workflow data 2020-05-20 13:28:25 -07:00
Christopher Schleiden 70c22e93a3 Name GHES sync workflow 2020-05-20 11:39:30 -07:00
Steve Martinelli e16f45a27f Update ibm.properties.json
one last tweak on official name
2020-05-18 23:13:25 -04:00
Steve Martinelli 641db8990d clean up IBM title and icon
using a different icon for IBM Cloud, ran svgo on it, too.
2020-05-17 22:16:47 -04:00
HonkingGoose 6eb7d7ec62 Remove deprecated '--no-suggest' flag
From the upgrade guide for Composer v2.0:
> Deprecated --no-suggest flag as it is not needed anymore

https://github.com/composer/composer/blob/master/UPGRADE-2.0.md#for-composer-cli-users
2020-05-08 10:48:15 +02:00
Bjorn Stromberg e4d7e16da8 Add node v14 2020-05-05 11:33:35 +09:00
Christoph Dietrich 7176a039ba Update docker-publish.yml
If you change the IMAGE_NAME to something which is not "image" it will fail, because at the bottom was a hard fix "image" inside. 

Now its running.
2020-05-04 12:42:34 +02:00
Edward Skrod fc935ad052 Added 'sign' to the workflow description. 2020-05-03 08:12:18 -04:00
Edward Skrod 6ea0e1fa16 Reword the description. 2020-05-03 08:04:10 -04:00
Edward Skrod dd7519f49e Rename the workflow files and properties files from WPF to Desktop. 2020-05-03 07:57:14 -04:00
Alejandro R. Mosteo 427f63ab83 Ada starter workflow, icon and properties 2020-05-02 13:14:19 +02:00
Tim Dorr f543db49db Fix source image name on docker tag
This resolves an issue created by #472
2020-05-01 18:53:57 -04:00
Edward Skrod 951dfd0da3 Update the description with the proper case
Update the "Wpf" in the description  to "WPF" to reflect the proper case.
2020-05-01 06:56:47 -04:00
Jim Hester 1c2ed214e0 Update R workflow based on review feedback 2020-04-16 13:31:59 -04:00
Jake Jarvis 4411c79d20 docs: Correct location of corresponding properties.json files
These *.properties.json files need to go in the properties/ subfolder of ci/ or automation/, not the root. Fixed example accordingly.
2020-03-24 11:38:16 -04:00
Gleb Bahmutov 17d9115a99 add comment about cypress gh action 2020-01-15 16:29:35 -05:00
Gleb Bahmutov 99a3541086 add Cypress starter workflow 2020-01-15 16:18:25 -05:00
fjy202 f30fb6cf24 pylint 2020-01-08 21:41:28 +08:00
fjy202 4d60a5fb72 Create pylint.yml 2020-01-08 21:39:31 +08:00
fjy202 36ead1ae0d Delete pylint.yml 2020-01-08 21:38:25 +08:00
fjy202 44de3f55de Pylint 2020-01-08 21:36:19 +08:00
Ben Heil 2697ad6a58 Changed name to be more descriptive 2019-11-15 13:27:03 -05:00
Ben Heil 2287251421 Improved description and fixed name 2019-11-15 13:26:42 -05:00
Ben Heil 5ce3567640 Added properties.json file 2019-11-15 13:23:52 -05:00
Ben Heil e5854d803d Add a workflow for managing packages with miniconda 2019-11-15 13:21:28 -05:00
Christer Edvartsen f1662044f7 Use actions/cache for the Composer packages 2019-11-14 15:24:32 +01:00
Ian Young 1a5f94bc68 Add caching to Elixir workflow 2019-11-07 12:47:49 -06:00
Brad Davis 9342fc5f27 Fix workflow name to drop 'CI' 2019-10-18 09:27:36 -07:00
Brad Davis d78d85f6c7 Applying naming feedback, adding comments and expanding target platforms 2019-10-18 09:24:35 -07:00
Jim Hester 99de2a93da Add R starter workflow
This adds a workflow for [R packages](https://www.r-project.org/). It
uses a [setup-r](https://github.com/r-lib/actions/tree/master/setup-r) action and two R packages
  - [remotes](https://remotes.r-lib.org/) - to install the R package dependencies
  - [rcmdcheck](https://github.com/r-lib/rcmdcheck) - to run and format the output of the package checking tool used in the R ecosystem.
2019-10-16 13:17:56 -04:00
Brad Davis d01030b5b8 Switch to out-of-source builds 2019-09-19 14:39:49 -07:00
Brad Davis 9de067fdf0 Add a starter cmake workflow 2019-08-16 10:21:30 -07:00
194 changed files with 2535 additions and 1413 deletions
@@ -0,0 +1,30 @@
---
name: Code Scanning onboarding
about: Captures all the information and tasks required to onboard a 3rd party project into Code Scanning
title: 'Code Scanning Partner: '
labels: 'code scanning'
assignees: ''
---
:wave: Thanks for your interest in integrating with Code Scanning! To ensure a swift onboarding of your integration, please provide the following `Requested information` and complete the `Action items` below:
## Requested information
- [ ] Name of your integration:
- [ ] Name of your product / company:
- [ ] Description of your integration:
- [ ] Languages supported by your integration:
- [ ] [For integrations leveraging GitHub Actions] PR for your proposed workflow:
- [ ] URL to an SVG logo representing your integration / product / company:
## Action items
- [ ] Apply to join the GitHub Technology Partner Program: [partner.github.com/apply](https://partner.github.com/apply?partnershipType=Technology+Partner)
- [ ] Develop your integration, by _either_ [following this guide for GitHub Actions](https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/uploading-a-sarif-file-to-github#uploading-a-code-scanning-analysis-with-github-actions), or [integrating directly with the REST API](https://docs.github.com/en/rest/reference/code-scanning#upload-a-sarif-file)
- [ ] [For integrations leveraging GitHub Actions] Submit a PR in this repo for your proposed starter workflow. The workflow should:
- [ ] Live in [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/code-scanning)
- [ ] Have a filename that is in accordance with your product / service / business name, in [_kebab-cased_ format](https://en.wikipedia.org/wiki/Kebab_case), with a `.yml` file extension
- [ ] Include comments describing the workflows behavior ([example](https://github.com/actions/starter-workflows/blob/c59b62dee0eae1f9f368b7011cf05c2fc42cf084/code-scanning/codeql.yml#L1-L11))
- [ ] Trigger on push, pull_request, and schedule events ([example](https://github.com/actions/starter-workflows/blob/c59b62dee0eae1f9f368b7011cf05c2fc42cf084/code-scanning/codeql.yml#L14-L21))
- [ ] Reference your GitHub Action using a 40-char commit SHA (e.g. `uses: github/codeql-action@a3a8231e64d3db0e7da0f3b56b9521dcccdfe412`)
- [ ] Update the `Requested information` above, ensuring all details are correct
- [ ] When ready, please ping `@actions/advanced-security-code-scanning` in a comment below, for a review :bow:
+16 -10
View File
@@ -1,7 +1,14 @@
Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](https://github.com/actions/starter-workflows/blob/master/CONTRIBUTING.md). Here's a few things for you to consider in this pull request:
This repository contains configuration for what users see when they click on the `Actions` tab and the setup page for Code Scanning.
- [ ] Include a good description of the workflow.
- [ ] Links to the language or tool will be nice (unless its really obvious)
It is not:
* A playground to try out scripts
* A place for you to create a workflow for your repository
---
**Please note that at this time we are only accepting new starter workflows for Code Scanning. Updates to existing starter workflows are fine.**
---
In the workflow and properties files:
@@ -12,20 +19,19 @@ In the workflow and properties files:
- [ ] Use sentence case for the names of workflows and steps, for example "Run tests".
- [ ] The name of CI workflows should only be the name of the language or platform: for example "Go" (not "Go CI" or "Go Build")
- [ ] Include comments in the workflow for any parts that are not obvious or could use clarification.
- [ ] CI workflows should run on `push` to `branches: [ master ]` and `pull_request` to `branches: [ master ]`.
Packaging workflows should run on `release` with `types: [ created ]`.
- [ ] CI workflows should run on `push` to `branches: [ $default-branch ]` and `pull_request` to `branches: [ $default-branch ]`.
- [ ] Packaging workflows should run on `release` with `types: [ created ]`.
- [ ] Code Scanning workflows should run on `push` to `branches: [ $default-branch, $protected-branches ]` and `pull_request` to `branches: [ $default-branch ]`. We also recommend a `schedule` trigger of `cron: $cron-weekly`.
Some general notes:
- [ ] This workflow must only use actions that are produced by GitHub, [in the `actions` organization](https://github.com/actions), **or**
This workflow must only use actions that are produced by the language or ecosystem that the workflow supports. These actions must be [published to the GitHub Marketplace](https://github.com/marketplace?type=actions). Workflows using these actions must reference the action using the full 40 character hash of the action's commit instead of a tag. Additionally, workflows must include the following comment at the top of the workflow file:
- [ ] This workflow must only use actions that are produced by the language or ecosystem that the workflow supports. These actions must be [published to the GitHub Marketplace](https://github.com/marketplace?type=actions). We recommend that these actions be referenced using the full 40 character hash of the action's commit instead of a tag. Additionally, workflows must include the following comment at the top of the workflow file:
```
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
```
- [ ] This workflow must not send data to any 3rd party service except for the purposes of installing dependencies.
- [ ] This workflow must not use a paid service or product.
- [ ] Automation and CI workflows should not send data to any 3rd party service except for the purposes of installing dependencies.
- [ ] Automation and CI workflows cannot be dependent on a paid service or product.
+19
View File
@@ -0,0 +1,19 @@
name: Close as a feature
on:
issues:
types: [labeled]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Close Issue
uses: peter-evans/close-issue@v1
if: contains(github.event.issue.labels.*.name, 'feature')
with:
comment: |
Thank you 🙇 for this request. This request has been classified as a feature by the maintainers.
We take all the requests for features seriously and have passed this on to the internal teams for their consideration.
Because any feature requires further maintenance and support in the long term by this team, we would like to exercise caution into adding new features. If this feature is something that can be implemented independently, please consider forking this repository and adding the feature.
+19
View File
@@ -0,0 +1,19 @@
name: Close as a support issue
on:
issues:
types: [labeled]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Close Issue
uses: peter-evans/close-issue@v1
if: contains(github.event.issue.labels.*.name, 'support')
with:
comment: |
Sorry, but we'd like to keep issues related to code in this repository. Thank you 🙇
If you have questions about writing workflows or action files, then please [visit the GitHub Community Forum's Actions Board](https://github.community/t5/GitHub-Actions/bd-p/actions)
If you are having an issue or question about GitHub Actions then please [contact customer support](https://help.github.com/en/articles/about-github-actions#contacting-support)
+20
View File
@@ -0,0 +1,20 @@
name: Mark stale issues and pull requests
on:
schedule:
- cron: "21 4 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has become stale and will be closed automatically within a period of time. Sorry about that.'
stale-pr-message: 'This pull request has become stale and will be closed automatically within a period of time. Sorry about that.'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
days-before-stale: 90
+9 -3
View File
@@ -1,7 +1,9 @@
name: Sync workflows for GHES
on:
push:
branches:
- master
- main
jobs:
sync:
@@ -22,5 +24,9 @@ jobs:
working-directory: ./script/sync-ghes
- run: |
git add -A
git commit -m "Updating GHES workflows"
- run: git push
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit"
else
git commit -m "Updating GHES workflows"
fi
- run: git push
+21
View File
@@ -0,0 +1,21 @@
name: Validate Data
on:
push:
pull_request:
jobs:
validate-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12"
- name: Validate workflows
run: |
npm ci
npx ts-node-script ./index.ts
working-directory: ./script/validate-data
+3
View File
@@ -0,0 +1,3 @@
* @actions/actions-experience
/code-scanning/ @actions/advanced-security-code-scanning
+9 -5
View File
@@ -4,17 +4,21 @@
Hi there 👋 We are excited that you want to contribute a new workflow to this repo. By doing this you are helping people get up and running with GitHub Actions and that's cool 😎.
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](https://github.com/actions/starter-workflows/blob/master/LICENSE).
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](https://github.com/actions/starter-workflows/blob/main/LICENSE).
Please note that this project is released with a [Contributor Code of Conduct](
https://github.com/actions/.github/blob/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
https://github.com/actions/.github/blob/main/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
**At this time we are only accepting new starter workflows for Code Scanning**
### Previous guidelines for new starter workflows.
Before merging a new workflow, the following requirements need to be met:
- Should be as simple as is needed for the service.
- There are many programming languages and tools out there. Right now we don't have a page that allows for a really large number of workflows, so we do have to be a little choosy about what we accept. Less popular tools or languages might not be accepted.
- Should not send data to any 3rd party service except for the purposes of installing dependencies.
- Cannot use an Action that isn't in the `actions` organization.
- Cannot be to a paid service or product.
- Automation and CI workflows should not send data to any 3rd party service except for the purposes of installing dependencies.
- Automation and CI workflows cannot be dependent on a paid service or product.
- We recommend that Actions outside of the `actions` organization be pinned to a specific SHA.
Thank you
+3 -2
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019 GitHub
Copyright (c) 2020 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,5 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE. THIS LICENSE DOES NOT GRANT YOU RIGHTS TO USE ANY CONTRIBUTORS'
NAME, LOGO, OR TRADEMARKS.
+2 -1
View File
@@ -13,11 +13,12 @@ These are the workflow files for helping people get started with GitHub Actions.
**Directory structure:**
* [ci](ci): solutions for Continuous Integration
* [automation](automation): solutions for automating workflows.
* [code-scanning](code-scanning): starter workflows for [Code Scanning](https://github.com/features/security)
* [icons](icons): svg icons for the relevant template
Each workflow must be written in YAML and have a `.yml` extension. They also need a corresponding `.properties.json` file that contains extra metadata about the workflow (this is displayed in the GitHub.com UI).
For example: `ci/python-django.yml` and `ci/python-django.properties.json`.
For example: `ci/django.yml` and `ci/properties/django.properties.json`.
**Valid properties:**
* `name`: the name shown in onboarding
+13
View File
@@ -0,0 +1,13 @@
name: Greetings
on: [pull_request, issues]
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Message that will be displayed on users first issue'
pr-message: 'Message that will be displayed on users first pull request'
+19
View File
@@ -0,0 +1,19 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler
name: Labeler
on: [pull_request]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
+1 -3
View File
@@ -15,8 +15,6 @@ on:
default: 'World'
# Input has to be provided for the workflow to run
required: true
# The data type of the input
type: string
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
@@ -29,4 +27,4 @@ jobs:
steps:
# Runs a single command using the runners shell
- name: Send greeting
run: echo "Hello ${{ inputs.name }}"
run: echo "Hello ${{ github.event.inputs.name }}"
@@ -0,0 +1,6 @@
{
"name": "Greetings",
"description": "Greets users who are first time contributors to the repo",
"iconName": "octicon smiley",
"categories": ["Automation", "SDLC"]
}
@@ -0,0 +1,6 @@
{
"name": "Labeler",
"description": "Labels pull requests based on the files changed",
"iconName": "octicon tag",
"categories": ["Automation", "SDLC"]
}
+2 -10
View File
@@ -1,24 +1,16 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests
on:
schedule:
- cron: $cron-daily
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
+2 -2
View File
@@ -13,11 +13,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Set up GNAT toolchain
run: >
sudo apt-get update &&
sudo apt-get update &&
sudo apt-get install gnat gprbuild
- name: Build
+118
View File
@@ -0,0 +1,118 @@
# This workflow will build and push a new container image to Alibaba Cloud Container Registry (ACR),
# and then will deploy it to Alibaba Cloud Container Service for Kubernetes (ACK), when a release is created.
#
# To use this workflow, you will need to complete the following set-up steps:
#
# 1. Create an ACR repository to store your container images.
# You can use ACR EE instance for more security and better performance.
# For instructions see https://www.alibabacloud.com/help/doc-detail/142168.htm
#
# 2. Create an ACK cluster to run your containerized application.
# You can use ACK Pro cluster for more security and better performance.
# For instructions see https://www.alibabacloud.com/help/doc-detail/95108.htm
#
# 3. Store your AccessKey pair in GitHub Actions secrets named `ACCESS_KEY_ID` and `ACCESS_KEY_SECRET`.
# For instructions on setting up secrets see: https://developer.github.com/actions/managing-workflows/storing-secrets/
#
# 4. Change the values for the REGION_ID, REGISTRY, NAMESPACE, IMAGE, ACK_CLUSTER_ID, and ACK_DEPLOYMENT_NAME.
#
name: Build and Deploy to ACK
on:
release:
types: [created]
# Environment variables available to all jobs and steps in this workflow.
env:
REGION_ID: cn-hangzhou
REGISTRY: registry.cn-hangzhou.aliyuncs.com
NAMESPACE: namespace
IMAGE: repo
TAG: ${{ github.sha }}
ACK_CLUSTER_ID: clusterID
ACK_DEPLOYMENT_NAME: nginx-deployment
ACR_EE_REGISTRY: myregistry.cn-hangzhou.cr.aliyuncs.com
ACR_EE_INSTANCE_ID: instanceID
ACR_EE_NAMESPACE: namespace
ACR_EE_IMAGE: repo
ACR_EE_TAG: ${{ github.sha }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# 1.1 Login to ACR
- name: Login to ACR with the AccessKey pair
uses: aliyun/acr-login@v1
with:
region-id: "${{ env.REGION_ID }}"
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
# 1.2 Buid and push image to ACR
- name: Build and push image to ACR
run: |
docker build --tag "$REGISTRY/$NAMESPACE/$IMAGE:$TAG" .
docker push "$REGISTRY/$NAMESPACE/$IMAGE:$TAG"
# 1.3 Scan image in ACR
- name: Scan image in ACR
uses: aliyun/acr-scan@v1
with:
region-id: "${{ env.REGION_ID }}"
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
repository: "${{ env.NAMESPACE }}/${{ env.IMAGE }}"
tag: "${{ env.TAG }}"
# 2.1 (Optional) Login to ACR EE
- uses: actions/checkout@v2
- name: Login to ACR EE with the AccessKey pair
uses: aliyun/acr-login@v1
with:
login-server: "https://${{ env.ACR_EE_REGISTRY }}"
region-id: "${{ env.REGION_ID }}"
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
instance-id: "${{ env.ACR_EE_INSTANCE_ID }}"
# 2.2 (Optional) Build and push image ACR EE
- name: Build and push image to ACR EE
run: |
docker build -t "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG" .
docker push "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG"
# 2.3 (Optional) Scan image in ACR EE
- name: Scan image in ACR EE
uses: aliyun/acr-scan@v1
with:
region-id: "${{ env.REGION_ID }}"
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
instance-id: "${{ env.ACR_EE_INSTANCE_ID }}"
repository: "${{ env.ACR_EE_NAMESPACE}}/${{ env.ACR_EE_IMAGE }}"
tag: "${{ env.ACR_EE_TAG }}"
# 3.1 Set ACK context
- name: Set K8s context
uses: aliyun/ack-set-context@v1
with:
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
cluster-id: "${{ env.ACK_CLUSTER_ID }}"
# 3.2 Deploy the image to the ACK cluster
- name: Set up Kustomize
run: |-
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash /dev/stdin 3.8.6
- name: Deploy
run: |-
./kustomize edit set image REGISTRY/NAMESPACE/IMAGE:TAG=$REGISTRY/$NAMESPACE/$IMAGE:$TAG
./kustomize build . | kubectl apply -f -
kubectl rollout status deployment/$ACK_DEPLOYMENT_NAME
kubectl get services -o wide
+4 -7
View File
@@ -12,14 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
+5 -6
View File
@@ -1,5 +1,5 @@
# This workflow will build a Java project with Ant
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
name: Java CI
@@ -15,11 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: '11'
distribution: 'temurin'
java-version: 1.8
- name: Build with Ant
run: ant -noinput -buildfile build.xml
+80
View File
@@ -0,0 +1,80 @@
# This workflow will build and push a new container image to Amazon ECR,
# and then will deploy a new task definition to Amazon ECS, when a release is created
#
# To use this workflow, you will need to complete the following set-up steps:
#
# 1. Create an ECR repository to store your images.
# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`.
# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name.
# Replace the value of `aws-region` in the workflow below with your repository's region.
#
# 2. Create an ECS task definition, an ECS cluster, and an ECS service.
# For example, follow the Getting Started guide on the ECS console:
# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun
# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names.
#
# 3. Store your ECS task definition as a JSON file in your repository.
# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`.
# Replace the value of `task-definition` in the workflow below with your JSON file's name.
# Replace the value of `container-name` in the workflow below with the name of the container
# in the `containerDefinitions` section of the task definition.
#
# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
# See the documentation for each action used below for the recommended IAM policies for this IAM user,
# and best practices on handling the access key credentials.
on:
release:
types: [created]
name: Deploy to Amazon ECS
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: my-ecr-repo
IMAGE_TAG: ${{ github.sha }}
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: sample-app
image: ${{ steps.build-image.outputs.image }}
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: sample-app-service
cluster: default
wait-for-service-stability: true
+50
View File
@@ -0,0 +1,50 @@
# This workflow will build and push a node.js application to an Azure Web App when a release is created.
#
# This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/azure/app-service/app-service-plan-manage#create-an-app-service-plan
#
# To configure this workflow:
#
# 1. For Linux apps, add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set it to true in your app **before downloading the file**.
# For more instructions see: https://docs.microsoft.com/azure/app-service/configure-common#configure-app-settings
#
# 2. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile.
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
#
# 3. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below).
#
# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions
# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples
on:
release:
types: [created]
env:
AZURE_WEBAPP_NAME: your-app-name # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: '10.x' # set this to the node version to use
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: npm install, build, and test
run: |
# Build and test the project, then
# deploy to Azure Web App.
npm install
npm run build --if-present
npm run test --if-present
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
+2 -2
View File
@@ -2,7 +2,7 @@
name: CI
# Controls when the workflow will run
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the $default-branch branch
push:
@@ -23,7 +23,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run a one-line script
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: configure
run: ./configure
- name: make
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Install dependencies
run: lein deps
- name: Run tests
-75
View File
@@ -1,75 +0,0 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on multiple platforms
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
# Set up a matrix to run the following 3 configurations:
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
c_compiler: [gcc, clang, cl]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
exclude:
- os: windows-latest
c_compiler: gcc
- os: windows-latest
c_compiler: clang
- os: ubuntu-latest
c_compiler: cl
steps:
- uses: actions/checkout@v3
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}
-39
View File
@@ -1,39 +0,0 @@
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: CMake on a single platform
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}
+46
View File
@@ -0,0 +1,46 @@
name: CMake
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{github.workspace}}/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
image: crystallang/crystal
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Install dependencies
run: shards install
- name: Run tests
+29
View File
@@ -0,0 +1,29 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: D
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
- name: 'Build & Test'
run: |
# Build the project, with its main file included, without unittests
dub build --compiler=$DC
# Build and run tests, as defined by `unittest` configuration
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
# See https://dub.pm/package-format-json.html#configurations
dub test --compiler=$DC
+41
View File
@@ -0,0 +1,41 @@
name: Dart
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
# Note that this workflow uses the latest stable version of the Dart SDK.
# Docker images for other release channels - like dev and beta - are also
# available. See https://hub.docker.com/r/google/dart/ for the available
# images.
container:
image: google/dart:latest
steps:
- uses: actions/checkout@v2
- name: Print Dart SDK version
run: dart --version
- name: Install dependencies
run: dart pub get
# Uncomment this step to verify the use of 'dart format' on each commit.
# - name: Verify formatting
# run: dart format --output=none --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: dart analyze
# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
run: dart test
+39
View File
@@ -0,0 +1,39 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS.
# For more information see: https://github.com/denolib/setup-deno
name: Deno
on:
push:
branches: [$default-branch]
pull_request:
branches: [$default-branch]
jobs:
test:
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS
strategy:
matrix:
deno: ["v1.x", "nightly"]
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Setup Deno
uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96
with:
deno-version: ${{ matrix.deno }} # tests across multiple Deno versions
- name: Cache Dependencies
run: deno cache deps.ts
- name: Run Tests
run: deno test -A --unstable
+2 -2
View File
@@ -16,9 +16,9 @@ jobs:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
+1 -1
View File
@@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
+76
View File
@@ -0,0 +1,76 @@
name: Docker
on:
push:
# Publish `$default-branch` as Docker `latest` image.
branches:
- $default-branch
# Publish `v1.2.3` tags as releases.
tags:
- v*
# Run tests for any PRs.
pull_request:
env:
# TODO: Change variable to your image's name.
IMAGE_NAME: image
jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
if [ -f docker-compose.test.yml ]; then
docker-compose --file docker-compose.test.yml build
docker-compose --file docker-compose.test.yml run sut
else
docker build . --file Dockerfile
fi
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push:
# Ensure test job passes before pushing image.
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Push image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "$default-branch" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
+115
View File
@@ -0,0 +1,115 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build, test, sign and package a WPF or Windows Forms desktop application
# built on .NET Core.
# To learn how to migrate your existing application to .NET Core,
# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework
#
# To configure this workflow:
#
# 1. Configure environment variables
# GitHub sets default environment variables for every workflow run.
# Replace the variables relative to your project in the "env" section below.
#
# 2. Signing
# Generate a signing certificate in the Windows Application
# Packaging Project or add an existing signing certificate to the project.
# Next, use PowerShell to encode the .pfx file using Base64 encoding
# by running the following Powershell script to generate the output string:
#
# $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte
# [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt'
#
# Open the output file, SigningCertificate_Encoded.txt, and copy the
# string inside. Then, add the string to the repo as a GitHub secret
# and name it "Base64_Encoded_Pfx."
# For more information on how to configure your signing certificate for
# this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing
#
# Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key".
# See "Build the Windows Application Packaging project" below to see how the secret is used.
#
# For more information on GitHub Actions, refer to https://github.com/features/actions
# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications,
# refer to https://github.com/microsoft/github-actions-for-desktop-apps
name: .NET Core Desktop
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: your-solution-name # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
Wap_Project_Path: your-wap-project-path # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj.
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# Decode the base 64 encoded pfx and save the Signing_Certificate
- name: Decode the pfx
run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
$certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
# Create the app package by building and packaging the Windows Application Packaging project
- name: Create the app package
run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }}
env:
Appx_Bundle: Always
Appx_Bundle_Platforms: x86|x64
Appx_Package_Build_Mode: StoreUpload
Configuration: ${{ matrix.configuration }}
# Remove the pfx
- name: Remove the pfx
run: Remove-Item -path $env:Wap_Project_Directory\$env:Signing_Certificate
# Upload the MSIX package: https://github.com/marketplace/actions/upload-artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: MSIX Package
path: ${{ env.Wap_Project_Directory }}\AppPackages
+3 -6
View File
@@ -1,6 +1,3 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
@@ -15,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
+31
View File
@@ -0,0 +1,31 @@
name: Elixir CI
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: actions/setup-elixir@v1
with:
elixir-version: '1.10.3' # Define the elixir version [required]
otp-version: '22.3' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
+1 -4
View File
@@ -6,9 +6,6 @@ on:
pull_request:
branches: [ $default-branch ]
permissions:
contents: read
jobs:
build:
@@ -19,7 +16,7 @@ jobs:
image: erlang:22.0.7
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Compile
run: rebar3 compile
- name: Run tests
+42
View File
@@ -0,0 +1,42 @@
name: Ruby Gem
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Publish to GPR
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}
- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -1,66 +0,0 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow lets you generate SLSA provenance file for your project.
# The generation satisfies level 3 for the provenance requirements - see https://slsa.dev/spec/v0.1/requirements
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
# https://github.com/slsa-framework/slsa-github-generator.
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
name: SLSA generic generator
on:
workflow_dispatch:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
outputs:
digests: ${{ steps.hash.outputs.digests }}
steps:
- uses: actions/checkout@v3
# ========================================================
#
# Step 1: Build your artifacts.
#
# ========================================================
- name: Build artifacts
run: |
# These are some amazing artifacts.
echo "artifact1" > artifact1
echo "artifact2" > artifact2
# ========================================================
#
# Step 2: Add a step to generate the provenance subjects
# as shown below. Update the sha256 sum arguments
# to include all binaries that you generate
# provenance for.
#
# ========================================================
- name: Generate subject for provenance
id: hash
run: |
set -euo pipefail
# List the artifacts the provenance will refer to.
files=$(ls artifact*)
# Generate the subjects (base64 encoded).
echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}"
provenance:
needs: [build]
permissions:
actions: read # To read the workflow path.
id-token: write # To sign the provenance.
contents: write # To add assets to a release.
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.4.0
with:
base64-subjects: "${{ needs.build.outputs.digests }}"
upload-assets: true # Optional: Upload to a new release
-38
View File
@@ -1,38 +0,0 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow lets you compile your Go project using a SLSA3 compliant builder.
# This workflow will generate a so-called "provenance" file describing the steps
# that were performed to generate the final binary.
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
# https://github.com/slsa-framework/slsa-github-generator.
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
name: SLSA Go releaser
on:
workflow_dispatch:
release:
types: [created]
permissions: read-all
jobs:
# ========================================================================================================================================
# Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project.
# See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file
#=========================================================================================================================================
build:
permissions:
id-token: write # To sign.
contents: write # To upload release assets.
actions: read # To read workflow path.
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.4.0
with:
go-version: 1.17
# =============================================================================================================
# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects
# =============================================================================================================
+3 -6
View File
@@ -1,6 +1,3 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
@@ -14,12 +11,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v2
with:
go-version: '1.20'
go-version: 1.15
- name: Build
run: go build -v ./...
+79
View File
@@ -0,0 +1,79 @@
# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE when a release is created
#
# To configure this workflow:
#
# 1. Ensure that your repository contains the necessary configuration for your Google Kubernetes Engine cluster, including deployment.yml, kustomization.yml, service.yml, etc.
#
# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project and GKE_SA_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs).
#
# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, and DEPLOYMENT_NAME environment variables (below).
#
# For more support on how to run the workflow, please visit https://github.com/google-github-actions/setup-gcloud/tree/master/example-workflows/gke
name: Build and Deploy to GKE
on:
release:
types: [created]
env:
PROJECT_ID: ${{ secrets.GKE_PROJECT }}
GKE_CLUSTER: cluster-1 # TODO: update to cluster name
GKE_ZONE: us-central1-c # TODO: update to cluster zone
DEPLOYMENT_NAME: gke-test # TODO: update to deployment name
IMAGE: static-site
jobs:
setup-build-publish-deploy:
name: Setup, Build, Publish, and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@v0.2.0
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}
# Configure Docker to use the gcloud command-line tool as a credential
# helper for authentication
- run: |-
gcloud --quiet auth configure-docker
# Get the GKE credentials so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@v0.2.1
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}
# Build the Docker image
- name: Build
run: |-
docker build \
--tag "gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
.
# Push the Docker image to Google Container Registry
- name: Publish
run: |-
docker push "gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA"
# Set up kustomize
- name: Set up Kustomize
run: |-
curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64
chmod u+x ./kustomize
# Deploy the Docker image to the GKE cluster
- name: Deploy
run: |-
./kustomize edit set image gcr.io/PROJECT_ID/IMAGE:TAG=gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA
./kustomize build . | kubectl apply -f -
kubectl rollout status deployment/$DEPLOYMENT_NAME
kubectl get services -o wide
+33
View File
@@ -0,0 +1,33 @@
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle
name: Gradle Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Gradle
run: gradle build
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
run: gradle publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
+26
View File
@@ -0,0 +1,26 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
+40
View File
@@ -0,0 +1,40 @@
name: Haskell CI
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-haskell@v1
with:
ghc-version: '8.10.3'
cabal-version: '3.2'
- name: Cache
uses: actions/cache@v1
env:
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: |
cabal update
cabal build --only-dependencies --enable-tests --enable-benchmarks
- name: Build
run: cabal build --enable-tests --enable-benchmarks all
- name: Run tests
run: cabal test all
+74
View File
@@ -0,0 +1,74 @@
# This workflow will build a docker container, publish it to IBM Container Registry, and deploy it to IKS when a release is created
#
# To configure this workflow:
#
# 1. Ensure that your repository contains a Dockerfile
# 2. Setup secrets in your repository by going to settings: Create ICR_NAMESPACE and IBM_CLOUD_API_KEY
# 3. Change the values for the IBM_CLOUD_REGION, REGISTRY_HOSTNAME, IMAGE_NAME, IKS_CLUSTER, DEPLOYMENT_NAME, and PORT
name: Build and Deploy to IKS
on:
release:
types: [created]
# Environment variables available to all jobs and steps in this workflow
env:
GITHUB_SHA: ${{ github.sha }}
IBM_CLOUD_API_KEY: ${{ secrets.IBM_CLOUD_API_KEY }}
IBM_CLOUD_REGION: us-south
ICR_NAMESPACE: ${{ secrets.ICR_NAMESPACE }}
REGISTRY_HOSTNAME: us.icr.io
IMAGE_NAME: iks-test
IKS_CLUSTER: example-iks-cluster-name-or-id
DEPLOYMENT_NAME: iks-test
PORT: 5001
jobs:
setup-build-publish-deploy:
name: Setup, Build, Publish, and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Download and Install IBM Cloud CLI
- name: Install IBM Cloud CLI
run: |
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud --version
ibmcloud config --check-version=false
ibmcloud plugin install -f kubernetes-service
ibmcloud plugin install -f container-registry
# Authenticate with IBM Cloud CLI
- name: Authenticate with IBM Cloud CLI
run: |
ibmcloud login --apikey "${IBM_CLOUD_API_KEY}" -r "${IBM_CLOUD_REGION}" -g default
ibmcloud cr region-set "${IBM_CLOUD_REGION}"
ibmcloud cr login
# Build the Docker image
- name: Build with Docker
run: |
docker build -t "$REGISTRY_HOSTNAME"/"$ICR_NAMESPACE"/"$IMAGE_NAME":"$GITHUB_SHA" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" .
# Push the image to IBM Container Registry
- name: Push the image to ICR
run: |
docker push $REGISTRY_HOSTNAME/$ICR_NAMESPACE/$IMAGE_NAME:$GITHUB_SHA
# Deploy the Docker image to the IKS cluster
- name: Deploy to IKS
run: |
ibmcloud ks cluster config --cluster $IKS_CLUSTER
kubectl config current-context
kubectl create deployment $DEPLOYMENT_NAME --image=$REGISTRY_HOSTNAME/$ICR_NAMESPACE/$IMAGE_NAME:$GITHUB_SHA --dry-run -o yaml > deployment.yaml
kubectl apply -f deployment.yaml
kubectl rollout status deployment/$DEPLOYMENT_NAME
kubectl create service loadbalancer $DEPLOYMENT_NAME --tcp=80:$PORT --dry-run -o yaml > service.yaml
kubectl apply -f service.yaml
kubectl get services -o wide
+3 -5
View File
@@ -13,7 +13,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
@@ -25,8 +25,7 @@ jobs:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
@@ -36,8 +35,7 @@ jobs:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
+2 -2
View File
@@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
+35
View File
@@ -0,0 +1,35 @@
name: Laravel
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
laravel-tests:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
with:
php-version: '8.0'
- uses: actions/checkout@v2
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: vendor/bin/phpunit
-27
View File
@@ -1,27 +0,0 @@
name: Makefile CI
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: configure
run: ./configure
- name: Install dependencies
run: make
- name: Run check
run: make check
- name: Run distcheck
run: make distcheck
+6 -10
View File
@@ -1,5 +1,5 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
name: Maven Package
@@ -11,17 +11,13 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: '11'
distribution: 'temurin'
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
@@ -31,4 +27,4 @@ jobs:
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
+24
View File
@@ -0,0 +1,24 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
+32
View File
@@ -0,0 +1,32 @@
name: MSBuild
on: [push]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
+5 -6
View File
@@ -1,5 +1,5 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
@@ -16,16 +16,15 @@ jobs:
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
-28
View File
@@ -1,28 +0,0 @@
name: NodeJS with Grunt
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
grunt
-28
View File
@@ -1,28 +0,0 @@
name: NodeJS with Gulp
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
gulp
-36
View File
@@ -1,36 +0,0 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test
publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: $registry-url(npm)
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
+21 -7
View File
@@ -1,5 +1,5 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
@@ -11,10 +11,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 12
- run: npm ci
- run: npm test
@@ -22,12 +22,26 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: $registry-url(npm)
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
-30
View File
@@ -1,30 +0,0 @@
name: Xcode - Build and Analyze
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
name: Build and analyse default scheme using xcodebuild command
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build
env:
scheme: ${{ 'default' }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}
+152
View File
@@ -0,0 +1,152 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
### The OpenShift Starter workflow will:
# - Checkout your repository
# - Perform a Docker build
# - Push the built image to an image registry
# - Log in to your OpenShift cluster
# - Create an OpenShift app from the image and expose it to the internet.
### Before you begin:
# - Have write access to a container image registry such as quay.io or Dockerhub.
# - Have access to an OpenShift cluster.
# - For instructions to get started with OpenShift see https://www.openshift.com/try
# - The project you wish to add this workflow to should have a Dockerfile.
# - If you don't have a Dockerfile at the repository root, see the buildah-build step.
# - Builds from scratch are also available, but require more configuration.
### To get the workflow running:
# 1. Add this workflow to your repository.
# 2. Edit the top-level 'env' section, which contains a list of environment variables that must be configured.
# 3. Create the secrets referenced in the 'env' section under your repository Settings.
# 4. Edit the 'branches' in the 'on' section to trigger the workflow on a push to your branch.
# 5. Commit and push your changes.
# For a more sophisticated example, see https://github.com/redhat-actions/spring-petclinic/blob/main/.github/workflows/petclinic-sample.yaml
# Also see our GitHub organization, https://github.com/redhat-actions/
name: OpenShift
# ⬇️ Modify the fields marked with ⬇️ to fit your project, and create any secrets that are referenced.
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
env:
# ⬇️ EDIT with your registry and registry path.
REGISTRY: quay.io/<username>
# ⬇️ EDIT with your registry username.
REGISTRY_USER: <username>
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
# ⬇️ EDIT to log into your OpenShift cluster and set up the context.
# See https://github.com/redhat-actions/oc-login#readme for how to retrieve these values.
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }}
OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }}
# ⬇️ EDIT with the port your application should be accessible on.
APP_PORT: 8080
# ⬇️ EDIT if you wish to set the kube context's namespace after login. Leave blank to use the default namespace.
OPENSHIFT_NAMESPACE: ""
# If you wish to manually provide the APP_NAME and TAG, set them here, otherwise they will be auto-detected.
APP_NAME: ""
TAG: ""
on:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
push:
# Edit to the branch(es) you want to build and deploy on each push.
branches: [ $default-branch ]
jobs:
openshift-ci-cd:
name: Build and deploy to OpenShift
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Determine app name
if: env.APP_NAME == ''
run: |
echo "APP_NAME=$(basename $PWD)" | tee -a $GITHUB_ENV
- name: Determine tag
if: env.TAG == ''
run: |
echo "TAG=${GITHUB_SHA::7}" | tee -a $GITHUB_ENV
# https://github.com/redhat-actions/buildah-build#readme
- name: Build from Dockerfile
uses: redhat-actions/buildah-build@v1
with:
image: ${{ env.APP_NAME }}
tag: ${{ env.TAG }}
# If you don't have a dockerfile, see:
# https://github.com/redhat-actions/buildah-build#building-from-scratch
# Otherwise, point this to your Dockerfile relative to the repository root.
dockerfiles: |
./Dockerfile
# https://github.com/redhat-actions/push-to-registry#readme
- name: Push to registry
id: push-to-registry
uses: redhat-actions/push-to-registry@v1
with:
image: ${{ env.APP_NAME }}
tag: ${{ env.TAG }}
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
# The path the image was pushed to is now stored in ${{ steps.push-to-registry.outputs.registry-path }}
# oc-login works on all platforms, but oc must be installed first.
# The GitHub Ubuntu runner already includes oc.
# Otherwise, https://github.com/redhat-actions/oc-installer#readme is available.
# https://github.com/redhat-actions/oc-login#readme
- name: Log in to OpenShift
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ env.OPENSHIFT_SERVER }}
openshift_token: ${{ env.OPENSHIFT_TOKEN }}
insecure_skip_tls_verify: true
namespace: ${{ env.OPENSHIFT_NAMESPACE }}
# This step should create a deployment, service, and route to run your app and expose it to the internet.
# Feel free to replace this with 'oc apply', 'helm install', or however you like to deploy your app.
- name: Create and expose app
run: |
export IMAGE="${{ steps.push-to-registry.outputs.registry-path }}"
export PORT=${{ env.APP_PORT }}
export SELECTOR="app=${{ env.APP_NAME }}"
echo "SELECTOR=$SELECTOR" >> $GITHUB_ENV
set -x
# Take down any old deployment
oc delete all --selector="$SELECTOR"
oc new-app --name $APP_NAME --docker-image="$IMAGE"
# Make sure the app port is exposed
oc patch svc $APP_NAME -p "{ \"spec\": { \"ports\": [{ \"name\": \"$PORT-tcp\", \"port\": $PORT }] } }"
oc expose service $APP_NAME --port=$PORT
oc get all --selector="$SELECTOR"
set +x
export ROUTE="$(oc get route $APP_NAME -o jsonpath='{.spec.host}')"
echo "$APP_NAME is exposed at $ROUTE"
echo "ROUTE=$ROUTE" >> $GITHUB_ENV
- name: View application route
run: |
[[ -n ${{ env.ROUTE }} ]] || (echo "Determining application route failed in previous step"; exit 1)
echo "======================== Your application is available at: ========================"
echo ${{ env.ROUTE }}
echo "==================================================================================="
echo
echo "Your app can be taken down with: \"oc delete all --selector='${{ env.SELECTOR }}'\""
+5 -7
View File
@@ -6,23 +6,20 @@ on:
pull_request:
branches: [ $default-branch ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Validate composer.json and composer.lock
run: composer validate --strict
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
@@ -30,7 +27,8 @@ jobs:
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Ada",
"description": "Build Ada project with GPRbuild.",
"iconName": "ada",
"categories": ["Continuous integration", "Ada"]
"categories": ["Ada"]
}
@@ -0,0 +1,7 @@
{
"name": "Deploy to Alibaba Cloud ACK",
"description": "Deploy a container to Alibaba Cloud Container Service for Kubernetes (ACK).",
"creator": "Alibaba Cloud",
"iconName": "alibabacloud",
"categories": null
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Android CI",
"description": "Build an Android project with Gradle.",
"iconName": "android",
"categories": ["Continuous integration", "Java", "Mobile"]
"categories": ["Java", "Mobile"]
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Java with Ant",
"description": "Build and test a Java project with Apache Ant.",
"iconName": "ant",
"categories": ["Continuous integration", "Ant", "Java"]
"categories": ["Ant", "Java"]
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Deploy to Amazon ECS",
"description": "Deploy a container to an Amazon ECS service powered by AWS Fargate or Amazon EC2.",
"creator": "Amazon Web Services",
"iconName": "aws",
"categories": null
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Deploy Node.js to Azure Web App",
"description": "Build a Node.js project and deploy it to an Azure Web App.",
"creator": "Microsoft Azure",
"iconName": "azure",
"categories": null
}
-1
View File
@@ -1,7 +1,6 @@
{
"name": "Simple workflow",
"description": "Start with a file with the minimum necessary structure.",
"creator": "GitHub",
"iconName": "blank",
"categories": null
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "C/C++ with Make",
"description": "Build and test a C/C++ project using Make.",
"iconName": "c-cpp",
"categories": ["Continuous integration", "C", "C++"]
"categories": ["C", "C++"]
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Clojure",
"description": "Build and test a Clojure project with Leiningen.",
"iconName": "clojure",
"categories": ["Continuous integration", "Clojure", "Java"]
"categories": ["Clojure", "Java"]
}
@@ -1,6 +0,0 @@
{
"name": "CMake based, multi-platform projects",
"description": "Build and test a CMake based project on multiple platforms.",
"iconName": "cmake",
"categories": ["Continuous integration", "C", "C++"]
}
@@ -1,6 +0,0 @@
{
"name": "CMake based, single-platform projects",
"description": "Build and test a CMake based project on a single-platform.",
"iconName": "cmake",
"categories": ["Continuous integration", "C", "C++"]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "CMake based projects",
"description": "Build and test a CMake based project.",
"iconName": "cmake",
"categories": ["C", "C++"]
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Crystal",
"description": "Build and test a Crystal project.",
"iconName": "crystal",
"categories": ["Continuous integration", "Crystal"]
"categories": ["Crystal"]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "D",
"description": "Build and test a D project with dub.",
"iconName": "d",
"categories": [ "D" ]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Dart",
"description": "Build and test a Dart project with Pub.",
"iconName": "dart",
"categories": ["Dart"]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Deno",
"description": "Test your Deno project",
"iconName": "deno",
"categories": ["JavaScript", "TypeScript", "Deno"]
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Django",
"description": "Build and Test a Django Project",
"iconName": "django",
"categories": ["Continuous integration", "Python", "Django"]
"categories": ["Python", "Django"]
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Docker image",
"description": "Build a Docker image to deploy, run, or push to a registry.",
"iconName": "docker",
"categories": ["Continuous integration", "Dockerfile"]
"categories": ["Dockerfile"]
}
@@ -0,0 +1,6 @@
{
"name": "Publish Docker Container",
"description": "Build, test and push Docker image to GitHub Packages.",
"iconName": "docker",
"categories": ["Dockerfile"]
}
@@ -0,0 +1,6 @@
{
"name": ".NET Desktop",
"description": "Build, test, sign and publish a desktop application built on .NET.",
"iconName": "dotnet",
"categories": ["C#", "Visual Basic", "WPF", ".NET"]
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": ".NET",
"description": "Build and test a .NET or ASP.NET Core project.",
"iconName": "dotnet",
"categories": ["Continuous integration", "C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET", "AspNetCore", "DotNetConsole"]
"categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Elixir",
"description": "Build and test an Elixir project with Mix.",
"iconName": "elixir",
"categories": ["Elixir", "Erlang"]
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Erlang",
"description": "Build and test an Erlang project with rebar.",
"iconName": "erlang",
"categories": ["Continuous integration", "Erlang"]
"categories": ["Erlang"]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Ruby Gem",
"description": "Pushes a Ruby Gem to RubyGems and GitHub Package Registry.",
"iconName": "ruby-gems",
"categories": ["Ruby", "SDLC"]
}
@@ -1,7 +0,0 @@
{
"name": "SLSA Generic generator",
"creator": "Open Source Security Foundation (OpenSSF)",
"description": "Generate SLSA3 provenance for your existing release workflows",
"iconName": "generator-generic-ossf-slsa3-publish",
"categories": ["Continuous integration", "Go", "Elixir", "Erlang", "PHP", "Haskell", "Rust", "Java", "Scala", "Gradle", "Maven", "Python", "C", "C++", "TypeScript", "JavaScript", "npm", "Ruby", "HTML", "Composer", "Makefile", "Ada"]
}
@@ -1,7 +0,0 @@
{
"name": "SLSA Go releaser",
"creator": "Open Source Security Foundation (OpenSSF)",
"description": "Compile your Go project using a SLSA3 compliant builder",
"iconName": "go-ossf-slsa3-publish",
"categories": ["Continuous integration", "Go"]
}
+1 -1
View File
@@ -2,5 +2,5 @@
"name": "Go",
"description": "Build a Go project.",
"iconName": "go",
"categories": ["Continuous integration", "Go"]
"categories": ["Go"]
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Build and Deploy to GKE",
"description": "Build a docker container, publish it to Google Container Registry, and deploy to GKE.",
"creator": "Google Cloud",
"iconName": "googlegke",
"categories": null
}
@@ -0,0 +1,6 @@
{
"name": "Publish Java Package with Gradle",
"description": "Build a Java Package using Gradle and publish to GitHub Packages.",
"iconName": "gradle",
"categories": ["Java", "Gradle"]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Java with Gradle",
"description": "Build and test a Java project using a Gradle wrapper script.",
"iconName": "gradle",
"categories": ["Java", "Gradle"]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Haskell",
"description": "Build and test a Haskell project with Cabal.",
"iconName": "haskell",
"categories": ["Haskell"]
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Deploy to IBM Cloud Kubernetes Service",
"description": "Build a docker container, publish it to IBM Cloud Container Registry, and deploy to IBM Cloud Kubernetes Service.",
"creator": "IBM",
"iconName": "ibm",
"categories": null
}
-1
View File
@@ -3,7 +3,6 @@
"description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.",
"iconName": "xcode",
"categories": [
"Continuous integration",
"iOS",
"Xcode"
]
@@ -1,6 +1,6 @@
{
"name": "Jekyll using Docker image",
"name": "Jekyll",
"description": "Package a Jekyll site using the jekyll/builder Docker image.",
"iconName": "jekyll",
"categories": ["Continuous integration", "HTML"]
"categories": ["HTML"]
}
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Laravel",
"description": "Test a Laravel project.",
"iconName": "php",
"categories": [
"PHP",
"Laravel"
]
}
-6
View File
@@ -1,6 +0,0 @@
{
"name": "Build projects with Make",
"description": "Build and test a project using Make.",
"iconName": "makefile",
"categories": ["Continuous integration", "Makefile"]
}

Some files were not shown because too many files have changed in this diff Show More