From 9de067fdf0c7b6ee2863bbbe61bdb80f99e09aba Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 16 Aug 2019 10:21:30 -0700 Subject: [PATCH 001/366] Add a starter cmake workflow --- ci/cmake.yml | 17 + ci/properties/cmake.properties.json | 6 + icons/cmake.svg | 493 ++++++++++++++++++++++++++++ 3 files changed, 516 insertions(+) create mode 100644 ci/cmake.yml create mode 100644 ci/properties/cmake.properties.json create mode 100644 icons/cmake.svg diff --git a/ci/cmake.yml b/ci/cmake.yml new file mode 100644 index 0000000000..82373a6ea3 --- /dev/null +++ b/ci/cmake.yml @@ -0,0 +1,17 @@ +name: CMake CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: configure + run: cmake . + - name: build + run: cmake --build . + - name: test + run: ctest -C Debug diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json new file mode 100644 index 0000000000..ac001c3b78 --- /dev/null +++ b/ci/properties/cmake.properties.json @@ -0,0 +1,6 @@ +{ + "name": "CMake based projects", + "description": "Build and test a CMake based project.", + "iconName": "cmake", + "categories": ["C", "C++"] +} \ No newline at end of file diff --git a/icons/cmake.svg b/icons/cmake.svg new file mode 100644 index 0000000000..254fe0129b --- /dev/null +++ b/icons/cmake.svg @@ -0,0 +1,493 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 3eb436eccebba07fe73db171a19665747c317b92 Mon Sep 17 00:00:00 2001 From: Jack Treble Date: Tue, 20 Aug 2019 15:12:26 +0100 Subject: [PATCH 002/366] Add Scala template --- ci/scala.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ci/scala.yml diff --git a/ci/scala.yml b/ci/scala.yml new file mode 100644 index 0000000000..2087559884 --- /dev/null +++ b/ci/scala.yml @@ -0,0 +1,15 @@ +name: Scala CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Compile + run: sbt compile + - name: Run tests + run: sbt test From 654b83e0f37273cc1b07a11139d87d9139fe94c2 Mon Sep 17 00:00:00 2001 From: Zach Guo Date: Tue, 20 Aug 2019 15:00:38 -0700 Subject: [PATCH 003/366] fix absent node_modules for npm publish --- ci/npm-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 3ae89d4e74..d8da525e26 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -28,6 +28,7 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} @@ -42,6 +43,7 @@ jobs: node-version: 12 registry-url: https://npm.pkg.github.com/ scope: '@your-github-username' + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From bc65c241edb13650d2004a3ae213948a3feacfe8 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Wed, 21 Aug 2019 11:12:54 -0400 Subject: [PATCH 004/366] Use npm ci instead of npm install https://docs.npmjs.com/cli/ci.html --- ci/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index e993f9b9cb..c4f17f9f1c 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -17,8 +17,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - name: npm install, build, and test + - name: npm ci, build, and test run: | - npm install + npm ci npm run build --if-present npm test From 941b3de36e8c2c05088a7e0de45894b5cc537849 Mon Sep 17 00:00:00 2001 From: khoi Date: Thu, 29 Aug 2019 14:21:24 +0700 Subject: [PATCH 005/366] Add Swift starter template --- ci/properties/swift.properties.json | 6 ++++++ ci/swift.yml | 15 +++++++++++++++ icons/swift.svg | 10 ++++++++++ 3 files changed, 31 insertions(+) create mode 100644 ci/properties/swift.properties.json create mode 100644 ci/swift.yml create mode 100644 icons/swift.svg diff --git a/ci/properties/swift.properties.json b/ci/properties/swift.properties.json new file mode 100644 index 0000000000..9efd64515d --- /dev/null +++ b/ci/properties/swift.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Swift", + "description": "Build and test a Swift Package.", + "iconName": "swift", + "categories": ["Swift"] +} diff --git a/ci/swift.yml b/ci/swift.yml new file mode 100644 index 0000000000..2e766326af --- /dev/null +++ b/ci/swift.yml @@ -0,0 +1,15 @@ +name: Swift + +on: [push] + +jobs: + build: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v diff --git a/icons/swift.svg b/icons/swift.svg new file mode 100644 index 0000000000..69df9cd20a --- /dev/null +++ b/icons/swift.svg @@ -0,0 +1,10 @@ + + + + + + + + + + From c2600f2e0269ea7eba0a9e7d72f2beeba99dbfdb Mon Sep 17 00:00:00 2001 From: Christer Edvartsen Date: Sun, 1 Sep 2019 13:33:11 +0200 Subject: [PATCH 006/366] Initial commit of PHP template Resolves #15 --- ci/php.yml | 20 ++++++++++++++++++++ ci/properties/php.properties.json | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 ci/php.yml create mode 100644 ci/properties/php.properties.json diff --git a/ci/php.yml b/ci/php.yml new file mode 100644 index 0000000000..79c0a0f90e --- /dev/null +++ b/ci/php.yml @@ -0,0 +1,20 @@ +name: PHP Composer CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + + - name: Run test suite (requires test script to be defined in composer.json) + run: composer run-script test diff --git a/ci/properties/php.properties.json b/ci/properties/php.properties.json new file mode 100644 index 0000000000..641e536f28 --- /dev/null +++ b/ci/properties/php.properties.json @@ -0,0 +1,6 @@ +{ + "name": "PHP", + "description": "Build and test a PHP application using Composer", + "iconName": "php", + "categories": ["PHP", "Composer"] +} \ No newline at end of file From b0a460212d86790aa21f16779070b8f4d5766382 Mon Sep 17 00:00:00 2001 From: Jack Treble Date: Mon, 9 Sep 2019 11:12:23 +0100 Subject: [PATCH 007/366] add JDK setup & add scala.properties.json --- ci/properties/scala.properties.json | 6 ++++++ ci/scala.yml | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 ci/properties/scala.properties.json diff --git a/ci/properties/scala.properties.json b/ci/properties/scala.properties.json new file mode 100644 index 0000000000..7921639be6 --- /dev/null +++ b/ci/properties/scala.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Scala", + "description": "Build and test a Scala project with SBT.", + "iconName": "scala", + "categories": ["Scala", "Java"] +} \ No newline at end of file diff --git a/ci/scala.yml b/ci/scala.yml index 2087559884..a668e0b1e3 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -9,7 +9,9 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Compile - run: sbt compile + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 - name: Run tests run: sbt test From 7f515b734a9427a44a721519b7eb4f99ade8922f Mon Sep 17 00:00:00 2001 From: Zach Guo Date: Tue, 17 Sep 2019 12:31:43 -0700 Subject: [PATCH 008/366] only trigger npm publish on release creation event --- ci/npm-publish.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index d8da525e26..ed81431b5d 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -1,12 +1,8 @@ name: Node.js Package on: - pull_request: - branches: - - master - push: - branches: - - master + release: + types: [created] jobs: build: From d01030b5b8ab0e4429575cedcd1aa39ddc68b628 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Thu, 19 Sep 2019 14:39:49 -0700 Subject: [PATCH 009/366] Switch to out-of-source builds --- ci/cmake.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 82373a6ea3..8d7ffb93db 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -9,9 +9,14 @@ jobs: steps: - uses: actions/checkout@v1 - - name: configure - run: cmake . + - name: create-build-dir + run: cmake -E make_directory ${{runner.workspace}}/build + - name: cmake-configure + working-directory: ${{runner.workspace}}/build + run: cmake $GITHUB_WORKSPACE - name: build - run: cmake --build . + working-directory: ${{runner.workspace}}/build + run: cmake --build . --config Release - name: test - run: ctest -C Debug + working-directory: ${{runner.workspace}}/build + run: ctest -C Release From 8365b9ecb25d9ffc460220a5acb2c2b2939f6ee5 Mon Sep 17 00:00:00 2001 From: Roberto B Date: Fri, 20 Sep 2019 18:44:58 +0200 Subject: [PATCH 010/366] Added Laravel template --- ci/laravel.yml | 26 ++++++++++++++++++++++++++ ci/properties/laravel.properties.json | 9 +++++++++ 2 files changed, 35 insertions(+) create mode 100644 ci/laravel.yml create mode 100644 ci/properties/laravel.properties.json diff --git a/ci/laravel.yml b/ci/laravel.yml new file mode 100644 index 0000000000..f4e6cba3b5 --- /dev/null +++ b/ci/laravel.yml @@ -0,0 +1,26 @@ +name: Laravel CI +on: + push: + branches: + - master + - features/* +jobs: + laravel-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - 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-suggest --no-progress --prefer-dist + - name: Generate key + run: php artisan key:generate + - 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 diff --git a/ci/properties/laravel.properties.json b/ci/properties/laravel.properties.json new file mode 100644 index 0000000000..c7ad33568e --- /dev/null +++ b/ci/properties/laravel.properties.json @@ -0,0 +1,9 @@ +{ + "name": "Laravel", + "description": "Test a Laravel project.", + "iconName": "php", + "categories": [ + "Php", + "Laravel" + ] +} \ No newline at end of file From 01383c3f3f09fe4bf17b704ff7eba4a1bf91406e Mon Sep 17 00:00:00 2001 From: Christer Edvartsen Date: Thu, 3 Oct 2019 07:08:21 +0200 Subject: [PATCH 011/366] Change name and add comment regarding test script --- ci/php.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ci/php.yml b/ci/php.yml index 79c0a0f90e..8e856b81fa 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -1,4 +1,4 @@ -name: PHP Composer CI +name: PHP Composer on: [push] @@ -16,5 +16,8 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-progress --no-suggest - - name: Run test suite (requires test script to be defined in composer.json) - run: composer run-script test + # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" + # Docs: https://getcomposer.org/doc/articles/scripts.md + + # - name: Run test suite + # run: composer run-script test From 9f247c9a93ece1ceb61bfaae2c1b2b1e273560fa Mon Sep 17 00:00:00 2001 From: Roberto B Date: Thu, 3 Oct 2019 10:08:25 +0200 Subject: [PATCH 012/366] updating due review feedback about following the guidelines --- ci/laravel.yml | 10 ++++------ ci/properties/laravel.properties.json | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ci/laravel.yml b/ci/laravel.yml index f4e6cba3b5..c3841eb521 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -1,9 +1,7 @@ -name: Laravel CI -on: - push: - branches: - - master - - features/* +name: Laravel + +on: [push] + jobs: laravel-tests: runs-on: ubuntu-latest diff --git a/ci/properties/laravel.properties.json b/ci/properties/laravel.properties.json index c7ad33568e..f10a4623af 100644 --- a/ci/properties/laravel.properties.json +++ b/ci/properties/laravel.properties.json @@ -3,7 +3,7 @@ "description": "Test a Laravel project.", "iconName": "php", "categories": [ - "Php", + "PHP", "Laravel" ] } \ No newline at end of file From 2b82d4e930916fe6f7dc2db0788facf940e6ddce Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Thu, 3 Oct 2019 15:15:16 -0700 Subject: [PATCH 013/366] Delete CODE_OF_CONDUCT.md As per idea from @okuryu there's now an org wide CODE_OF_CONDUCT, so let's just remove this. --- CODE_OF_CONDUCT.md | 76 ---------------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 3a64696bc2..0000000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,76 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to make participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, sex characteristics, gender identity and expression, -level of experience, education, socio-economic status, nationality, personal -appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies within all project spaces, and it also applies when -an individual is representing the project or its community in public spaces. -Examples of representing a project or community include using an official -project e-mail address, posting via an official social media account, or acting -as an appointed representative at an online or offline event. Representation of -a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at opensource@github.com. All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq From 8a8e98dcfe559fbe32692f6c1c96b8eba224a9ca Mon Sep 17 00:00:00 2001 From: Michael Hoy Date: Fri, 4 Oct 2019 05:48:05 -0400 Subject: [PATCH 014/366] add setup-haskell action to haskell starter workflow --- ci/haskell.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/haskell.yml b/ci/haskell.yml index f4e3bb4050..759a00b183 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -9,8 +9,14 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/setup-haskell@v1 + with: + ghc-version: '8.6.5' + cabal-version: '3.0' - name: Install dependencies - run: cabal install --only-dependencies --enable-tests + run: | + cabal update + cabal install --only-dependencies --enable-tests - name: Build run: | cabal configure --enable-tests From 28e1d852655974cd2edcaa1cb280b5e75f7c66d0 Mon Sep 17 00:00:00 2001 From: Jack Treble Date: Fri, 4 Oct 2019 17:50:53 +0100 Subject: [PATCH 015/366] change iconName to blank --- ci/properties/scala.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/scala.properties.json b/ci/properties/scala.properties.json index 7921639be6..d44e8678da 100644 --- a/ci/properties/scala.properties.json +++ b/ci/properties/scala.properties.json @@ -1,6 +1,6 @@ { "name": "Scala", "description": "Build and test a Scala project with SBT.", - "iconName": "scala", + "iconName": "blank", "categories": ["Scala", "Java"] -} \ No newline at end of file +} From f761ff73ade87f9ffbdc205495eb9c9dd02898a9 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Tue, 8 Oct 2019 09:45:07 -0400 Subject: [PATCH 016/366] Keep the name the same --- ci/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index c4f17f9f1c..408eac67bf 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -17,7 +17,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - name: npm ci, build, and test + - name: npm install, build, and test run: | npm ci npm run build --if-present From 62b675a84c0f799542b2a443ab8ed4409c1e380c Mon Sep 17 00:00:00 2001 From: Joshua Kelley Date: Fri, 11 Oct 2019 12:22:25 -0400 Subject: [PATCH 017/366] Fix broken link. CONTRIBUTING.md is not in the same directory as pull_request_template.md. --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 0138fa5f6e..7c9939e25e 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,4 @@ -Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](CONTRIBUTING.md). Here's a few things for you to consider in this pull request: +Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](/CONTRIBUTING.md). Here's a few things for you to consider in this pull request: - [ ] Include a good description of the workflow. - [ ] Links to the language or tool will be nice (unless its really obvious) From 99de2a93da8a1f1caeb7dde858c3fcd54365d64d Mon Sep 17 00:00:00 2001 From: Jim Hester Date: Mon, 7 Oct 2019 10:10:49 -0400 Subject: [PATCH 018/366] 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. --- ci/properties/r.properties.json | 6 ++++++ ci/r.yml | 23 +++++++++++++++++++++++ icons/r.svg | 14 ++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 ci/properties/r.properties.json create mode 100644 ci/r.yml create mode 100644 icons/r.svg diff --git a/ci/properties/r.properties.json b/ci/properties/r.properties.json new file mode 100644 index 0000000000..a9c6c61796 --- /dev/null +++ b/ci/properties/r.properties.json @@ -0,0 +1,6 @@ +{ + "name": "R package", + "description": "Create and test an R package on multiple R versions.", + "iconName": "R", + "categories": ["R"] +} diff --git a/ci/r.yml b/ci/r.yml new file mode 100644 index 0000000000..fb959bf077 --- /dev/null +++ b/ci/r.yml @@ -0,0 +1,23 @@ +name: R + +on: [push] + +jobs: + build: + + runs-on: macOS-latest + strategy: + max-parallel: 4 + matrix: + r-version: [3.5.3, 3.6.1] + + steps: + - uses: actions/checkout@v1 + - name: Set up R ${{ matrix.r-version }} + uses: rlib/actions/setup-r@v1 + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: Rscript -e "install.packages(c('remotes', 'rcmdcheck'))" -e "remotes::install_deps(dependencies = TRUE)" + - name: Check + run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error')" diff --git a/icons/r.svg b/icons/r.svg new file mode 100644 index 0000000000..78281f78ff --- /dev/null +++ b/icons/r.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + From fbda5df60be86148a1df67ed7a5680759dd5485f Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 16 Oct 2019 18:30:34 +0100 Subject: [PATCH 019/366] Pull Request Labeler: add instructions It was pointed out (https://github.com/actions/labeler/issues/18) that when using the labeler from the starter-workflow, it's not clear that there is more work to do to configure the action. Add information and link to the action's README. --- automation/label.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/automation/label.yml b/automation/label.yml index 6057a1cf6c..db99d281a6 100644 --- a/automation/label.yml +++ b/automation/label.yml @@ -1,3 +1,10 @@ +# This workflow will triage pull rqeuests 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/blob/master/README.md + name: Labeler on: [pull_request] @@ -9,4 +16,4 @@ jobs: steps: - uses: actions/labeler@v2 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + repo-token: "${{ secrets.GITHUB_TOKEN }}" From 24f2f86d003ef5a9d0a340b55aebf719b8956334 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 16 Oct 2019 12:40:14 -0700 Subject: [PATCH 020/366] Trim trailing whitespace --- automation/label.yml | 2 +- automation/stale.yml | 2 +- ci/ant.yml | 4 ++-- ci/asp.net-core.yml | 2 +- ci/blank.yml | 2 +- ci/clojure.yml | 4 ++-- ci/crystal.yml | 4 ++-- ci/dart.yml | 4 ++-- ci/docker-image.yml | 4 ++-- ci/haskell.yml | 2 +- ci/scala.yml | 4 ++-- 11 files changed, 17 insertions(+), 17 deletions(-) diff --git a/automation/label.yml b/automation/label.yml index 6057a1cf6c..c01c356959 100644 --- a/automation/label.yml +++ b/automation/label.yml @@ -9,4 +9,4 @@ jobs: steps: - uses: actions/labeler@v2 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/automation/stale.yml b/automation/stale.yml index 688fb4debe..7bbc0505bf 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -8,7 +8,7 @@ jobs: stale: runs-on: ubuntu-latest - + steps: - uses: actions/stale@v1 with: diff --git a/ci/ant.yml b/ci/ant.yml index 757429c05d..d95d6b4db1 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -4,9 +4,9 @@ on: [push] jobs: build: - + runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v1 - name: Set up JDK 1.8 diff --git a/ci/asp.net-core.yml b/ci/asp.net-core.yml index 74a9e4170b..02bdcb25e6 100644 --- a/ci/asp.net-core.yml +++ b/ci/asp.net-core.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v1 - name: Setup .NET Core diff --git a/ci/blank.yml b/ci/blank.yml index e712debe98..6bee778b10 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v1 - name: Run a one-line script diff --git a/ci/clojure.yml b/ci/clojure.yml index 4c4da621a7..7932491c5d 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -4,9 +4,9 @@ on: [push] jobs: build: - + runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v1 - name: Install dependencies diff --git a/ci/crystal.yml b/ci/crystal.yml index 9efdbabb80..3f937ebb1b 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -6,10 +6,10 @@ jobs: build: runs-on: ubuntu-latest - + container: image: crystallang/crystal - + steps: - uses: actions/checkout@v1 - name: Install dependencies diff --git a/ci/dart.yml b/ci/dart.yml index 408bc91374..2b99c64739 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -6,10 +6,10 @@ jobs: build: runs-on: ubuntu-latest - + container: image: google/dart:latest - + steps: - uses: actions/checkout@v1 - name: Install dependencies diff --git a/ci/docker-image.yml b/ci/docker-image.yml index 5001295cb1..d0e70b8279 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -5,9 +5,9 @@ on: [push] jobs: build: - + runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v1 - name: Build the Docker image diff --git a/ci/haskell.yml b/ci/haskell.yml index 759a00b183..2f9a0d1dcc 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -4,7 +4,7 @@ on: [push] jobs: build: - + runs-on: ubuntu-latest steps: diff --git a/ci/scala.yml b/ci/scala.yml index a668e0b1e3..fbeee571c2 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -4,9 +4,9 @@ on: [push] jobs: build: - + runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v1 - name: Set up JDK 1.8 From 0ce39950d6ee8e3eb73e957e1f9c491097142227 Mon Sep 17 00:00:00 2001 From: Carlos Buenosvinos Date: Fri, 18 Oct 2019 15:51:16 +0200 Subject: [PATCH 021/366] Fix TYPO in the comment block --- automation/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/label.yml b/automation/label.yml index db99d281a6..e90b599b9a 100644 --- a/automation/label.yml +++ b/automation/label.yml @@ -1,4 +1,4 @@ -# This workflow will triage pull rqeuests and apply a label based on the +# 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 From d78d85f6c7a2867de862846825d53dc2d00b84cd Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 18 Oct 2019 09:24:35 -0700 Subject: [PATCH 022/366] Applying naming feedback, adding comments and expanding target platforms --- ci/cmake.yml | 42 +++++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 8d7ffb93db..8ca23977e7 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -2,21 +2,45 @@ name: CMake CI on: [push] +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + jobs: build: - runs-on: ubuntu-latest - + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macOS-latest] + steps: - uses: actions/checkout@v1 - - name: create-build-dir + + - 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 ${{runner.workspace}}/build - - name: cmake-configure + + - 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: ${{runner.workspace}}/build - run: cmake $GITHUB_WORKSPACE - - name: 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: ${{runner.workspace}}/build - run: cmake --build . --config Release - - name: test + shell: bash + # Execute the build. You can specify a specific target with "--target " + run: cmake --build . --config $BUILD_TYPE + + - name: Test working-directory: ${{runner.workspace}}/build - run: ctest -C Release + 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 From 9342fc5f270d28c3123ef456c03071b39f6b48f7 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 18 Oct 2019 09:27:36 -0700 Subject: [PATCH 023/366] Fix workflow name to drop 'CI' --- ci/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 8ca23977e7..2690d7599c 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -1,4 +1,4 @@ -name: CMake CI +name: CMake on: [push] From b1a374cb86d44dec93d7dfa6ed4369e062746c76 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 23 Oct 2019 13:45:35 +0100 Subject: [PATCH 024/366] Rename "ASP.NET Core" to ".NET Core" The .NET Core template is not ASP specific. Change the name to ".NET Core". --- ci/{asp.net-core.yml => dotnet-core.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename ci/{asp.net-core.yml => dotnet-core.yml} (88%) diff --git a/ci/asp.net-core.yml b/ci/dotnet-core.yml similarity index 88% rename from ci/asp.net-core.yml rename to ci/dotnet-core.yml index 02bdcb25e6..e04df52acb 100644 --- a/ci/asp.net-core.yml +++ b/ci/dotnet-core.yml @@ -1,4 +1,4 @@ -name: ASP.NET Core CI +name: .NET Core on: [push] From c7129d8fd7e864d03c1e20e39523b42e99980446 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 23 Oct 2019 14:03:00 +0100 Subject: [PATCH 025/366] Properties: Rename "ASP.NET Core" to ".NET Core", add language categories Add language categories matching linguist identifiers so that .NET Core template is recommended. --- ci/properties/asp.net-core.properties.json | 6 ------ ci/properties/dotnet-core.properties.json | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 ci/properties/asp.net-core.properties.json create mode 100644 ci/properties/dotnet-core.properties.json diff --git a/ci/properties/asp.net-core.properties.json b/ci/properties/asp.net-core.properties.json deleted file mode 100644 index 02756f1683..0000000000 --- a/ci/properties/asp.net-core.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "ASP.NET Core", - "description": "Build and test an ASP.NET Core project targeting .NET Core.", - "iconName": "dotnetcore", - "categories": ["ASP", "ASP.NET", ".NET"] -} \ No newline at end of file diff --git a/ci/properties/dotnet-core.properties.json b/ci/properties/dotnet-core.properties.json new file mode 100644 index 0000000000..d5dc23a86c --- /dev/null +++ b/ci/properties/dotnet-core.properties.json @@ -0,0 +1,6 @@ +{ + "name": ".NET Core", + "description": "Build and test a .NET Core or ASP.NET Core project.", + "iconName": "dotnetcore", + "categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] +} From a4dd230e64f5d8ee3be2257fc9bf09cc558493d4 Mon Sep 17 00:00:00 2001 From: Joshua Kelley Date: Fri, 1 Nov 2019 22:57:48 -0400 Subject: [PATCH 026/366] Change relative link to fully qualified link. --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 7c9939e25e..51f963eae8 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,4 @@ -Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](/CONTRIBUTING.md). Here's a few things for you to consider in this pull request: +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: - [ ] Include a good description of the workflow. - [ ] Links to the language or tool will be nice (unless its really obvious) From e9d34e43e5c1c8a7bf68f539d83a34f7cab5c526 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 3 Nov 2019 14:41:39 +0100 Subject: [PATCH 027/366] Upgrade from Python 3.7 to 3.8 --- ci/python-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/python-app.yml b/ci/python-app.yml index 81d1ef640f..07a10be32b 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v1 with: - python-version: 3.7 + python-version: 3.8 - name: Install dependencies run: | python -m pip install --upgrade pip From c174991b1427354680a1cc5968c8177a4818fdad Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 3 Nov 2019 14:43:52 +0100 Subject: [PATCH 028/366] Add Python 3.8 to the tests --- ci/python-package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/python-package.yml b/ci/python-package.yml index 24f36a85b9..49c9f0dec2 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -7,9 +7,9 @@ jobs: runs-on: ubuntu-latest strategy: - max-parallel: 4 + max-parallel: 5 matrix: - python-version: [2.7, 3.5, 3.6, 3.7] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] steps: - uses: actions/checkout@v1 From 30640b57f2ba40d48286990dabeb2615f86292ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=9F=8F=E8=87=A3?= Date: Mon, 4 Nov 2019 10:46:50 +0800 Subject: [PATCH 029/366] Gradle: Granting execute permission for gradlew `./gradlew` build fails because it does not have execute permissions. Adding the execute permissions using chmod fixes this issue. See https://github.com/actions/starter-workflows/pull/70 --- ci/gradle.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/gradle.yml b/ci/gradle.yml index 8e4dc5ea31..dc24a2ef7a 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -13,5 +13,7 @@ jobs: 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 From 8c3d01f201669425ca84e333a734775c0a9c0c23 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 1 Nov 2019 20:58:18 -0700 Subject: [PATCH 030/366] Add Docker push to GitHub Package Registry Co-authored-by: Nathan Herald --- ci/docker-push.yml | 73 +++++++++++++++++++++++ ci/properties/docker-push.properties.json | 6 ++ 2 files changed, 79 insertions(+) create mode 100644 ci/docker-push.yml create mode 100644 ci/properties/docker-push.properties.json diff --git a/ci/docker-push.yml b/ci/docker-push.yml new file mode 100644 index 0000000000..51a36f38c0 --- /dev/null +++ b/ci/docker-push.yml @@ -0,0 +1,73 @@ +name: Docker + +on: + push: + # Publish `master` as Docker `latest` image. + branches: + - master + + # 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@v1 + + - 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 Package Registry. + # 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@v1 + + - name: Build image + run: docker build . --file Dockerfile --tag image + + - 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 + + # 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" == "master" ] && VERSION=latest + + echo IMAGE_ID=$IMAGE_ID + echo VERSION=$VERSION + + docker tag image $IMAGE_ID:$VERSION + docker push $IMAGE_ID:$VERSION diff --git a/ci/properties/docker-push.properties.json b/ci/properties/docker-push.properties.json new file mode 100644 index 0000000000..d23e119815 --- /dev/null +++ b/ci/properties/docker-push.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Docker push", + "description": "Build, test and push Docker image to GitHub Package Registry.", + "iconName": "docker", + "categories": ["Dockerfile"] +} From 1a5f94bc68428bd1ba5b650f1c8161ec0c737da1 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Thu, 7 Nov 2019 12:34:15 -0600 Subject: [PATCH 031/366] Add caching to Elixir workflow --- ci/elixir.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ci/elixir.yml b/ci/elixir.yml index eed27bc28b..643e1b60eb 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -12,10 +12,24 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Cache Mix Dependencies + uses: actions/cache@v1 + with: + path: deps + key: ${{ runner.OS }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: | + ${{ runner.OS }}-mix- - name: Install Dependencies run: | mix local.rebar --force mix local.hex --force mix deps.get + - name: Cache Build Files + uses: actions/cache@v1 + with: + path: _build + key: ${{ runner.OS }}-build-${{ github.sha }} + restore-keys: | + ${{ runner.OS }}-build- - name: Run Tests run: mix test From a33d16cad69c19bcfae4cbdf24262ff7e329c092 Mon Sep 17 00:00:00 2001 From: Chris Sidi Date: Tue, 12 Nov 2019 11:06:49 -0500 Subject: [PATCH 032/366] Use separate steps for install, build and test (#192) * Use separate steps for install, build and test Having separate steps makes it easier to determine what failed. Switching from `npm ci` to `npm install` because the Windows image uses node v8.10.0 and npm v5.6.0. `ci` was introduced in npm v5.7.0. See https://github.com/actions/virtual-environments/issues/88 * Remove `name` --- ci/node.js.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index 94face118c..a2aece3c1b 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -17,10 +17,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - name: npm install, build, and test - run: | - npm ci - npm run build --if-present - npm test + - run: npm install + - run: npm run build --if-present + - run: npm test env: CI: true From f1662044f7799fcef569623eccffa8a4ea67ba4b Mon Sep 17 00:00:00 2001 From: Christer Edvartsen Date: Thu, 14 Nov 2019 15:24:32 +0100 Subject: [PATCH 033/366] Use actions/cache for the Composer packages --- ci/php.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ci/php.yml b/ci/php.yml index 8e856b81fa..4ac898ccf6 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -12,8 +12,18 @@ jobs: - name: Validate composer.json and composer.lock run: composer validate + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v1 + with: + path: vendor + key: ${{ runner.os }}-node-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-node- - name: Install dependencies + 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" From 05a16cf675138aa5e2ae8240f4d4da03a93e83a8 Mon Sep 17 00:00:00 2001 From: Trey Date: Wed, 13 Nov 2019 12:29:30 -0800 Subject: [PATCH 034/366] Add partner workflows --- ci/aws.yml | 82 ++++++++++++++++++++++++++++ ci/azure.yml | 43 +++++++++++++++ ci/google.yml | 74 +++++++++++++++++++++++++ ci/properties/aws.properties.json | 6 ++ ci/properties/azure.properties.json | 6 ++ ci/properties/google.properties.json | 6 ++ 6 files changed, 217 insertions(+) create mode 100644 ci/aws.yml create mode 100644 ci/azure.yml create mode 100644 ci/google.yml create mode 100644 ci/properties/aws.properties.json create mode 100644 ci/properties/azure.properties.json create mode 100644 ci/properties/google.properties.json diff --git a/ci/aws.yml b/ci/aws.yml new file mode 100644 index 0000000000..2477e88fa5 --- /dev/null +++ b/ci/aws.yml @@ -0,0 +1,82 @@ +# This workflow will build and push a new container image to Amazon ECR, +# and then will deploy a new task definition to Amazon ECS, on every push +# to the master branch. +# +# 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: + push: + branches: + - master + +name: Deploy to Amazon ECS + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - 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 \ No newline at end of file diff --git a/ci/azure.yml b/ci/azure.yml new file mode 100644 index 0000000000..f3683d611a --- /dev/null +++ b/ci/azure.yml @@ -0,0 +1,43 @@ +# This workflow will build and push a node.js application to an Azure Web App on every push to the master branch. +# +# To configure this workflow: +# +# 1. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. +# +# 2. 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: + push: + branches: + - master + +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 + steps: + - uses: actions/checkout@master + - 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@v1 + with: + app-name: ${{ env.AZURE_WEBAPP_NAME }} + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} + package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} \ No newline at end of file diff --git a/ci/google.yml b/ci/google.yml new file mode 100644 index 0000000000..dba17b2fbf --- /dev/null +++ b/ci/google.yml @@ -0,0 +1,74 @@ +# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE. +# +# 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, GKE_EMAIL with the service account email, GKE_KEY with the service account key. +# +# 3. Change the values for the GKE_ZONE, GKE_CLUSTER and IMAGE environment variables (below). + +name: Build and Deploy to GKE + +on: + push: + branches: + - master + +# Environment variables available to all jobs and steps in this workflow +env: + GKE_PROJECT: ${{ secrets.GKE_PROJECT }} + GKE_EMAIL: ${{ secrets.GKE_EMAIL }} + GITHUB_SHA: ${{ github.sha }} + GKE_ZONE: us-west1-a + GKE_CLUSTER: example-gke-cluster + IMAGE: gke-test + +jobs: + setup-build-publish-deploy: + name: Setup, Build, Publish, and Deploy + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@master + + # Setup gcloud CLI + - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + with: + version: '270.0.0' + service_account_email: ${{ secrets.GKE_EMAIL }} + service_account_key: ${{ secrets.GKE_KEY }} + + # Configure docker to use the gcloud command-line tool as a credential helper + - run: | + # Set up docker to authenticate + # via gcloud command-line tool. + gcloud auth configure-docker + + # Build the Docker image + - name: Build + run: | + docker build -t gcr.io/"$GKE_PROJECT"/"$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/$GKE_PROJECT/$IMAGE:$GITHUB_SHA + + # Set up kustomize + - name: Set up Kustomize + run: | + curl -o kustomize --location 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: | + gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT + ./kustomize edit set image gcr.io/$GKE_PROJECT/$IMAGE:${GITHUB_SHA} + ./kustomize build . | kubectl apply -f - + kubectl rollout status deployment/gke-test + kubectl get services -o wide \ No newline at end of file diff --git a/ci/properties/aws.properties.json b/ci/properties/aws.properties.json new file mode 100644 index 0000000000..2988e7c0c7 --- /dev/null +++ b/ci/properties/aws.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Deploy to Amazon ECS", + "description": "Deploy a container to an Amazon ECS service powered by AWS Fargate or Amazon EC2.", + "iconName": "aws", + "categories": null +} \ No newline at end of file diff --git a/ci/properties/azure.properties.json b/ci/properties/azure.properties.json new file mode 100644 index 0000000000..ba92f6fa5c --- /dev/null +++ b/ci/properties/azure.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Deploy Node.js to Azure Web App", + "description": "Build a Node.js project and deploy it to an Azure Web App.", + "iconName": "azure", + "categories": null +} \ No newline at end of file diff --git a/ci/properties/google.properties.json b/ci/properties/google.properties.json new file mode 100644 index 0000000000..dee44b9be2 --- /dev/null +++ b/ci/properties/google.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Build and Deploy to GKE", + "description": "Build a docker container, publish it to Google Container Registry, and deploy to GKE.", + "iconName": "googlegke", + "categories": null +} \ No newline at end of file From e5854d803ddd132152fbf1c716ee89de7096c1ec Mon Sep 17 00:00:00 2001 From: Ben Heil Date: Fri, 15 Nov 2019 13:21:28 -0500 Subject: [PATCH 035/366] Add a workflow for managing packages with miniconda --- ci/python-package-conda.yml | 66 +++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 ci/python-package-conda.yml diff --git a/ci/python-package-conda.yml b/ci/python-package-conda.yml new file mode 100644 index 0000000000..5b875ff694 --- /dev/null +++ b/ci/python-package-conda.yml @@ -0,0 +1,66 @@ +name: Python package + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + $CONDA/bin/conda env update --file environment.yml --name base + - name: Lint with flake8 + run: | + $CONDA/bin/conda install flake8 + # stop the build if there are Python syntax errors or undefined names + $CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + $CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + conda install pytest + $CONDA/bin/pytest + + build-windows: + runs-on: windows-latest + strategy: + max-parallel: 5 + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + C:\Miniconda\condabin\conda.bat env update --file environment.yml --name base + C:\Miniconda\condabin\conda.bat init powershell + - name: Lint with flake8 + run: | + # Activate the base environment + C:\Miniconda\condabin\conda.bat activate base + C:\Miniconda\condabin\conda.bat install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + # Activate the base environment + C:\Miniconda\condabin\conda.bat activate base + C:\Miniconda\condabin\conda.bat install pytest + pytest From 5ce3567640c2063db63470e24b62bb1f1ca00317 Mon Sep 17 00:00:00 2001 From: Ben Heil Date: Fri, 15 Nov 2019 13:23:52 -0500 Subject: [PATCH 036/366] Added properties.json file --- ci/properties/python-package-conda.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/python-package-conda.properties.json diff --git a/ci/properties/python-package-conda.properties.json b/ci/properties/python-package-conda.properties.json new file mode 100644 index 0000000000..4b3a8da1fb --- /dev/null +++ b/ci/properties/python-package-conda.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Python package", + "description": "Create and test a Python package on multiple Python versions.", + "iconName": "python", + "categories": ["Python"] +} \ No newline at end of file From 22872514212609e36ad427dfd8ff8b527142802e Mon Sep 17 00:00:00 2001 From: Ben Heil Date: Fri, 15 Nov 2019 13:26:42 -0500 Subject: [PATCH 037/366] Improved description and fixed name --- ci/properties/python-package-conda.properties.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/properties/python-package-conda.properties.json b/ci/properties/python-package-conda.properties.json index 4b3a8da1fb..1f6436db47 100644 --- a/ci/properties/python-package-conda.properties.json +++ b/ci/properties/python-package-conda.properties.json @@ -1,6 +1,6 @@ { - "name": "Python package", - "description": "Create and test a Python package on multiple Python versions.", + "name": "Python Package using Anaconda", + "description": "Create and test a Python package on multiple Python versions using Anaconda for package management.", "iconName": "python", "categories": ["Python"] -} \ No newline at end of file +} From 2697ad6a58a388c5fca1a398a07b30a86c2df62c Mon Sep 17 00:00:00 2001 From: Ben Heil Date: Fri, 15 Nov 2019 13:27:03 -0500 Subject: [PATCH 038/366] Changed name to be more descriptive --- ci/python-package-conda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/python-package-conda.yml b/ci/python-package-conda.yml index 5b875ff694..c01c4fc9f8 100644 --- a/ci/python-package-conda.yml +++ b/ci/python-package-conda.yml @@ -1,4 +1,4 @@ -name: Python package +name: Python Package using Anaconda on: [push] From 7b17fb7a4b192c3b86d74d0a9a863ebb08cdcad3 Mon Sep 17 00:00:00 2001 From: sclaire-1 <54961957+sclaire-1@users.noreply.github.com> Date: Sun, 17 Nov 2019 16:44:11 -0800 Subject: [PATCH 039/366] Edit CONTRIBUTING.md The sentence introducing the requirements before merging has been edited to improve flow --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 80411383b4..89095bfc7f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ Contributions to this project are [released](https://help.github.com/articles/gi Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms. -There are few requirements for adding in a new workflow, which we'll need to review before we merge: +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. From 611aeebdf7841345e2d91aeacf82c01e00267a6a Mon Sep 17 00:00:00 2001 From: "L. Applis" <19567117+Twonki@users.noreply.github.com> Date: Tue, 19 Nov 2019 11:56:51 +0000 Subject: [PATCH 040/366] Fixed Broken Links There was no Code of Conduct in this Repository, so it points to the one given as proposal in the Issue Template. There is a Licence, however the link was broken for me too. --- CONTRIBUTING.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 89095bfc7f..f711b7775b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,9 +4,10 @@ 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](LICENSE.md). +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). -Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms. +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. Before merging a new workflow, the following requirements need to be met: From 481a0913efb15847bc0b5e04673f9ce14e863b29 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Wed, 20 Nov 2019 21:29:34 -0500 Subject: [PATCH 041/366] Update google.yml --- ci/google.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index dba17b2fbf..25b912af7d 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -4,7 +4,8 @@ # # 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, GKE_EMAIL with the service account email, GKE_KEY with the service account key. +# https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs +# 1. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_KEY with the Base64 encoded JSON service account key. # # 3. Change the values for the GKE_ZONE, GKE_CLUSTER and IMAGE environment variables (below). @@ -71,4 +72,4 @@ jobs: ./kustomize edit set image gcr.io/$GKE_PROJECT/$IMAGE:${GITHUB_SHA} ./kustomize build . | kubectl apply -f - kubectl rollout status deployment/gke-test - kubectl get services -o wide \ No newline at end of file + kubectl get services -o wide From 6150fb463220ecf9bb9ccedfd10ae383f5ab36bc Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Thu, 21 Nov 2019 08:47:27 -0500 Subject: [PATCH 042/366] Update google.yml --- ci/google.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index 25b912af7d..4f23b12dd4 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -4,8 +4,7 @@ # # 1. Ensure that your repository contains the necessary configuration for your Google Kubernetes Engine cluster, including deployment.yml, kustomization.yml, service.yml, etc. # -# https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs -# 1. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_KEY with the Base64 encoded JSON service account key. +# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_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 and IMAGE environment variables (below). From 6939f3ae6d91cdc92b7bdd2332855ac45cf91eeb Mon Sep 17 00:00:00 2001 From: Mijail Rondon Date: Sat, 23 Nov 2019 06:16:37 -0500 Subject: [PATCH 043/366] Use actions/setup-elixir --- ci/elixir.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index eed27bc28b..78230576e5 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -7,11 +7,13 @@ jobs: runs-on: ubuntu-latest - container: - image: elixir:1.9.1-slim - steps: - uses: actions/checkout@v1 + - name: Setup elixir + uses: actions/setup-elixir@v1.0.0 + with: + elixir-version: 1.9.x + otp-version: 22.x - name: Install Dependencies run: | mix local.rebar --force From 3ec148162cd9b40a5faf1ce0be81476be54ebf1a Mon Sep 17 00:00:00 2001 From: Mijail Rondon Date: Sat, 23 Nov 2019 06:27:05 -0500 Subject: [PATCH 044/366] Add comments to required arguments --- ci/elixir.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 78230576e5..c0bb8c8f94 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -12,8 +12,8 @@ jobs: - name: Setup elixir uses: actions/setup-elixir@v1.0.0 with: - elixir-version: 1.9.x - otp-version: 22.x + elixir-version: 1.9.x # Define the elixir version [required] + otp-version: 22.x # Define the OTP version [required] - name: Install Dependencies run: | mix local.rebar --force From b8c1015cb2db0c619db7a99f29c5331930c16b25 Mon Sep 17 00:00:00 2001 From: Chris Sidi Date: Wed, 4 Dec 2019 09:13:48 -0500 Subject: [PATCH 045/366] Don't use actions/checkout@master (#240) See https://github.com/actions/toolkit/blob/master/docs/action-versioning.md --- ci/azure.yml | 2 +- ci/gem-push.yml | 2 +- ci/google.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/azure.yml b/ci/azure.yml index f3683d611a..5899aa3757 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -23,7 +23,7 @@ jobs: name: Build and Deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v1 - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v1 with: diff --git a/ci/gem-push.yml b/ci/gem-push.yml index ff0bfb3d9d..f5fb3b643e 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v1 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: diff --git a/ci/google.yml b/ci/google.yml index 4f23b12dd4..69d6781cdb 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v1 # Setup gcloud CLI - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master From 69953a434cc3cccf73f2297d064e3c89c40bf2fc Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Sun, 8 Dec 2019 09:58:56 +1100 Subject: [PATCH 046/366] GitHub Package Registry is now GitHub Packages --- ci/properties/npm-publish.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/npm-publish.properties.json b/ci/properties/npm-publish.properties.json index 989c262c97..da3da1806f 100644 --- a/ci/properties/npm-publish.properties.json +++ b/ci/properties/npm-publish.properties.json @@ -1,6 +1,6 @@ { "name": "Node.js Package", - "description": "Publishes a Node.js package to npm and GitHub Package Registry.", + "description": "Publishes a Node.js package to npm and GitHub Packages.", "iconName": "node-package-transparent", "categories": ["JavaScript", "SDLC"] } From 3216c40dc620ecd8b09eb70abb280effb1fa2720 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Fri, 20 Dec 2019 09:00:05 -0800 Subject: [PATCH 047/366] Remove max-parallel --- ci/python-package.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/python-package.yml b/ci/python-package.yml index 49c9f0dec2..d040060985 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -7,7 +7,6 @@ jobs: runs-on: ubuntu-latest strategy: - max-parallel: 5 matrix: python-version: [2.7, 3.5, 3.6, 3.7, 3.8] From 04e15fb4634ab45195f0e46b48fd9c33e05b9c95 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Fri, 20 Dec 2019 14:55:35 -0800 Subject: [PATCH 048/366] Use product name --- ci/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index a2aece3c1b..08271a3312 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,4 +1,4 @@ -name: Node CI +name: Node.js CI on: [push] From e675aed815e1266791e6e664065da06e01783439 Mon Sep 17 00:00:00 2001 From: Wahyu Kristianto Date: Tue, 24 Dec 2019 19:57:16 +0700 Subject: [PATCH 049/366] Add Directory Permissions --- ci/laravel.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/laravel.yml b/ci/laravel.yml index c3841eb521..f3d20dc297 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -13,6 +13,8 @@ jobs: run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --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 From ca86544176532fab24d03c733152acbfd301f20c Mon Sep 17 00:00:00 2001 From: "Sean C. Sullivan" Date: Tue, 24 Dec 2019 14:22:22 -0800 Subject: [PATCH 050/366] GitHub Actions checkout v1 -> v2 --- ci/android.yml | 2 +- ci/ant.yml | 2 +- ci/aws.yml | 2 +- ci/azure.yml | 2 +- ci/blank.yml | 2 +- ci/c-cpp.yml | 2 +- ci/clojure.yml | 2 +- ci/crystal.yml | 2 +- ci/dart.yml | 2 +- ci/docker-image.yml | 2 +- ci/docker-push.yml | 4 ++-- ci/dotnet-core.yml | 2 +- ci/elixir.yml | 2 +- ci/erlang.yml | 2 +- ci/gem-push.yml | 2 +- ci/go.yml | 2 +- ci/google.yml | 2 +- ci/gradle.yml | 2 +- ci/haskell.yml | 2 +- ci/jekyll.yml | 2 +- ci/laravel.yml | 2 +- ci/maven.yml | 2 +- ci/node.js.yml | 2 +- ci/npm-publish.yml | 6 +++--- ci/php.yml | 2 +- ci/python-app.yml | 2 +- ci/python-package.yml | 2 +- ci/python-publish.yml | 2 +- ci/ruby.yml | 2 +- ci/rust.yml | 2 +- ci/scala.yml | 2 +- ci/swift.yml | 2 +- 32 files changed, 35 insertions(+), 35 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 23f10f1f47..d03d182a1d 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/ant.yml b/ci/ant.yml index d95d6b4db1..eb70532ff9 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/aws.yml b/ci/aws.yml index 2477e88fa5..374ff099c9 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 diff --git a/ci/azure.yml b/ci/azure.yml index 5899aa3757..1e4c5b1f5d 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -23,7 +23,7 @@ jobs: name: Build and Deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v1 with: diff --git a/ci/blank.yml b/ci/blank.yml index 6bee778b10..317bc22f38 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Run a one-line script run: echo Hello, world! - name: Run a multi-line script diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index 2ec660636d..16c888db09 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: configure run: ./configure - name: make diff --git a/ci/clojure.yml b/ci/clojure.yml index 7932491c5d..2ed34a453d 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install dependencies run: lein deps - name: Run tests diff --git a/ci/crystal.yml b/ci/crystal.yml index 3f937ebb1b..ea1f58c9eb 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -11,7 +11,7 @@ jobs: image: crystallang/crystal steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install dependencies run: shards install - name: Run tests diff --git a/ci/dart.yml b/ci/dart.yml index 2b99c64739..74be049423 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -11,7 +11,7 @@ jobs: image: google/dart:latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install dependencies run: pub get - name: Run tests diff --git a/ci/docker-image.yml b/ci/docker-image.yml index d0e70b8279..904330bc5c 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -9,6 +9,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build the Docker image run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) diff --git a/ci/docker-push.yml b/ci/docker-push.yml index 51a36f38c0..c7e939267b 100644 --- a/ci/docker-push.yml +++ b/ci/docker-push.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Run tests run: | @@ -45,7 +45,7 @@ jobs: if: github.event_name == 'push' steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build image run: docker build . --file Dockerfile --tag image diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index e04df52acb..3d11219ab8 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: diff --git a/ci/elixir.yml b/ci/elixir.yml index eed27bc28b..0401caf2a4 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -11,7 +11,7 @@ jobs: image: elixir:1.9.1-slim steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install Dependencies run: | mix local.rebar --force diff --git a/ci/erlang.yml b/ci/erlang.yml index e67464c792..0b570b94eb 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -12,7 +12,7 @@ jobs: image: erlang:22.0.7 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Compile run: rebar3 compile - name: Run tests diff --git a/ci/gem-push.yml b/ci/gem-push.yml index f5fb3b643e..a635f2e735 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: diff --git a/ci/go.yml b/ci/go.yml index 169022ba33..27e1c6eb30 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -14,7 +14,7 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Get dependencies run: | diff --git a/ci/google.yml b/ci/google.yml index 69d6781cdb..0211ad7201 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 # Setup gcloud CLI - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master diff --git a/ci/gradle.yml b/ci/gradle.yml index dc24a2ef7a..444338257a 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/haskell.yml b/ci/haskell.yml index 2f9a0d1dcc..3aa09339d4 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-haskell@v1 with: ghc-version: '8.6.5' diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 782095829c..bcb881dba9 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build the site in the jekyll/builder container run: | docker run \ diff --git a/ci/laravel.yml b/ci/laravel.yml index c3841eb521..ad5d926c56 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -6,7 +6,7 @@ jobs: laravel-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" - name: Install Dependencies diff --git a/ci/maven.yml b/ci/maven.yml index dbc347f9c3..ee2c5eb1e5 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/node.js.yml b/ci/node.js.yml index 08271a3312..e72f5aca7a 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -12,7 +12,7 @@ jobs: node-version: [8.x, 10.x, 12.x] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index ed81431b5d..0eede46c93 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 @@ -19,7 +19,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 @@ -33,7 +33,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 diff --git a/ci/php.yml b/ci/php.yml index 8e856b81fa..1eb9bf757b 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Validate composer.json and composer.lock run: composer validate diff --git a/ci/python-app.yml b/ci/python-app.yml index 07a10be32b..4c81e5e54b 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v1 with: diff --git a/ci/python-package.yml b/ci/python-package.yml index d040060985..92dc4fc842 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -11,7 +11,7 @@ jobs: python-version: [2.7, 3.5, 3.6, 3.7, 3.8] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: diff --git a/ci/python-publish.yml b/ci/python-publish.yml index 21f2f01de1..b143a53098 100644 --- a/ci/python-publish.yml +++ b/ci/python-publish.yml @@ -8,7 +8,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v1 with: diff --git a/ci/ruby.yml b/ci/ruby.yml index 7258d723c9..cb69ab42aa 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: diff --git a/ci/rust.yml b/ci/rust.yml index 9ca641ba19..00f2bf571e 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build run: cargo build --verbose - name: Run tests diff --git a/ci/scala.yml b/ci/scala.yml index fbeee571c2..545ce18366 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/ci/swift.yml b/ci/swift.yml index 2e766326af..9306888181 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -8,7 +8,7 @@ jobs: runs-on: macOS-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Build run: swift build -v - name: Run tests From 48b117b9d352cbf17780c54e2c6f41e015c4ab2b Mon Sep 17 00:00:00 2001 From: Mike Coutermarsh Date: Sun, 5 Jan 2020 14:29:49 -0800 Subject: [PATCH 051/366] Update elixir.yml --- ci/elixir.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 51b3088224..3fcd8d31c6 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup elixir - uses: actions/setup-elixir@v1.0.0 + uses: actions/setup-elixir@v1.2.0 with: elixir-version: 1.9.x # Define the elixir version [required] otp-version: 22.x # Define the OTP version [required] From 44de3f55def22b01df19e57e0d49435061dc460d Mon Sep 17 00:00:00 2001 From: fjy202 <40914915+fjy202@users.noreply.github.com> Date: Wed, 8 Jan 2020 21:36:19 +0800 Subject: [PATCH 052/366] Pylint --- ci/pylint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ci/pylint.yml diff --git a/ci/pylint.yml b/ci/pylint.yml new file mode 100644 index 0000000000..657b06c165 --- /dev/null +++ b/ci/pylint.yml @@ -0,0 +1,22 @@ +name: Pylint + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Test with pytest + run: | + pylint `ls -R|grep .py$|xargs` From 36ead1ae0dcc488543acf7dc676911c513769f88 Mon Sep 17 00:00:00 2001 From: fjy202 <40914915+fjy202@users.noreply.github.com> Date: Wed, 8 Jan 2020 21:38:25 +0800 Subject: [PATCH 053/366] Delete pylint.yml --- ci/pylint.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 ci/pylint.yml diff --git a/ci/pylint.yml b/ci/pylint.yml deleted file mode 100644 index 657b06c165..0000000000 --- a/ci/pylint.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Test with pytest - run: | - pylint `ls -R|grep .py$|xargs` From 4d60a5fb725b26cda910cefdd8d3965d0f171a67 Mon Sep 17 00:00:00 2001 From: fjy202 <40914915+fjy202@users.noreply.github.com> Date: Wed, 8 Jan 2020 21:39:31 +0800 Subject: [PATCH 054/366] Create pylint.yml --- ci/pylint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ci/pylint.yml diff --git a/ci/pylint.yml b/ci/pylint.yml new file mode 100644 index 0000000000..657b06c165 --- /dev/null +++ b/ci/pylint.yml @@ -0,0 +1,22 @@ +name: Pylint + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Test with pytest + run: | + pylint `ls -R|grep .py$|xargs` From f30fb6cf24d29be842d2359dfd89a00c1e336557 Mon Sep 17 00:00:00 2001 From: fjy202 <40914915+fjy202@users.noreply.github.com> Date: Wed, 8 Jan 2020 21:41:28 +0800 Subject: [PATCH 055/366] pylint --- ci/properties/pylint.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/pylint.properties.json diff --git a/ci/properties/pylint.properties.json b/ci/properties/pylint.properties.json new file mode 100644 index 0000000000..c7d136342e --- /dev/null +++ b/ci/properties/pylint.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Pylint", + "description": "Lint a Python application with pylint.", + "iconName": "python", + "categories": ["Python"] +} From 1f997e9a87dbec71de6f0ec9139c083152a02ea7 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Wed, 8 Jan 2020 15:29:10 -0500 Subject: [PATCH 056/366] Use specific versions, remove rebar/hex Rebar and hex are installed by the action already --- ci/elixir.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 3fcd8d31c6..0e91f9caab 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -10,14 +10,11 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup elixir - uses: actions/setup-elixir@v1.2.0 + uses: actions/setup-elixir@v1 with: - elixir-version: 1.9.x # Define the elixir version [required] - otp-version: 22.x # Define the OTP version [required] + elixir-version: 1.9.4 # Define the elixir version [required] + otp-version: 22.2 # Define the OTP version [required] - name: Install Dependencies - run: | - mix local.rebar --force - mix local.hex --force - mix deps.get + run: mix deps.get - name: Run Tests run: mix test From 0de7b7f1aeab3f06a3c4db3ebf95b12afb7ee1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Oudemans?= <31566929+remyoudemans@users.noreply.github.com> Date: Fri, 10 Jan 2020 17:11:21 +0100 Subject: [PATCH 057/366] Make registry hostname and deployment name vars The google.yml deployment workflow starter hardcoded the registry hostname as `gcr.io` even though there are other possible registry hostnames. It also hardcoded the deployment name. This puts them in env variables and adds to the comments that they need to be adjusted by the user. --- ci/google.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index 0211ad7201..beb5e7f342 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -6,7 +6,7 @@ # # 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_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 and IMAGE environment variables (below). +# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below). name: Build and Deploy to GKE @@ -23,6 +23,8 @@ env: GKE_ZONE: us-west1-a GKE_CLUSTER: example-gke-cluster IMAGE: gke-test + REGISTRY_HOSTNAME: gcr.io + DEPLOYMENT_NAME: gke-test jobs: setup-build-publish-deploy: @@ -49,14 +51,14 @@ jobs: # Build the Docker image - name: Build run: | - docker build -t gcr.io/"$GKE_PROJECT"/"$IMAGE":"$GITHUB_SHA" \ + docker build -t "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$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/$GKE_PROJECT/$IMAGE:$GITHUB_SHA + docker push $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:$GITHUB_SHA # Set up kustomize - name: Set up Kustomize @@ -68,7 +70,7 @@ jobs: - name: Deploy run: | gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT - ./kustomize edit set image gcr.io/$GKE_PROJECT/$IMAGE:${GITHUB_SHA} + ./kustomize edit set image $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:${GITHUB_SHA} ./kustomize build . | kubectl apply -f - - kubectl rollout status deployment/gke-test + kubectl rollout status deployment/$DEPLOYMENT_NAME kubectl get services -o wide From 595b40510a6214f073de4b31c70db22f816b2365 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sun, 12 Jan 2020 08:33:58 +0000 Subject: [PATCH 058/366] Remove End-of-Life Node.js 8.x Node.js 8 went End-of-Life at the end of 2019 and should not be used in new workflows. --- ci/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index e72f5aca7a..a089915401 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [8.x, 10.x, 12.x] + node-version: [10.x, 12.x] steps: - uses: actions/checkout@v2 From 99a3541086f4c210f74146779f4de814f10ab8ab Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 15 Jan 2020 16:18:25 -0500 Subject: [PATCH 059/366] add Cypress starter workflow --- ci/cypress.yml | 45 +++++++++++++++++++++++++++ ci/properties/cypress.properties.json | 6 ++++ icons/cypress.svg | 16 ++++++++++ 3 files changed, 67 insertions(+) create mode 100644 ci/cypress.yml create mode 100644 ci/properties/cypress.properties.json create mode 100644 icons/cypress.svg diff --git a/ci/cypress.yml b/ci/cypress.yml new file mode 100644 index 0000000000..99b4e25049 --- /dev/null +++ b/ci/cypress.yml @@ -0,0 +1,45 @@ +name: Cypress + +on: [push] + +env: + CI: 1 # minimal progress output + TERM: xterm # good terminal rendering + +jobs: + e2e: + name: Cypress tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Cache NPM modules + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + - name: Cache Cypress binary + uses: actions/cache@v1 + with: + path: ~/.cache/Cypress + key: ${{ runner.os }}-cypress-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-cypress- + - name: install Cypress + run: | + npm ci + npx cypress verify + - name: E2E tests + run: npx cypress run + # save any error screenshots as test artifacts + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: screenshots + path: cypress/screenshots + # video should always be generated + - uses: actions/upload-artifact@v1 + with: + name: videos + path: cypress/videos diff --git a/ci/properties/cypress.properties.json b/ci/properties/cypress.properties.json new file mode 100644 index 0000000000..0fae5445e2 --- /dev/null +++ b/ci/properties/cypress.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Cypress", + "description": "Run end-to-end web application tests using Cypress.io", + "iconName": "cypress", + "categories": ["Testing", "Cypress"] +} diff --git a/icons/cypress.svg b/icons/cypress.svg new file mode 100644 index 0000000000..3134aebad6 --- /dev/null +++ b/icons/cypress.svg @@ -0,0 +1,16 @@ + + + + + + + + From 17d9115a99dac60725eac49ccf37649356f19ad2 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 15 Jan 2020 16:29:35 -0500 Subject: [PATCH 060/366] add comment about cypress gh action --- ci/cypress.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/cypress.yml b/ci/cypress.yml index 99b4e25049..c42c930ded 100644 --- a/ci/cypress.yml +++ b/ci/cypress.yml @@ -7,6 +7,8 @@ env: TERM: xterm # good terminal rendering jobs: + # for simpler configuration you can use 3rd party action + # https://github.com/cypress-io/github-action e2e: name: Cypress tests runs-on: ubuntu-latest From f2cf5bdb47cdded9c5b813ec4d23ad0aa8e3fba6 Mon Sep 17 00:00:00 2001 From: endolith Date: Sat, 18 Jan 2020 20:34:03 -0500 Subject: [PATCH 061/366] Remove Python 2.7 from default tests Python 2 is deprecated: https://www.python.org/doc/sunset-python-2/ --- ci/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/python-package.yml b/ci/python-package.yml index 92dc4fc842..3aff529e87 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + python-version: [3.5, 3.6, 3.7, 3.8] steps: - uses: actions/checkout@v2 From 0312cce50317ebdb9a8a5adc21f65645191b79ea Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 23 Jan 2020 19:47:58 +0530 Subject: [PATCH 062/366] create django.yml --- ci/django.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ci/django.yml diff --git a/ci/django.yml b/ci/django.yml new file mode 100644 index 0000000000..031c230681 --- /dev/null +++ b/ci/django.yml @@ -0,0 +1,29 @@ +name: Django Build + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + env: + SECRET_KEY: ${{ secrets.SECRET_KEY }} + DEBUG: False + run: | + python manage.py test From 966381e246103a97f2fb9e09dc1d3158cfe971da Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 23 Jan 2020 19:50:34 +0530 Subject: [PATCH 063/366] Create django.properties.json --- ci/properties/django.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/django.properties.json diff --git a/ci/properties/django.properties.json b/ci/properties/django.properties.json new file mode 100644 index 0000000000..9e1f6c947d --- /dev/null +++ b/ci/properties/django.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Django CI", + "description": "Build and Test a Django Project", + "iconName": "django", + "categories": ["Python", "Django"] +} From 533b24eb42d278f5cfe943a0e720703cd9119a39 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 23 Jan 2020 19:58:58 +0530 Subject: [PATCH 064/366] Update django.properties.json --- ci/properties/django.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/django.properties.json b/ci/properties/django.properties.json index 9e1f6c947d..30154416e2 100644 --- a/ci/properties/django.properties.json +++ b/ci/properties/django.properties.json @@ -1,5 +1,5 @@ { - "name": "Django CI", + "name": "Django", "description": "Build and Test a Django Project", "iconName": "django", "categories": ["Python", "Django"] From e1de33dd71f0e74b0b762d3895c8e4d26ebb06e9 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 23 Jan 2020 20:02:46 +0530 Subject: [PATCH 065/366] Update django.yml --- ci/django.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/django.yml b/ci/django.yml index 031c230681..fc9fda88f4 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -1,4 +1,4 @@ -name: Django Build +name: Django CI on: [push] @@ -17,12 +17,12 @@ jobs: uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: Install Dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run Tests - env: + env: #define SECRET_KEY in Secrets SECRET_KEY: ${{ secrets.SECRET_KEY }} DEBUG: False run: | From c19bd5e37831f7fc5b5d9866afdb90709734aa33 Mon Sep 17 00:00:00 2001 From: Tim Heuer Date: Tue, 28 Jan 2020 15:23:17 -0800 Subject: [PATCH 066/366] Updating .NET Core SDK version to LTS 2.2 is no longer supported, so moving to latest SDK released for .NET core which supports and encourages LTS runtime version as well as down-level building. --- ci/dotnet-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 3d11219ab8..5319a51409 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -12,6 +12,6 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 2.2.108 + dotnet-version: 3.1.101 - name: Build with dotnet run: dotnet build --configuration Release From 708e95bab1223509547047a14af7fa93b44b271a Mon Sep 17 00:00:00 2001 From: Chris Sidi Date: Wed, 29 Jan 2020 16:34:28 -0500 Subject: [PATCH 067/366] Switch back to `npm ci` (#214) Switch back to using `npm ci`, which is more efficient than `npm install` --- ci/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index a089915401..d22f03e7e6 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -17,7 +17,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm install + - run: npm ci - run: npm run build --if-present - run: npm test env: From a93d98e2ef08f4caf3a22ceaa77635af36743576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Ka=C5=A1par=20Jir=C3=A1sek?= Date: Thu, 30 Jan 2020 14:52:55 +0100 Subject: [PATCH 068/366] Fix macOS virtual machine case in Swift workflow --- ci/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/swift.yml b/ci/swift.yml index 9306888181..8a422f665f 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -5,7 +5,7 @@ on: [push] jobs: build: - runs-on: macOS-latest + runs-on: macos-latest steps: - uses: actions/checkout@v2 From 43b0ff3ed0bc90b4c81e33b53c257e07257fd558 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Tue, 4 Feb 2020 14:05:26 +0530 Subject: [PATCH 069/366] use actions v2 --- ci/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/django.yml b/ci/django.yml index fc9fda88f4..9f064b0c7b 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -12,7 +12,7 @@ jobs: python-version: [3.6, 3.7, 3.8] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: From b1cd1732eb4b79893de239f5d4a7a39f423fb800 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Fri, 7 Feb 2020 18:37:20 +0530 Subject: [PATCH 070/366] remove additional config Removed Additional setup for reading SECRET_KEYs --- ci/django.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/ci/django.yml b/ci/django.yml index 9f064b0c7b..bcdd8ba3a0 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -22,8 +22,5 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - name: Run Tests - env: #define SECRET_KEY in Secrets - SECRET_KEY: ${{ secrets.SECRET_KEY }} - DEBUG: False run: | python manage.py test From d037e97e823cf00008c81bf0cb58f647a4aa26a1 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Wed, 12 Feb 2020 13:26:01 -0500 Subject: [PATCH 071/366] Update starter workflows --- ci/android.yml | 6 +++++- ci/ant.yml | 6 +++++- ci/blank.yml | 6 +++++- ci/c-cpp.yml | 6 +++++- ci/clojure.yml | 6 +++++- ci/crystal.yml | 6 +++++- ci/dart.yml | 6 +++++- ci/django.yml | 6 +++++- ci/docker-image.yml | 6 +++++- ci/dotnet-core.yml | 6 +++++- ci/elixir.yml | 6 +++++- ci/erlang.yml | 6 +++++- ci/gem-push.yml | 8 +++----- ci/go.yml | 8 +++++++- ci/gradle.yml | 6 +++++- ci/haskell.yml | 6 +++++- ci/jekyll.yml | 6 +++++- ci/laravel.yml | 6 +++++- ci/maven.yml | 6 +++++- ci/node.js.yml | 6 +++++- ci/php.yml | 6 +++++- ci/python-app.yml | 6 +++++- ci/python-package.yml | 7 +++++-- ci/ruby.yml | 6 +++++- ci/rust.yml | 6 +++++- ci/scala.yml | 6 +++++- ci/swift.yml | 6 +++++- 27 files changed, 135 insertions(+), 32 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index d03d182a1d..fc55dabb8d 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -1,6 +1,10 @@ name: Android CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/ant.yml b/ci/ant.yml index eb70532ff9..4c9770d730 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -1,6 +1,10 @@ name: Java CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/blank.yml b/ci/blank.yml index 317bc22f38..5b5d1054ef 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -1,6 +1,10 @@ name: CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index 16c888db09..72d3f0e419 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -1,6 +1,10 @@ name: C/C++ CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/clojure.yml b/ci/clojure.yml index 2ed34a453d..dcc6ab34cf 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -1,6 +1,10 @@ name: Clojure CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/crystal.yml b/ci/crystal.yml index ea1f58c9eb..1da6965481 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -1,6 +1,10 @@ name: Crystal CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/dart.yml b/ci/dart.yml index 74be049423..2193ed02a3 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -1,6 +1,10 @@ name: Dart CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/django.yml b/ci/django.yml index bcdd8ba3a0..c806047783 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -1,6 +1,10 @@ name: Django CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/docker-image.yml b/ci/docker-image.yml index 904330bc5c..7797115199 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -1,6 +1,10 @@ name: Docker Image CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 3d11219ab8..c8758d76f2 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -1,6 +1,10 @@ name: .NET Core -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/elixir.yml b/ci/elixir.yml index 0e91f9caab..4de7dcbd84 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -1,6 +1,10 @@ name: Elixir CI -on: push +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/erlang.yml b/ci/erlang.yml index 0b570b94eb..4b5a44fc9b 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -1,6 +1,10 @@ name: Erlang CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: diff --git a/ci/gem-push.yml b/ci/gem-push.yml index a635f2e735..08733c7e7a 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -1,12 +1,10 @@ name: Ruby Gem on: - pull_request: - branches: - - master push: - branches: - - master + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/go.yml b/ci/go.yml index 27e1c6eb30..438d565753 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -1,5 +1,11 @@ name: Go -on: [push] + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + jobs: build: diff --git a/ci/gradle.yml b/ci/gradle.yml index 444338257a..fdb2e67439 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -1,6 +1,10 @@ name: Java CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/haskell.yml b/ci/haskell.yml index 3aa09339d4..62cc43babe 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -1,6 +1,10 @@ name: Haskell CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/jekyll.yml b/ci/jekyll.yml index bcb881dba9..94ac8f7cf6 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -1,6 +1,10 @@ name: Jekyll site CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/laravel.yml b/ci/laravel.yml index 352de91fcc..12c7583328 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -1,6 +1,10 @@ name: Laravel -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: laravel-tests: diff --git a/ci/maven.yml b/ci/maven.yml index ee2c5eb1e5..8eefff1ff2 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -1,6 +1,10 @@ name: Java CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/node.js.yml b/ci/node.js.yml index d22f03e7e6..d924921d90 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,6 +1,10 @@ name: Node.js CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/php.yml b/ci/php.yml index 1eb9bf757b..9d1b4351fd 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -1,6 +1,10 @@ name: PHP Composer -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/python-app.yml b/ci/python-app.yml index 4c81e5e54b..553637291b 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -1,6 +1,10 @@ name: Python application -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/python-package.yml b/ci/python-package.yml index 3aff529e87..a51d5a0517 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -1,7 +1,10 @@ name: Python package -on: [push] - +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/ruby.yml b/ci/ruby.yml index cb69ab42aa..302d148d53 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -1,6 +1,10 @@ name: Ruby -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/rust.yml b/ci/rust.yml index 00f2bf571e..468e4bff14 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -1,6 +1,10 @@ name: Rust -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/scala.yml b/ci/scala.yml index 545ce18366..f182d0c092 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -1,6 +1,10 @@ name: Scala CI -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: diff --git a/ci/swift.yml b/ci/swift.yml index 8a422f665f..5dbdb4f34d 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -1,6 +1,10 @@ name: Swift -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: From d8d2171b120777ba2430128c42899077a6cf16d5 Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Fri, 14 Feb 2020 15:07:00 -0500 Subject: [PATCH 072/366] Update aws.properties.json --- ci/properties/aws.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/aws.properties.json b/ci/properties/aws.properties.json index 2988e7c0c7..a8132dca5a 100644 --- a/ci/properties/aws.properties.json +++ b/ci/properties/aws.properties.json @@ -2,5 +2,5 @@ "name": "Deploy to Amazon ECS", "description": "Deploy a container to an Amazon ECS service powered by AWS Fargate or Amazon EC2.", "iconName": "aws", - "categories": null -} \ No newline at end of file + "categories": ["Docker"] +} From 4d107f13f7dd13c2585930c033834385395acef8 Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Fri, 14 Feb 2020 15:08:30 -0500 Subject: [PATCH 073/366] Update azure.properties.json --- ci/properties/azure.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/azure.properties.json b/ci/properties/azure.properties.json index ba92f6fa5c..8ccdc38044 100644 --- a/ci/properties/azure.properties.json +++ b/ci/properties/azure.properties.json @@ -2,5 +2,5 @@ "name": "Deploy Node.js to Azure Web App", "description": "Build a Node.js project and deploy it to an Azure Web App.", "iconName": "azure", - "categories": null -} \ No newline at end of file + "categories": ["JavaScript"] +} From 8088828c3924b371bca419dba9df42acaeb97f8e Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Fri, 14 Feb 2020 15:09:04 -0500 Subject: [PATCH 074/366] Update google.properties.json --- ci/properties/google.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/google.properties.json b/ci/properties/google.properties.json index dee44b9be2..877e239f4a 100644 --- a/ci/properties/google.properties.json +++ b/ci/properties/google.properties.json @@ -2,5 +2,5 @@ "name": "Build and Deploy to GKE", "description": "Build a docker container, publish it to Google Container Registry, and deploy to GKE.", "iconName": "googlegke", - "categories": null -} \ No newline at end of file + "categories": ["Docker"] +} From d9321333786d559e00c8e2c9e330d05ced0cd4d3 Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Fri, 14 Feb 2020 15:09:41 -0500 Subject: [PATCH 075/366] Update google.properties.json --- ci/properties/google.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/google.properties.json b/ci/properties/google.properties.json index 877e239f4a..5590cecb36 100644 --- a/ci/properties/google.properties.json +++ b/ci/properties/google.properties.json @@ -2,5 +2,5 @@ "name": "Build and Deploy to GKE", "description": "Build a docker container, publish it to Google Container Registry, and deploy to GKE.", "iconName": "googlegke", - "categories": ["Docker"] + "categories": ["Dockerfile"] } From e6a211ee2a44b98f6f1e42c1d33a54683b45e48c Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Fri, 14 Feb 2020 15:10:10 -0500 Subject: [PATCH 076/366] Update ci/properties/aws.properties.json --- ci/properties/aws.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/aws.properties.json b/ci/properties/aws.properties.json index a8132dca5a..36937439b8 100644 --- a/ci/properties/aws.properties.json +++ b/ci/properties/aws.properties.json @@ -2,5 +2,5 @@ "name": "Deploy to Amazon ECS", "description": "Deploy a container to an Amazon ECS service powered by AWS Fargate or Amazon EC2.", "iconName": "aws", - "categories": ["Docker"] + "categories": ["Dockerfile"] } From 71225d47f54b1c341216cdc27f204443619ebba1 Mon Sep 17 00:00:00 2001 From: chenrui Date: Wed, 19 Feb 2020 21:07:29 -0500 Subject: [PATCH 077/366] Update ghc to v8.8.2 --- ci/haskell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/haskell.yml b/ci/haskell.yml index 3aa09339d4..84bd19616c 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-haskell@v1 with: - ghc-version: '8.6.5' + ghc-version: '8.8.2' cabal-version: '3.0' - name: Install dependencies run: | From 2ecb907f13265a92d74701f94632b6f2906188e3 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 20 Feb 2020 10:01:16 -0500 Subject: [PATCH 078/366] More updates to starter workflows --- ci/aws.yml | 8 +++----- ci/azure.yml | 7 +++---- ci/{docker-push.yml => docker-publish.yml} | 2 +- ci/google.yml | 7 +++---- ...roperties.json => docker-publish.properties.json} | 12 ++++++------ ci/properties/gradle.properties.json | 2 +- ci/properties/maven.properties.json | 2 +- ci/properties/npm-publish.properties.json | 2 +- 8 files changed, 19 insertions(+), 23 deletions(-) rename ci/{docker-push.yml => docker-publish.yml} (97%) rename ci/properties/{docker-push.properties.json => docker-publish.properties.json} (71%) diff --git a/ci/aws.yml b/ci/aws.yml index 374ff099c9..ee498c6aa3 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -1,6 +1,5 @@ # This workflow will build and push a new container image to Amazon ECR, -# and then will deploy a new task definition to Amazon ECS, on every push -# to the master branch. +# and then will deploy a new task definition to Amazon ECS, whenever a release is created # # To use this workflow, you will need to complete the following set-up steps: # @@ -25,9 +24,8 @@ # and best practices on handling the access key credentials. on: - push: - branches: - - master + release: + types: [created] name: Deploy to Amazon ECS diff --git a/ci/azure.yml b/ci/azure.yml index 1e4c5b1f5d..731418eb07 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -1,4 +1,4 @@ -# This workflow will build and push a node.js application to an Azure Web App on every push to the master branch. +# This workflow will build and push a node.js application to an Azure Web App whenever a release is created. # # To configure this workflow: # @@ -9,9 +9,8 @@ # 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: - push: - branches: - - master + release: + types: [created] env: AZURE_WEBAPP_NAME: your-app-name # set this to your application's name diff --git a/ci/docker-push.yml b/ci/docker-publish.yml similarity index 97% rename from ci/docker-push.yml rename to ci/docker-publish.yml index c7e939267b..bb193ada4c 100644 --- a/ci/docker-push.yml +++ b/ci/docker-publish.yml @@ -35,7 +35,7 @@ jobs: docker build . --file Dockerfile fi - # Push image to GitHub Package Registry. + # Push image to GitHub Packages. # See also https://docs.docker.com/docker-hub/builds/ push: # Ensure test job passes before pushing image. diff --git a/ci/google.yml b/ci/google.yml index beb5e7f342..3b743b6172 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -1,4 +1,4 @@ -# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE. +# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE whenever a release is created # # To configure this workflow: # @@ -11,9 +11,8 @@ name: Build and Deploy to GKE on: - push: - branches: - - master + release: + types: [created] # Environment variables available to all jobs and steps in this workflow env: diff --git a/ci/properties/docker-push.properties.json b/ci/properties/docker-publish.properties.json similarity index 71% rename from ci/properties/docker-push.properties.json rename to ci/properties/docker-publish.properties.json index d23e119815..1b36c0f0e9 100644 --- a/ci/properties/docker-push.properties.json +++ b/ci/properties/docker-publish.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Docker push", - "description": "Build, test and push Docker image to GitHub Package Registry.", - "iconName": "docker", - "categories": ["Dockerfile"] -} +{ + "name": "Publish Docker Container", + "description": "Build, test and push Docker image to GitHub Packages.", + "iconName": "docker", + "categories": ["Dockerfile"] +} diff --git a/ci/properties/gradle.properties.json b/ci/properties/gradle.properties.json index c58d68ab03..be0a613d4f 100644 --- a/ci/properties/gradle.properties.json +++ b/ci/properties/gradle.properties.json @@ -1,5 +1,5 @@ { - "name": "Gradle", + "name": "Java with Gradle", "description": "Build and test a Java project using a Gradle wrapper script.", "iconName": "gradle", "categories": ["Java", "Gradle"] diff --git a/ci/properties/maven.properties.json b/ci/properties/maven.properties.json index 1875bdcdc7..bcc8430adf 100644 --- a/ci/properties/maven.properties.json +++ b/ci/properties/maven.properties.json @@ -1,5 +1,5 @@ { - "name": "Maven", + "name": "Java with Maven", "description": "Build and test a Java project with Apache Maven.", "iconName": "maven", "categories": ["Java", "Maven"] diff --git a/ci/properties/npm-publish.properties.json b/ci/properties/npm-publish.properties.json index da3da1806f..d253373b18 100644 --- a/ci/properties/npm-publish.properties.json +++ b/ci/properties/npm-publish.properties.json @@ -1,5 +1,5 @@ { - "name": "Node.js Package", + "name": "Publish Node.js Package", "description": "Publishes a Node.js package to npm and GitHub Packages.", "iconName": "node-package-transparent", "categories": ["JavaScript", "SDLC"] From 325e76073bc0222bf19dedea8bcd70c5495426da Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 20 Feb 2020 11:33:16 -0500 Subject: [PATCH 079/366] Add new starter workflows --- ci/gradle-publish.yml | 30 ++++++++++++++++++++ ci/maven-publish.yml | 30 ++++++++++++++++++++ ci/properties/gradle-publish.properties.json | 6 ++++ ci/properties/maven-publish.properties.json | 6 ++++ 4 files changed, 72 insertions(+) create mode 100644 ci/gradle-publish.yml create mode 100644 ci/maven-publish.yml create mode 100644 ci/properties/gradle-publish.properties.json create mode 100644 ci/properties/maven-publish.properties.json diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml new file mode 100644 index 0000000000..53aa48c3fa --- /dev/null +++ b/ci/gradle-publish.yml @@ -0,0 +1,30 @@ +# This workflow will build a package using gradle and then publish it to GitHub packages whenever 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 Maven + run: mvn -B package --file pom.xml + + - name: Publish to GitHub Packages Apache Maven + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + env: + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml new file mode 100644 index 0000000000..64b1ae0b70 --- /dev/null +++ b/ci/maven-publish.yml @@ -0,0 +1,30 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages whenever a release is created +# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path + +name: Maven 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 Maven + run: mvn -B package --file pom.xml + + - name: Publish to GitHub Packages Apache Maven + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + env: + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/ci/properties/gradle-publish.properties.json b/ci/properties/gradle-publish.properties.json new file mode 100644 index 0000000000..eae856bea2 --- /dev/null +++ b/ci/properties/gradle-publish.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Publish Java Package with Gradle", + "description": "Build a Java Package using Gradle and publish it to GitHub Packages.", + "iconName": "gradle", + "categories": ["Java", "Gradle"] +} \ No newline at end of file diff --git a/ci/properties/maven-publish.properties.json b/ci/properties/maven-publish.properties.json new file mode 100644 index 0000000000..a13852e6a9 --- /dev/null +++ b/ci/properties/maven-publish.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Publish Java Package with Maven", + "description": "Build a Java Package using Maven and publish it to GitHub Packages.", + "iconName": "maven", + "categories": ["Java", "Maven"] +} \ No newline at end of file From b0d776c6782f8337c7582891f1dfe18ad110004e Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 20 Feb 2020 12:44:22 -0500 Subject: [PATCH 080/366] Documentation --- ci/ant.yml | 3 +++ ci/aws.yml | 2 +- ci/azure.yml | 2 +- ci/google.yml | 2 +- ci/gradle-publish.yml | 2 +- ci/gradle.yml | 5 ++++- ci/maven-publish.yml | 2 +- ci/maven.yml | 5 ++++- ci/npm-publish.yml | 3 +++ 9 files changed, 19 insertions(+), 7 deletions(-) diff --git a/ci/ant.yml b/ci/ant.yml index 4c9770d730..7077f90c4e 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -1,3 +1,6 @@ +# This workflow will build a Java project with Ant +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant + name: Java CI on: diff --git a/ci/aws.yml b/ci/aws.yml index ee498c6aa3..40094ae9be 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -1,5 +1,5 @@ # This workflow will build and push a new container image to Amazon ECR, -# and then will deploy a new task definition to Amazon ECS, whenever a release is created +# 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: # diff --git a/ci/azure.yml b/ci/azure.yml index 731418eb07..d0f5576efd 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -1,4 +1,4 @@ -# This workflow will build and push a node.js application to an Azure Web App whenever a release is created. +# This workflow will build and push a node.js application to an Azure Web App when a release is created. # # To configure this workflow: # diff --git a/ci/google.yml b/ci/google.yml index 3b743b6172..b8d1079527 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -1,4 +1,4 @@ -# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE whenever a release is created +# 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: # diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index 53aa48c3fa..fe0fd8530a 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -1,4 +1,4 @@ -# This workflow will build a package using gradle and then publish it to GitHub packages whenever a release is created +# 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 diff --git a/ci/gradle.yml b/ci/gradle.yml index fdb2e67439..50bea75bc6 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -1,4 +1,7 @@ -name: Java CI +# 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: diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index 64b1ae0b70..fb1c7eec77 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -1,4 +1,4 @@ -# This workflow will build a package using Maven and then publish it to GitHub packages whenever a release is created +# 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#apache-maven-with-a-settings-path name: Maven Package diff --git a/ci/maven.yml b/ci/maven.yml index 8eefff1ff2..c3e16c6c47 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -1,4 +1,7 @@ -name: Java CI +# 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: diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 0eede46c93..81cbddb750 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -1,3 +1,6 @@ +# 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://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + name: Node.js Package on: From 0c0e0c1a33a7f54136351189cf9a039dcbecbb32 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 20 Feb 2020 12:54:19 -0500 Subject: [PATCH 081/366] Update gradle --- ci/gradle-publish.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index fe0fd8530a..118b0758e3 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -21,10 +21,11 @@ jobs: 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 Maven - run: mvn -B package --file pom.xml + - name: Build with Gradle + run: gradle build - - name: Publish to GitHub Packages Apache Maven - run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + - name: Publish to GitHub Packages + run: gradle publish env: - GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file + USERNAME: ${{ github.actor }} + PASSWORD: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 5d2c37103af9df51948f528578f72315ff238ac1 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 20 Feb 2020 13:11:39 -0500 Subject: [PATCH 082/366] Misc updates --- ci/properties/gradle-publish.properties.json | 2 +- ci/properties/maven-publish.properties.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/gradle-publish.properties.json b/ci/properties/gradle-publish.properties.json index eae856bea2..90b7295585 100644 --- a/ci/properties/gradle-publish.properties.json +++ b/ci/properties/gradle-publish.properties.json @@ -1,6 +1,6 @@ { "name": "Publish Java Package with Gradle", - "description": "Build a Java Package using Gradle and publish it to GitHub Packages.", + "description": "Build a Java Package using Gradle and publish to GitHub Packages.", "iconName": "gradle", "categories": ["Java", "Gradle"] } \ No newline at end of file diff --git a/ci/properties/maven-publish.properties.json b/ci/properties/maven-publish.properties.json index a13852e6a9..2f59f41478 100644 --- a/ci/properties/maven-publish.properties.json +++ b/ci/properties/maven-publish.properties.json @@ -1,6 +1,6 @@ { "name": "Publish Java Package with Maven", - "description": "Build a Java Package using Maven and publish it to GitHub Packages.", + "description": "Build a Java Package using Maven and publish to GitHub Packages.", "iconName": "maven", "categories": ["Java", "Maven"] } \ No newline at end of file From 5ce12321a2fb33a428c3e7fb2dddac03276083da Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 20 Feb 2020 13:59:00 -0500 Subject: [PATCH 083/366] Documentation for the basic workflow --- ci/blank.yml | 14 +++++++++++++- ci/node.js.yml | 3 +++ ci/python-app.yml | 3 +++ ci/python-package.yml | 4 ++++ ci/python-publish.yml | 3 +++ 5 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ci/blank.yml b/ci/blank.yml index 5b5d1054ef..81e3002468 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -1,20 +1,32 @@ +# This is a basic workflow to help you get started with Actions + name: CI +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch on: push: branches: [ master ] pull_request: branches: [ master ] +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: + # This workflow contains a single job called "build" build: - + # The type of runner that the job will run on runs-on: ubuntu-latest + # 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@v2 + + # Runs a single command using the runners shell - name: Run a one-line script run: echo Hello, world! + + # Runs a set of commands using the runners shell - name: Run a multi-line script run: | echo Add other actions to build, diff --git a/ci/node.js.yml b/ci/node.js.yml index d924921d90..e7081a4a2c 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,3 +1,6 @@ +# 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 on: diff --git a/ci/python-app.yml b/ci/python-app.yml index 553637291b..1519cec7c3 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -1,3 +1,6 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + name: Python application on: diff --git a/ci/python-package.yml b/ci/python-package.yml index a51d5a0517..846b2f9c96 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -1,3 +1,6 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + name: Python package on: @@ -5,6 +8,7 @@ on: branches: [ master ] pull_request: branches: [ master ] + jobs: build: diff --git a/ci/python-publish.yml b/ci/python-publish.yml index b143a53098..b20652e976 100644 --- a/ci/python-publish.yml +++ b/ci/python-publish.yml @@ -1,3 +1,6 @@ +# This workflows will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + name: Upload Python Package on: From 4e1cbdb464b643f07c941d9c10174f5b2921b604 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Fri, 21 Feb 2020 12:55:06 -0500 Subject: [PATCH 084/366] PR feedback --- ci/gradle-publish.yml | 2 ++ ci/laravel.yml | 2 ++ ci/python-publish.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index 118b0758e3..38b3656de1 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -24,6 +24,8 @@ jobs: - name: Build with Gradle run: gradle build + # The USERNAME and PASSWORD 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: diff --git a/ci/laravel.yml b/ci/laravel.yml index 12c7583328..7fc4665d5f 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -8,7 +8,9 @@ on: jobs: laravel-tests: + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 - name: Copy .env diff --git a/ci/python-publish.yml b/ci/python-publish.yml index b20652e976..d5f3859d10 100644 --- a/ci/python-publish.yml +++ b/ci/python-publish.yml @@ -9,7 +9,9 @@ on: jobs: deploy: + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 - name: Set up Python From 90e0057b612f1edbcf67b87bd3661fc1fca7363d Mon Sep 17 00:00:00 2001 From: mingshun Date: Thu, 27 Feb 2020 10:46:47 +0800 Subject: [PATCH 085/366] Add Tencent Cloud starter workflow --- ci/properties/tencent.properties.json | 6 +++ ci/tencent.yml | 76 +++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 ci/properties/tencent.properties.json create mode 100644 ci/tencent.yml diff --git a/ci/properties/tencent.properties.json b/ci/properties/tencent.properties.json new file mode 100644 index 0000000000..d93a25e4e4 --- /dev/null +++ b/ci/properties/tencent.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Build and Deploy to TKE", + "description": "Build a Docker container, publish it to TKE Registry, and deploy to TKE cluster.", + "iconName": "tencentcloud", + "categories": ["Dockerfile"] +} diff --git a/ci/tencent.yml b/ci/tencent.yml new file mode 100644 index 0000000000..8b937bc963 --- /dev/null +++ b/ci/tencent.yml @@ -0,0 +1,76 @@ +# This workflow will build a docker container, publish it to TKE Registry, and deploy it to TKE. +# +# To configure this workflow: +# +# 1. Ensure that your repository contains the necessary configuration for your Tencent Kubernetes Engine cluster, +# including deployment.yml, kustomization.yml, service.yml, etc. +# +# 2. Set up secrets in your workspace: +# - TENCENT_CLOUD_SECRET_ID with Tencent Cloud secret id +# - TENCENT_CLOUD_SECRET_KEY with Tencent Cloud secret key +# - TENCENT_CLOUD_ACCOUNT_ID with Tencent Cloud account id +# - TKE_REGISTRY_PASSWORD with TKE registry password +# +# 3. Change the values for the TKE_IMAGE_URL, TKE_REGION, TKE_CLUSTER_ID and DEPLOYMENT_NAME environment variables (below). + +name: Build and Deploy to TKE + +on: + push: + branches: + - master + +# Environment variables available to all jobs and steps in this workflow +env: + TKE_IMAGE_URL: ccr.ccs.tencentyun.com/demo/mywebapp + TKE_REGION: ap-guangzhou + TKE_CLUSTER_ID: cls-mywebapp + DEPLOYMENT_NAME: tke-test + +jobs: + setup-build-publish-deploy: + name: Setup, Build, Publish, and Deploy + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v2 + + # Build + - name: Build Docker image + run: | + docker build -t ${TKE_IMAGE_URL}:${GITHUB_SHA} . + + - name: Login TKE Registry + run: | + docker login -u ${{ secrets.TENCENT_CLOUD_ACCOUNT_ID }} -p ${{ secrets.TKE_REGISTRY_PASSWORD }} ${TKE_IMAGE_URL} + + # Push the Docker image to TKE Registry + - name: Publish + run: | + docker push ${TKE_IMAGE_URL}:${GITHUB_SHA} + + - name: Set up Kustomize + run: | + curl -o kustomize --location https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 + chmod u+x ./kustomize + + - name: Set up ~/.kube/config for connecting TKE cluster + uses: TencentCloud/tke-cluster-credential-action@v1 + with: + secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} + secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} + tke_region: ${{ env.TKE_REGION }} + cluster_id: ${{ env.TKE_CLUSTER_ID }} + + - name: Switch to TKE context + run: | + kubectl config use-context ${TKE_CLUSTER_ID}-context-default + + # Deploy the Docker image to the TKE cluster + - name: Deploy + run: | + ./kustomize edit set image ${TKE_IMAGE_URL}:${GITHUB_SHA} + ./kustomize build . | kubectl apply -f - + kubectl rollout status deployment/${DEPLOYMENT_NAME} + kubectl get services -o wide \ No newline at end of file From 63d39d990b70a698453af81a147f4297e5a34459 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 28 Feb 2020 15:24:15 +0000 Subject: [PATCH 086/366] Update README with guidance Tell people how to use these starter workflows. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b1dd935eae..ffe04a3c18 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ ## Starter Workflows - +These are the workflow files for helping people get started with GitHub Actions. They're presented whenever you start to create a new GitHub Actions workflow. + +**If you want to get started with GitHub actions, you can use these starter workflows by clicking the "Actions" tab in the repository where you want to create a workflow.** -These are the workflow files for helping people get started with GitHub Actions. + **Directory structure:** * [ci](ci): solutions for Continuous Integration From 32e42a51fbc9371e9d49732373ff147ee1681103 Mon Sep 17 00:00:00 2001 From: Mike Coutermarsh Date: Sat, 29 Feb 2020 17:04:55 -0800 Subject: [PATCH 087/366] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ffe04a3c18..5d81359d31 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ These are the workflow files for helping people get started with GitHub Actions. They're presented whenever you start to create a new GitHub Actions workflow. -**If you want to get started with GitHub actions, you can use these starter workflows by clicking the "Actions" tab in the repository where you want to create a workflow.** +**If you want to get started with GitHub Actions, you can use these starter workflows by clicking the "Actions" tab in the repository where you want to create a workflow.** From 1af242240f78dc95005b006c35988ad7766863af Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Tue, 3 Mar 2020 17:06:43 +0100 Subject: [PATCH 088/366] Revert "Add missing categories" --- ci/properties/aws.properties.json | 4 ++-- ci/properties/azure.properties.json | 4 ++-- ci/properties/google.properties.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/properties/aws.properties.json b/ci/properties/aws.properties.json index 36937439b8..2988e7c0c7 100644 --- a/ci/properties/aws.properties.json +++ b/ci/properties/aws.properties.json @@ -2,5 +2,5 @@ "name": "Deploy to Amazon ECS", "description": "Deploy a container to an Amazon ECS service powered by AWS Fargate or Amazon EC2.", "iconName": "aws", - "categories": ["Dockerfile"] -} + "categories": null +} \ No newline at end of file diff --git a/ci/properties/azure.properties.json b/ci/properties/azure.properties.json index 8ccdc38044..ba92f6fa5c 100644 --- a/ci/properties/azure.properties.json +++ b/ci/properties/azure.properties.json @@ -2,5 +2,5 @@ "name": "Deploy Node.js to Azure Web App", "description": "Build a Node.js project and deploy it to an Azure Web App.", "iconName": "azure", - "categories": ["JavaScript"] -} + "categories": null +} \ No newline at end of file diff --git a/ci/properties/google.properties.json b/ci/properties/google.properties.json index 5590cecb36..dee44b9be2 100644 --- a/ci/properties/google.properties.json +++ b/ci/properties/google.properties.json @@ -2,5 +2,5 @@ "name": "Build and Deploy to GKE", "description": "Build a docker container, publish it to Google Container Registry, and deploy to GKE.", "iconName": "googlegke", - "categories": ["Dockerfile"] -} + "categories": null +} \ No newline at end of file From cb7f7926da8178aead88d77a79d8579b1b04bd79 Mon Sep 17 00:00:00 2001 From: Usha N Date: Mon, 9 Mar 2020 15:57:09 +0530 Subject: [PATCH 089/366] Updated template to use azure/webapps-deploy@v2 --- ci/azure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/azure.yml b/ci/azure.yml index d0f5576efd..dbb46b6f83 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -35,8 +35,8 @@ jobs: npm run build --if-present npm run test --if-present - name: 'Deploy to Azure WebApp' - uses: azure/webapps-deploy@v1 + 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 }} \ No newline at end of file + package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} From 514247182a4f2b9ff2894718227891cefb377229 Mon Sep 17 00:00:00 2001 From: wysohn Date: Sun, 15 Mar 2020 03:47:21 -0700 Subject: [PATCH 090/366] Inconsistent environmental variable name https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-gradle-for-use-with-github-packages In the example above, the Gradle code tries to get the token value from the `TOKEN`, yet this workflow saves the token in the `PASSWORD`. Easy fix yet can save lots of time for newcomers. --- ci/gradle-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index 38b3656de1..cec487ecc5 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -24,10 +24,10 @@ jobs: - name: Build with Gradle run: gradle build - # The USERNAME and PASSWORD need to correspond to the credentials environment variables used in + # 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 }} - PASSWORD: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + TOKEN: ${{ secrets.GITHUB_TOKEN }} From 781776c22858249cb710906140426ab50a3f15da Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Tue, 17 Mar 2020 11:08:17 +0000 Subject: [PATCH 091/366] Update .NET Core CI template Run a `dotnet restore` step, run tests. --- ci/dotnet-core.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index a925bc2bc1..c2a722b24a 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -17,5 +17,9 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.101 - - name: Build with dotnet - run: dotnet build --configuration Release + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Test + run: dotnet test --no-restore --verbosity normal From efb9b5890272160f642e4f4bf190be15d7db356a Mon Sep 17 00:00:00 2001 From: Jiale Liu Date: Wed, 18 Mar 2020 12:08:46 +0800 Subject: [PATCH 092/366] Bug fix : repository name must be lowercase https://github.com/Licsber/opencv-docker/runs/514244582?check_suite_focus=true Push image: Error parsing reference: "docker.pkg.github.com/Licsber/opencv-docker/opencv:latest" is not a valid repository/tag: invalid reference format: repository name must be lowercase My username contains uppercase characters, this make push failed. So fix the bug by change all uppercase in IMAGE_ID to lowercase. --- ci/docker-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index bb193ada4c..21f5bd128a 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -56,6 +56,9 @@ jobs: - 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,') From 391c5961e991c1152b2a98ed27a9c372048472b7 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 20 Mar 2020 12:17:18 +0000 Subject: [PATCH 093/366] npm-publish: remove explicit scope The setup-node action will default the scope to the correct user (the repo owner), so we do not need to explicitly include it in the workflow. Removing it ensures that the starter template is easier for people to use; now there are no changes necessary to get started. https://github.com/actions/setup-node/blob/master/src/authutil.ts#L26 --- ci/npm-publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 81cbddb750..861e37239f 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -41,7 +41,6 @@ jobs: with: node-version: 12 registry-url: https://npm.pkg.github.com/ - scope: '@your-github-username' - run: npm ci - run: npm publish env: From ed5cb0096e70c082ac4b02ed25d3fc8b24a41525 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Tue, 17 Mar 2020 11:13:06 +0000 Subject: [PATCH 094/366] Include a .gitattributes Every good git repository should have a .gitattributes file. --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..176a458f94 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto From 8beb802437927d71bbb91605d15491672edf222a Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Tue, 17 Mar 2020 11:17:19 +0000 Subject: [PATCH 095/366] Renormalize line endings We should have consistent line endings in our repository; now that we have a .gitattributes file, update the repository contents to match expectations. --- ci/android.yml | 42 +++++----- ci/ant.yml | 48 ++++++------ ci/blank.yml | 66 ++++++++-------- ci/c-cpp.yml | 46 +++++------ ci/clojure.yml | 38 +++++----- ci/crystal.yml | 44 +++++------ ci/dart.yml | 44 +++++------ ci/docker-image.yml | 36 ++++----- ci/dotnet-core.yml | 50 ++++++------ ci/erlang.yml | 46 +++++------ ci/go.yml | 68 ++++++++--------- ci/gradle.yml | 52 ++++++------- ci/haskell.yml | 58 +++++++------- ci/jekyll.yml | 40 +++++----- ci/maven.yml | 48 ++++++------ ci/node.js.yml | 62 +++++++-------- ci/properties/android.properties.json | 12 +-- ci/properties/ant.properties.json | 12 +-- ci/properties/blank.properties.json | 12 +-- ci/properties/c-cpp.properties.json | 12 +-- ci/properties/clojure.properties.json | 12 +-- ci/properties/crystal.properties.json | 12 +-- ci/properties/dart.properties.json | 12 +-- ci/properties/docker-image.properties.json | 12 +-- ci/properties/dotnet-core.properties.json | 12 +-- ci/properties/elixir.properties.json | 12 +-- ci/properties/erlang.properties.json | 12 +-- ci/properties/go.properties.json | 12 +-- ci/properties/gradle.properties.json | 12 +-- ci/properties/haskell.properties.json | 12 +-- ci/properties/jekyll.properties.json | 12 +-- ci/properties/maven.properties.json | 12 +-- ci/properties/node.js.properties.json | 12 +-- ci/properties/python-app.properties.json | 12 +-- ci/properties/python-package.properties.json | 12 +-- ci/properties/ruby.properties.json | 12 +-- ci/properties/rust.properties.json | 10 +-- ci/python-app.yml | 74 +++++++++--------- ci/python-package.yml | 80 ++++++++++---------- ci/ruby.yml | 48 ++++++------ ci/rust.yml | 38 +++++----- 41 files changed, 639 insertions(+), 639 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index fc55dabb8d..7ec0147524 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -1,21 +1,21 @@ -name: Android CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -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 Gradle - run: ./gradlew build +name: Android CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +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 Gradle + run: ./gradlew build diff --git a/ci/ant.yml b/ci/ant.yml index 7077f90c4e..efebba5a07 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -1,24 +1,24 @@ -# This workflow will build a Java project with Ant -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant - -name: Java CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -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 Ant - run: ant -noinput -buildfile build.xml +# This workflow will build a Java project with Ant +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant + +name: Java CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +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 Ant + run: ant -noinput -buildfile build.xml diff --git a/ci/blank.yml b/ci/blank.yml index 81e3002468..d6783e2188 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -1,33 +1,33 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # 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@v2 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # 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@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index 72d3f0e419..e3233268f7 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -1,23 +1,23 @@ -name: C/C++ CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: configure - run: ./configure - - name: make - run: make - - name: make check - run: make check - - name: make distcheck - run: make distcheck +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: configure + run: ./configure + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck diff --git a/ci/clojure.yml b/ci/clojure.yml index dcc6ab34cf..22bfe20398 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -1,19 +1,19 @@ -name: Clojure CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Install dependencies - run: lein deps - - name: Run tests - run: lein test +name: Clojure CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: lein deps + - name: Run tests + run: lein test diff --git a/ci/crystal.yml b/ci/crystal.yml index 1da6965481..ce9dbfcd3b 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -1,22 +1,22 @@ -name: Crystal CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - container: - image: crystallang/crystal - - steps: - - uses: actions/checkout@v2 - - name: Install dependencies - run: shards install - - name: Run tests - run: crystal spec +name: Crystal CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + container: + image: crystallang/crystal + + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: shards install + - name: Run tests + run: crystal spec diff --git a/ci/dart.yml b/ci/dart.yml index 2193ed02a3..11e18c7beb 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -1,22 +1,22 @@ -name: Dart CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - container: - image: google/dart:latest - - steps: - - uses: actions/checkout@v2 - - name: Install dependencies - run: pub get - - name: Run tests - run: pub run test +name: Dart CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + container: + image: google/dart:latest + + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: pub get + - name: Run tests + run: pub run test diff --git a/ci/docker-image.yml b/ci/docker-image.yml index 7797115199..e57d42a7c9 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -1,18 +1,18 @@ -name: Docker Image CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) +name: Docker Image CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index c2a722b24a..f734ea7b55 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -1,25 +1,25 @@ -name: .NET Core - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.101 - - name: Install dependencies - run: dotnet restore - - name: Build - run: dotnet build --configuration Release --no-restore - - name: Test - run: dotnet test --no-restore --verbosity normal +name: .NET Core + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Test + run: dotnet test --no-restore --verbosity normal diff --git a/ci/erlang.yml b/ci/erlang.yml index 4b5a44fc9b..fd28497ff7 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -1,23 +1,23 @@ -name: Erlang CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - - runs-on: ubuntu-latest - - container: - image: erlang:22.0.7 - - steps: - - uses: actions/checkout@v2 - - name: Compile - run: rebar3 compile - - name: Run tests - run: rebar3 do eunit, ct +name: Erlang CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + + container: + image: erlang:22.0.7 + + steps: + - uses: actions/checkout@v2 + - name: Compile + run: rebar3 compile + - name: Run tests + run: rebar3 do eunit, ct diff --git a/ci/go.yml b/ci/go.yml index 438d565753..b66c0d7193 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -1,34 +1,34 @@ -name: Go - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - name: Build - runs-on: ubuntu-latest - steps: - - - name: Set up Go 1.13 - uses: actions/setup-go@v1 - with: - go-version: 1.13 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - - - name: Build - run: go build -v . +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + + - name: Build + run: go build -v . diff --git a/ci/gradle.yml b/ci/gradle.yml index 50bea75bc6..58e1c59ce1 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -1,26 +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: [ master ] - pull_request: - branches: [ master ] - -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 +# 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: [ master ] + pull_request: + branches: [ master ] + +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 diff --git a/ci/haskell.yml b/ci/haskell.yml index 290b315375..3952e56af3 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -1,29 +1,29 @@ -name: Haskell CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-haskell@v1 - with: - ghc-version: '8.8.2' - cabal-version: '3.0' - - name: Install dependencies - run: | - cabal update - cabal install --only-dependencies --enable-tests - - name: Build - run: | - cabal configure --enable-tests - cabal build - - name: Run tests - run: cabal test +name: Haskell CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-haskell@v1 + with: + ghc-version: '8.8.2' + cabal-version: '3.0' + - name: Install dependencies + run: | + cabal update + cabal install --only-dependencies --enable-tests + - name: Build + run: | + cabal configure --enable-tests + cabal build + - name: Run tests + run: cabal test diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 94ac8f7cf6..64df081ef4 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -1,20 +1,20 @@ -name: Jekyll site CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - 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 777 /srv/jekyll && jekyll build --future" +name: Jekyll site CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - 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 777 /srv/jekyll && jekyll build --future" diff --git a/ci/maven.yml b/ci/maven.yml index c3e16c6c47..c8aeb3a277 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -1,24 +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: [ master ] - pull_request: - branches: [ master ] - -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 +# 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: [ master ] + pull_request: + branches: [ master ] + +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 diff --git a/ci/node.js.yml b/ci/node.js.yml index e7081a4a2c..4390e93081 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,31 +1,31 @@ -# 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 - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test - env: - CI: true +# 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 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + env: + CI: true diff --git a/ci/properties/android.properties.json b/ci/properties/android.properties.json index a557fd9a7d..29d293f1a5 100644 --- a/ci/properties/android.properties.json +++ b/ci/properties/android.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Android CI", - "description": "Build an Android project with Gradle.", - "iconName": "android", - "categories": ["Java", "Mobile"] -} \ No newline at end of file +{ + "name": "Android CI", + "description": "Build an Android project with Gradle.", + "iconName": "android", + "categories": ["Java", "Mobile"] +} diff --git a/ci/properties/ant.properties.json b/ci/properties/ant.properties.json index 4139b67260..5a4d7a99e8 100644 --- a/ci/properties/ant.properties.json +++ b/ci/properties/ant.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Java with Ant", - "description": "Build and test a Java project with Apache Ant.", - "iconName": "ant", - "categories": ["Ant", "Java"] -} \ No newline at end of file +{ + "name": "Java with Ant", + "description": "Build and test a Java project with Apache Ant.", + "iconName": "ant", + "categories": ["Ant", "Java"] +} diff --git a/ci/properties/blank.properties.json b/ci/properties/blank.properties.json index 927085bc52..d244772cfd 100644 --- a/ci/properties/blank.properties.json +++ b/ci/properties/blank.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Simple workflow", - "description": "Start with a file with the minimum necessary structure.", - "iconName": "blank", - "categories": null -} \ No newline at end of file +{ + "name": "Simple workflow", + "description": "Start with a file with the minimum necessary structure.", + "iconName": "blank", + "categories": null +} diff --git a/ci/properties/c-cpp.properties.json b/ci/properties/c-cpp.properties.json index 605cd8902f..5d2a2df038 100644 --- a/ci/properties/c-cpp.properties.json +++ b/ci/properties/c-cpp.properties.json @@ -1,6 +1,6 @@ -{ - "name": "C/C++ with Make", - "description": "Build and test a C/C++ project using Make.", - "iconName": "c-cpp", - "categories": ["C", "C++"] -} \ No newline at end of file +{ + "name": "C/C++ with Make", + "description": "Build and test a C/C++ project using Make.", + "iconName": "c-cpp", + "categories": ["C", "C++"] +} diff --git a/ci/properties/clojure.properties.json b/ci/properties/clojure.properties.json index 9d17772667..5a9e3ed163 100644 --- a/ci/properties/clojure.properties.json +++ b/ci/properties/clojure.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Clojure", - "description": "Build and test a Clojure project with Leiningen.", - "iconName": "clojure", - "categories": ["Clojure", "Java"] -} \ No newline at end of file +{ + "name": "Clojure", + "description": "Build and test a Clojure project with Leiningen.", + "iconName": "clojure", + "categories": ["Clojure", "Java"] +} diff --git a/ci/properties/crystal.properties.json b/ci/properties/crystal.properties.json index f5edf7ded3..bb058f760e 100644 --- a/ci/properties/crystal.properties.json +++ b/ci/properties/crystal.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Crystal", - "description": "Build and test a Crystal project.", - "iconName": "crystal", - "categories": ["Crystal"] -} \ No newline at end of file +{ + "name": "Crystal", + "description": "Build and test a Crystal project.", + "iconName": "crystal", + "categories": ["Crystal"] +} diff --git a/ci/properties/dart.properties.json b/ci/properties/dart.properties.json index a0aad8c021..022a003227 100644 --- a/ci/properties/dart.properties.json +++ b/ci/properties/dart.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Dart", - "description": "Build and test a Dart project with Pub.", - "iconName": "dart", - "categories": ["Dart"] -} \ No newline at end of file +{ + "name": "Dart", + "description": "Build and test a Dart project with Pub.", + "iconName": "dart", + "categories": ["Dart"] +} diff --git a/ci/properties/docker-image.properties.json b/ci/properties/docker-image.properties.json index 2db2368a72..8ad7552468 100644 --- a/ci/properties/docker-image.properties.json +++ b/ci/properties/docker-image.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Docker image", - "description": "Build a Docker image to deploy, run, or push to a registry.", - "iconName": "docker", - "categories": ["Dockerfile"] -} \ No newline at end of file +{ + "name": "Docker image", + "description": "Build a Docker image to deploy, run, or push to a registry.", + "iconName": "docker", + "categories": ["Dockerfile"] +} diff --git a/ci/properties/dotnet-core.properties.json b/ci/properties/dotnet-core.properties.json index d5dc23a86c..3386a3d7ee 100644 --- a/ci/properties/dotnet-core.properties.json +++ b/ci/properties/dotnet-core.properties.json @@ -1,6 +1,6 @@ -{ - "name": ".NET Core", - "description": "Build and test a .NET Core or ASP.NET Core project.", - "iconName": "dotnetcore", - "categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] -} +{ + "name": ".NET Core", + "description": "Build and test a .NET Core or ASP.NET Core project.", + "iconName": "dotnetcore", + "categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] +} diff --git a/ci/properties/elixir.properties.json b/ci/properties/elixir.properties.json index 4b082d71e9..572992df13 100644 --- a/ci/properties/elixir.properties.json +++ b/ci/properties/elixir.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Elixir", - "description": "Build and test an Elixir project with Mix.", - "iconName": "elixir", - "categories": ["Elixir", "Erlang"] -} \ No newline at end of file +{ + "name": "Elixir", + "description": "Build and test an Elixir project with Mix.", + "iconName": "elixir", + "categories": ["Elixir", "Erlang"] +} diff --git a/ci/properties/erlang.properties.json b/ci/properties/erlang.properties.json index c728ac241b..d712b0564c 100644 --- a/ci/properties/erlang.properties.json +++ b/ci/properties/erlang.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Erlang", - "description": "Build and test an Erlang project with rebar.", - "iconName": "erlang", - "categories": ["Erlang"] -} \ No newline at end of file +{ + "name": "Erlang", + "description": "Build and test an Erlang project with rebar.", + "iconName": "erlang", + "categories": ["Erlang"] +} diff --git a/ci/properties/go.properties.json b/ci/properties/go.properties.json index 3391245158..b96c0a1159 100644 --- a/ci/properties/go.properties.json +++ b/ci/properties/go.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Go", - "description": "Build a Go project.", - "iconName": "go", - "categories": ["Go"] -} \ No newline at end of file +{ + "name": "Go", + "description": "Build a Go project.", + "iconName": "go", + "categories": ["Go"] +} diff --git a/ci/properties/gradle.properties.json b/ci/properties/gradle.properties.json index be0a613d4f..bfe1a6f045 100644 --- a/ci/properties/gradle.properties.json +++ b/ci/properties/gradle.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Java with Gradle", - "description": "Build and test a Java project using a Gradle wrapper script.", - "iconName": "gradle", - "categories": ["Java", "Gradle"] -} \ No newline at end of file +{ + "name": "Java with Gradle", + "description": "Build and test a Java project using a Gradle wrapper script.", + "iconName": "gradle", + "categories": ["Java", "Gradle"] +} diff --git a/ci/properties/haskell.properties.json b/ci/properties/haskell.properties.json index ae71a60dfc..2dedbf2e86 100644 --- a/ci/properties/haskell.properties.json +++ b/ci/properties/haskell.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Haskell", - "description": "Build and test a Haskell project with Cabal.", - "iconName": "haskell", - "categories": ["Haskell"] -} \ No newline at end of file +{ + "name": "Haskell", + "description": "Build and test a Haskell project with Cabal.", + "iconName": "haskell", + "categories": ["Haskell"] +} diff --git a/ci/properties/jekyll.properties.json b/ci/properties/jekyll.properties.json index c97835a4b7..38cc6cd23d 100644 --- a/ci/properties/jekyll.properties.json +++ b/ci/properties/jekyll.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Jekyll", - "description": "Package a Jekyll site using the jekyll/builder Docker image.", - "iconName": "jekyll", - "categories": ["HTML"] -} \ No newline at end of file +{ + "name": "Jekyll", + "description": "Package a Jekyll site using the jekyll/builder Docker image.", + "iconName": "jekyll", + "categories": ["HTML"] +} diff --git a/ci/properties/maven.properties.json b/ci/properties/maven.properties.json index bcc8430adf..e322d04152 100644 --- a/ci/properties/maven.properties.json +++ b/ci/properties/maven.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Java with Maven", - "description": "Build and test a Java project with Apache Maven.", - "iconName": "maven", - "categories": ["Java", "Maven"] -} \ No newline at end of file +{ + "name": "Java with Maven", + "description": "Build and test a Java project with Apache Maven.", + "iconName": "maven", + "categories": ["Java", "Maven"] +} diff --git a/ci/properties/node.js.properties.json b/ci/properties/node.js.properties.json index 99a79bcb84..6ab4c53072 100644 --- a/ci/properties/node.js.properties.json +++ b/ci/properties/node.js.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Node.js", - "description": "Build and test a Node.js project with npm.", - "iconName": "nodejs", - "categories": ["JavaScript", "Node", "Npm"] -} \ No newline at end of file +{ + "name": "Node.js", + "description": "Build and test a Node.js project with npm.", + "iconName": "nodejs", + "categories": ["JavaScript", "Node", "Npm"] +} diff --git a/ci/properties/python-app.properties.json b/ci/properties/python-app.properties.json index cdf0330d0f..34e4a5780a 100644 --- a/ci/properties/python-app.properties.json +++ b/ci/properties/python-app.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Python application", - "description": "Create and test a Python application.", - "iconName": "python", - "categories": ["Python"] -} \ No newline at end of file +{ + "name": "Python application", + "description": "Create and test a Python application.", + "iconName": "python", + "categories": ["Python"] +} diff --git a/ci/properties/python-package.properties.json b/ci/properties/python-package.properties.json index 4b3a8da1fb..4e09d40d5f 100644 --- a/ci/properties/python-package.properties.json +++ b/ci/properties/python-package.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Python package", - "description": "Create and test a Python package on multiple Python versions.", - "iconName": "python", - "categories": ["Python"] -} \ No newline at end of file +{ + "name": "Python package", + "description": "Create and test a Python package on multiple Python versions.", + "iconName": "python", + "categories": ["Python"] +} diff --git a/ci/properties/ruby.properties.json b/ci/properties/ruby.properties.json index df74931265..904f12fd4a 100644 --- a/ci/properties/ruby.properties.json +++ b/ci/properties/ruby.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Ruby", - "description": "Build and test a Ruby project with Rake.", - "iconName": "ruby", - "categories": ["Ruby"] -} \ No newline at end of file +{ + "name": "Ruby", + "description": "Build and test a Ruby project with Rake.", + "iconName": "ruby", + "categories": ["Ruby"] +} diff --git a/ci/properties/rust.properties.json b/ci/properties/rust.properties.json index 6f4f967366..3a6dc02ae1 100644 --- a/ci/properties/rust.properties.json +++ b/ci/properties/rust.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Rust", - "description": "Build and test a Rust project with Cargo.", - "iconName": "rust", - "categories": ["Rust"] +{ + "name": "Rust", + "description": "Build and test a Rust project with Cargo.", + "iconName": "rust", + "categories": ["Rust"] } \ No newline at end of file diff --git a/ci/python-app.yml b/ci/python-app.yml index 1519cec7c3..25a32ef60f 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -1,37 +1,37 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python application - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Lint with flake8 - run: | - pip install flake8 - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pip install pytest - pytest +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python application + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Lint with flake8 + run: | + pip install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pip install pytest + pytest diff --git a/ci/python-package.yml b/ci/python-package.yml index 846b2f9c96..0d78aa51ec 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -1,40 +1,40 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python package - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.5, 3.6, 3.7, 3.8] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Lint with flake8 - run: | - pip install flake8 - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pip install pytest - pytest +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.5, 3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Lint with flake8 + run: | + pip install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pip install pytest + pytest diff --git a/ci/ruby.yml b/ci/ruby.yml index 302d148d53..6415d437ad 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -1,24 +1,24 @@ -name: Ruby - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - 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: Build and test with Rake - run: | - gem install bundler - bundle install --jobs 4 --retry 3 - bundle exec rake +name: Ruby + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + 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: Build and test with Rake + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + bundle exec rake diff --git a/ci/rust.yml b/ci/rust.yml index 468e4bff14..6738b0b292 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -1,19 +1,19 @@ -name: Rust - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose +name: Rust + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose From 4411c79d206d9dfa102cb0b414f34cb4f0a4ad3a Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Tue, 24 Mar 2020 11:38:16 -0400 Subject: [PATCH 096/366] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d81359d31..fdd9bf81aa 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ These are the workflow files for helping people get started with GitHub Actions. 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/python-django.yml` and `ci/properties/python-django.properties.json`. **Valid properties:** * `name`: the name shown in onboarding From 1355c6f4395278d1c29cf00e49a4475328534ea0 Mon Sep 17 00:00:00 2001 From: Bernd Verst Date: Tue, 31 Mar 2020 11:26:59 -0700 Subject: [PATCH 097/366] Adds App Service documentation references This workflow assumes an App Service web app has already been created and that a user knows how to obtain the desired input values. This cannot be assumed. Therefore I have included references to the relevant documentation. --- ci/azure.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/azure.yml b/ci/azure.yml index dbb46b6f83..a638c4cb3e 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -1,8 +1,12 @@ # 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. 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 # # 2. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below). # From 89a7d6d6fdf9d7efc48eef51de099dbc3f651328 Mon Sep 17 00:00:00 2001 From: Fumiaki Kinoshita Date: Thu, 13 Feb 2020 16:24:06 +0900 Subject: [PATCH 098/366] ci/haskell.yml: properly build dependencies, tests and benchmarks --- ci/haskell.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ci/haskell.yml b/ci/haskell.yml index 3952e56af3..fc6d8b3ec4 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -20,10 +20,8 @@ jobs: - name: Install dependencies run: | cabal update - cabal install --only-dependencies --enable-tests + cabal build --only-dependencies --enable-tests --enable-benchmarks - name: Build - run: | - cabal configure --enable-tests - cabal build + run: cabal build --enable-tests --enable-benchmarks all - name: Run tests - run: cabal test + run: cabal test all \ No newline at end of file From 8635fcacca0bc15706d4bf992b30b95fb8aa0062 Mon Sep 17 00:00:00 2001 From: Fumiaki Kinoshita Date: Wed, 26 Feb 2020 20:23:25 +0900 Subject: [PATCH 099/366] ci/haskell.yml: cache dependencies --- ci/haskell.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ci/haskell.yml b/ci/haskell.yml index fc6d8b3ec4..4bc2d165a1 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -17,6 +17,19 @@ jobs: with: ghc-version: '8.8.2' cabal-version: '3.0' + + - 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 @@ -24,4 +37,4 @@ jobs: - name: Build run: cabal build --enable-tests --enable-benchmarks all - name: Run tests - run: cabal test all \ No newline at end of file + run: cabal test all From 20088f94566da626b035b3c3008f0d7abb60e29c Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 3 Apr 2020 15:14:18 +0100 Subject: [PATCH 100/366] Update pull_request_template.md --- .github/pull_request_template.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 51f963eae8..3d6833a5d1 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -5,15 +5,23 @@ Thank you for sending in this pull request. Please make sure you take a look at In the workflow and properties files: +- [ ] The workflow filename of CI workflows should be the name of the language or platform, in lower case. Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET"). The workflow filename of publishing workflows should be the name of the language or platform, in lower case, followed by "-publish". - [ ] Includes a matching `ci/properties/*.properties.json` file. -- [ ] Use title case for the names of workflows and steps, for example "Run tests". +- [ ] 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 `push`. -- [ ] Packaging workflows should run on `release` with `types: [created]`. +- [ ] CI workflows should run on `push` to `branches: [ master ]` and `pull_request` to `branches: [ master ]`. Packaging workflows should run on `release` with `types: [ created ]`. Some general notes: -- [ ] Does not use an Action that isn't in the `actions` organization. -- [ ] Does not send data to any 3rd party service except for the purposes of installing dependencies. -- [ ] Does not use a paid service or product. +- [ ] This workflow must use only actions produced by GitHub or the langauge or ecosystem that the workflow supports. + * [ ] 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 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. From ccaa3fe1686e3743d7923f98dde3dcd63ca8c474 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 3 Apr 2020 15:20:55 +0100 Subject: [PATCH 101/366] Update pull_request_template.md Formatting updates. --- .github/pull_request_template.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3d6833a5d1..2e390ab70f 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -5,18 +5,22 @@ Thank you for sending in this pull request. Please make sure you take a look at In the workflow and properties files: -- [ ] The workflow filename of CI workflows should be the name of the language or platform, in lower case. Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET"). The workflow filename of publishing workflows should be the name of the language or platform, in lower case, followed by "-publish". +- [ ] The workflow filename of CI workflows should be the name of the language or platform, in lower case. Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET"). + + The workflow filename of publishing workflows should be the name of the language or platform, in lower case, followed by "-publish". - [ ] Includes a matching `ci/properties/*.properties.json` file. - [ ] 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: [ master ]` and `pull_request` to `branches: [ master ]`. + + Packaging workflows should run on `release` with `types: [ created ]`. Some general notes: -- [ ] This workflow must use only actions produced by GitHub or the langauge or ecosystem that the workflow supports. - * [ ] 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 include the following comment at the top of the workflow file: +- [ ] 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 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 From 51163e48538145b208c4c68d53c3af0d1ac61151 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 6 Apr 2020 13:02:13 +0100 Subject: [PATCH 102/366] Update pull_request_template.md --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 2e390ab70f..35bfb44bc9 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -20,7 +20,7 @@ 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 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). 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 uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by From 2ac9c51b545f361a3976809ec127c67f145cfb15 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Mon, 6 Apr 2020 10:12:17 -0400 Subject: [PATCH 103/366] Added starter workflow for desktop apps. --- ci/desktop.yml | 109 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 ci/desktop.yml diff --git a/ci/desktop.yml b/ci/desktop.yml new file mode 100644 index 0000000000..83ff99a43f --- /dev/null +++ b/ci/desktop.yml @@ -0,0 +1,109 @@ +# This workflow will build, test and create app packages for a Wpf project built on Net Core. +# +# 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 file. +# +# $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: Build and publish a desktop application + +# Trigger on every master branch push and pull request +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + + build: + + strategy: + matrix: + configuration: [Debug, Release] + + runs-on: windows-latest + + env: + Appx_Bundle: Always # Creates an .msixbundle/.appxbundle with the .msix/.appx files for the platform specified. + App_Packages_Directory: AppPackages # The name of the directory that will contain the application packages. The default is "AppPackages." + Appx_Bundle_Platforms: x86|x64 # Include x86 and x64 platforms in the bundle. Possible values: x86|x64|ARM + Appx_Package_Build_Mode: StoreUpload # Generates the .msixupload/.appxupload file and the _Test folder for sideloading. + Signing_Certificate: GitHubActionsDemo.pfx # The name of the .pfx that will be created by decoding the Base 64 secret and consumed during the packaging step. + 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: 3.1.100 + + # Add MsBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v1.0.0 + + # Test + - name: Execute Unit Tests + run: dotnet test $env:Test_Project_Path + + # Restore the Wpf application to populate the obj folder with RuntimeIdentifiers + - name: Restore the Wpf application + run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration + env: + Configuration: ${{ matrix.configuration }} + + # Decode the Base64 encoded Pfx + - name: Decode the Pfx + run: | + $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") + $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath $env:Signing_Certificate + [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=$env:Signing_Certificate /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} + env: + 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@v1 + with: + name: MSIX Package + path: ${{ env.Wap_Project_Directory }}\${{ env.App_Packages_Directory }} From 0c7710ef26500dbfaa7a5bd2e8028b765130b2b6 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Mon, 6 Apr 2020 10:29:23 -0400 Subject: [PATCH 104/366] Added the properties file and updated the workflow file to conform to PR specifications. --- ci/desktop.yml | 27 +++++++++++++-------------- ci/properties/desktop.properties.json | 6 ++++++ 2 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 ci/properties/desktop.properties.json diff --git a/ci/desktop.yml b/ci/desktop.yml index 83ff99a43f..4a2b0a53ed 100644 --- a/ci/desktop.yml +++ b/ci/desktop.yml @@ -1,4 +1,6 @@ -# This workflow will build, test and create app packages for a Wpf project built on Net Core. +# This workflow will build, test and package a Wpf desktop application built on .NET Core. +# To learn how to migrate your existing WPF 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: # @@ -26,16 +28,13 @@ # 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: Build and publish a desktop application +name: Build, deploy and publish a Wpf desktop application -# Trigger on every master branch push and pull request on: push: - branches: - - master + branches: [ master ] pull_request: - branches: - - master + branches: [ master ] jobs: @@ -68,14 +67,14 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.100 + dotnet-version: 3.1.101 # Add MsBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v1.0.0 # Test - - name: Execute Unit Tests + - name: Execute unit tests run: dotnet test $env:Test_Project_Path # Restore the Wpf application to populate the obj folder with RuntimeIdentifiers @@ -84,21 +83,21 @@ jobs: env: Configuration: ${{ matrix.configuration }} - # Decode the Base64 encoded Pfx - - name: Decode the Pfx + # 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 $env:Signing_Certificate [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 + - 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=$env:Signing_Certificate /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} env: Configuration: ${{ matrix.configuration }} - # Remove the .pfx - - name: Remove the .pfx + # 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 diff --git a/ci/properties/desktop.properties.json b/ci/properties/desktop.properties.json new file mode 100644 index 0000000000..e04727e03f --- /dev/null +++ b/ci/properties/desktop.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Test and publish a Wpf application", + "description": "Build, test and publish a Wpf application built on .NET Core.", + "iconName": "Wpf", + "categories": ["C#", "Visual Basic", "WPF", ".NET"] +} \ No newline at end of file From a2adc6fc7388fe22ccc1b2a05896585ecab5fbf1 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Mon, 6 Apr 2020 10:32:56 -0400 Subject: [PATCH 105/366] Updated files with name that conforms to PR recommendations. --- ci/desktop.yml | 2 +- ci/properties/desktop.properties.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/desktop.yml b/ci/desktop.yml index 4a2b0a53ed..4a06abf71e 100644 --- a/ci/desktop.yml +++ b/ci/desktop.yml @@ -28,7 +28,7 @@ # 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: Build, deploy and publish a Wpf desktop application +name: Wpf .NET Core on: push: diff --git a/ci/properties/desktop.properties.json b/ci/properties/desktop.properties.json index e04727e03f..4a382a20d2 100644 --- a/ci/properties/desktop.properties.json +++ b/ci/properties/desktop.properties.json @@ -1,5 +1,5 @@ { - "name": "Test and publish a Wpf application", + "name": "Wpf .NET Core", "description": "Build, test and publish a Wpf application built on .NET Core.", "iconName": "Wpf", "categories": ["C#", "Visual Basic", "WPF", ".NET"] From 67ffe1ea7ac8dc746ead8838b1a233a36d586bb3 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 3 Apr 2020 20:24:59 +0200 Subject: [PATCH 106/366] Use ruby/setup-ruby for the Ruby starter workflow --- ci/ruby.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ci/ruby.yml b/ci/ruby.yml index 6415d437ad..7a78b45ca8 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -1,3 +1,10 @@ +# 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 download a prebuilt Ruby version, install dependencies and run tests with Rake +# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby + name: Ruby on: @@ -7,18 +14,17 @@ on: branches: [ master ] jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Ruby 2.6 - uses: actions/setup-ruby@v1 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6.x - - name: Build and test with Rake - run: | - gem install bundler - bundle install --jobs 4 --retry 3 - bundle exec rake + ruby-version: 2.6 + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rake From 703084fb8c1a13fb8933c95a9ef500e12da4d2bf Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Tue, 7 Apr 2020 12:24:02 -0400 Subject: [PATCH 107/366] Renamed files and addressed PR feedback. --- ...s.json => wpf-dotnet-core.properties.json} | 0 ci/{desktop.yml => wpf-dotnet-core.yml} | 31 +++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) rename ci/properties/{desktop.properties.json => wpf-dotnet-core.properties.json} (100%) rename ci/{desktop.yml => wpf-dotnet-core.yml} (75%) diff --git a/ci/properties/desktop.properties.json b/ci/properties/wpf-dotnet-core.properties.json similarity index 100% rename from ci/properties/desktop.properties.json rename to ci/properties/wpf-dotnet-core.properties.json diff --git a/ci/desktop.yml b/ci/wpf-dotnet-core.yml similarity index 75% rename from ci/desktop.yml rename to ci/wpf-dotnet-core.yml index 4a06abf71e..a8241abdc0 100644 --- a/ci/desktop.yml +++ b/ci/wpf-dotnet-core.yml @@ -1,4 +1,4 @@ -# This workflow will build, test and package a Wpf desktop application built on .NET Core. +# This workflow will build, test and package a WPF desktop application built on .NET Core. # To learn how to migrate your existing WPF application to .NET Core, # refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework # @@ -11,7 +11,7 @@ # 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 file. +# script to generate the output string. # # $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte # [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt' @@ -28,7 +28,7 @@ # 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: Wpf .NET Core +name: WPF .NET Core on: push: @@ -44,14 +44,10 @@ jobs: matrix: configuration: [Debug, Release] - runs-on: windows-latest + 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: - Appx_Bundle: Always # Creates an .msixbundle/.appxbundle with the .msix/.appx files for the platform specified. - App_Packages_Directory: AppPackages # The name of the directory that will contain the application packages. The default is "AppPackages." - Appx_Bundle_Platforms: x86|x64 # Include x86 and x64 platforms in the bundle. Possible values: x86|x64|ARM - Appx_Package_Build_Mode: StoreUpload # Generates the .msixupload/.appxupload file and the _Test folder for sideloading. - Signing_Certificate: GitHubActionsDemo.pfx # The name of the .pfx that will be created by decoding the Base 64 secret and consumed during the packaging step. 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. @@ -73,12 +69,12 @@ jobs: - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v1.0.0 - # Test + # Execute all unit tests in the solution - name: Execute unit tests - run: dotnet test $env:Test_Project_Path + run: dotnet test - # Restore the Wpf application to populate the obj folder with RuntimeIdentifiers - - name: Restore the Wpf application + # Restore the WPF application to populate the obj folder with RuntimeIdentifiers + - name: Restore the WPF application run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration env: Configuration: ${{ matrix.configuration }} @@ -87,13 +83,16 @@ jobs: - name: Decode the pfx run: | $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") - $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath $env:Signing_Certificate + $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=$env:Signing_Certificate /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} + 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 @@ -105,4 +104,4 @@ jobs: uses: actions/upload-artifact@v1 with: name: MSIX Package - path: ${{ env.Wap_Project_Directory }}\${{ env.App_Packages_Directory }} + path: ${{ env.Wap_Project_Directory }}\AppPackages From a3f957729c2f2ab206a0c109318258edb4f6bf32 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Wed, 8 Apr 2020 10:17:52 -0400 Subject: [PATCH 108/366] Responded to PR feedback. Added commit hash to microsoft setup action. --- ci/wpf-dotnet-core.yml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/ci/wpf-dotnet-core.yml b/ci/wpf-dotnet-core.yml index a8241abdc0..80ec3e5f0f 100644 --- a/ci/wpf-dotnet-core.yml +++ b/ci/wpf-dotnet-core.yml @@ -1,27 +1,35 @@ -# This workflow will build, test and package a WPF desktop application built on .NET Core. +# 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 and package a WPF desktop application +# built on .NET Core. # To learn how to migrate your existing WPF 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. +# 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. +# 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 +# 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." +# 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 @@ -65,9 +73,9 @@ jobs: with: dotnet-version: 3.1.101 - # Add MsBuild to the PATH: https://github.com/microsoft/setup-msbuild + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe - uses: microsoft/setup-msbuild@v1.0.0 + uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16 # Execute all unit tests in the solution - name: Execute unit tests From 29e8a67beb08258b8b7f2baa5778c2386169d1e9 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Wed, 8 Apr 2020 14:50:15 -0400 Subject: [PATCH 109/366] Fixed case of wpf --- ci/properties/wpf-dotnet-core.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/wpf-dotnet-core.properties.json b/ci/properties/wpf-dotnet-core.properties.json index 4a382a20d2..56eea9016c 100644 --- a/ci/properties/wpf-dotnet-core.properties.json +++ b/ci/properties/wpf-dotnet-core.properties.json @@ -1,6 +1,6 @@ { - "name": "Wpf .NET Core", + "name": "WPF .NET Core", "description": "Build, test and publish a Wpf application built on .NET Core.", - "iconName": "Wpf", + "iconName": "WPF", "categories": ["C#", "Visual Basic", "WPF", ".NET"] } \ No newline at end of file From 06b21b84fd80dbe7d29a1ae3656aaf5a9f662efc Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Thu, 9 Apr 2020 08:41:42 +0100 Subject: [PATCH 110/366] python: gracefully handle no requirements.txt If there's no requirements.txt then there's no need to `pip install` them. --- ci/python-app.yml | 5 ++--- ci/python-package.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/python-app.yml b/ci/python-app.yml index 25a32ef60f..900e4429d3 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -23,15 +23,14 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | - pip install flake8 # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pip install pytest pytest diff --git a/ci/python-package.yml b/ci/python-package.yml index 0d78aa51ec..b42537143c 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -26,15 +26,14 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | - pip install flake8 # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pip install pytest pytest From 9dd8f4e44a04e7ff304cf172242a85e4246de947 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 9 Apr 2020 19:59:10 +0200 Subject: [PATCH 111/366] Use a full commit sha as required by GitHub for 3rd-party actions --- ci/ruby.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/ruby.yml b/ci/ruby.yml index 7a78b45ca8..76c166ecbe 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -21,7 +21,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Ruby - uses: ruby/setup-ruby@v1 + # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, + # change this to (see https://github.com/ruby/setup-ruby#versioning): + # uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 with: ruby-version: 2.6 - name: Install dependencies From acc6dd8232724fd642db26d1acf95e75cefcdcbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastian=20Le=20Merdy?= <567637+seblm@users.noreply.github.com> Date: Mon, 13 Apr 2020 22:00:37 +0200 Subject: [PATCH 112/366] Add Scala icon --- ci/properties/scala.properties.json | 2 +- icons/scala.svg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 icons/scala.svg diff --git a/ci/properties/scala.properties.json b/ci/properties/scala.properties.json index d44e8678da..a92fc7309a 100644 --- a/ci/properties/scala.properties.json +++ b/ci/properties/scala.properties.json @@ -1,6 +1,6 @@ { "name": "Scala", "description": "Build and test a Scala project with SBT.", - "iconName": "blank", + "iconName": "scala", "categories": ["Scala", "Java"] } diff --git a/icons/scala.svg b/icons/scala.svg new file mode 100644 index 0000000000..80c5b99904 --- /dev/null +++ b/icons/scala.svg @@ -0,0 +1 @@ + From 6c7202a657202b964444706f1f50fa283650f8cf Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Tue, 14 Apr 2020 18:10:05 +0700 Subject: [PATCH 113/366] Add `Test` step Testing in Go is a first-class citizen, any starter workflow should also have a Test step. --- ci/go.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/go.yml b/ci/go.yml index b66c0d7193..0a49300146 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -32,3 +32,6 @@ jobs: - name: Build run: go build -v . + + - name: Test + run: go test -v . From 1c2ed214e050c66dc35b215aa1353d5574e6c17b Mon Sep 17 00:00:00 2001 From: Jim Hester Date: Thu, 16 Apr 2020 13:31:59 -0400 Subject: [PATCH 114/366] Update R workflow based on review feedback --- ci/r.yml | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/ci/r.yml b/ci/r.yml index fb959bf077..cad232b276 100644 --- a/ci/r.yml +++ b/ci/r.yml @@ -1,23 +1,37 @@ +# 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. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + name: R -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: - runs-on: macOS-latest strategy: - max-parallel: 4 matrix: - r-version: [3.5.3, 3.6.1] + r-version: [3.5, 3.6] steps: - - uses: actions/checkout@v1 - - name: Set up R ${{ matrix.r-version }} - uses: rlib/actions/setup-r@v1 - with: - r-version: ${{ matrix.r-version }} - - name: Install dependencies - run: Rscript -e "install.packages(c('remotes', 'rcmdcheck'))" -e "remotes::install_deps(dependencies = TRUE)" - - name: Check - run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error')" + - uses: actions/checkout@v2 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@ffe45a39586f073cc2e9af79c4ba563b657dc6e3 + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} From 2720260ff74063245fdad673b3424e0146100997 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Thu, 16 Apr 2020 19:01:39 -0400 Subject: [PATCH 115/366] update setup-go to v2 --- ci/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/go.yml b/ci/go.yml index 0a49300146..d31e87f957 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.13 - uses: actions/setup-go@v1 + - name: Set up Go 1.x + uses: actions/setup-go@v2 with: - go-version: 1.13 + go-version: ^1.13 id: go - name: Check out code into the Go module directory From 8dc9fb3b3a090b51a20fde54733ead3cbf728e40 Mon Sep 17 00:00:00 2001 From: sineverba Date: Mon, 20 Apr 2020 08:54:47 +0200 Subject: [PATCH 116/366] Fix image name as env var --- ci/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 21f5bd128a..1a1805f445 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -48,7 +48,7 @@ jobs: - uses: actions/checkout@v2 - name: Build image - run: docker build . --file Dockerfile --tag 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 From 9bc2c5c75e29554d9c5486c15d1cb8db5e478088 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Sun, 26 Apr 2020 19:01:56 +0100 Subject: [PATCH 117/366] node: remove CI=true environment variable The CI environment variable is now set by GitHub Actions directly. No need to set it in the workflow. --- ci/node.js.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index 4390e93081..e772a1cd78 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -27,5 +27,3 @@ jobs: - run: npm ci - run: npm run build --if-present - run: npm test - env: - CI: true From 0254a244d2bb8562c48a66a9aed2d9b1667c38dc Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Fri, 24 Apr 2020 23:48:32 -0400 Subject: [PATCH 118/366] Add support for IBM Kuberenetes Service (IKS) This patch adds support for deploying an application to IKS by performing the following steps: 1. Downloading and installing the IBM Cloud CLI, 2. Building locally with Docker, 3. Pushing to ICR (IBM Container Registry), and 4. Deploying with kubectl to IKS Co-authored-by: JJ Asghar Signed-off-by: Steve Martinelli --- ci/ibm.yml | 74 +++++++++++++++++++++++++++++++ ci/properties/ibm.properties.json | 6 +++ icons/ibm.svg | 61 +++++++++++++++++++++++++ 3 files changed, 141 insertions(+) create mode 100644 ci/ibm.yml create mode 100644 ci/properties/ibm.properties.json create mode 100644 icons/ibm.svg diff --git a/ci/ibm.yml b/ci/ibm.yml new file mode 100644 index 0000000000..8af050f364 --- /dev/null +++ b/ci/ibm.yml @@ -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 diff --git a/ci/properties/ibm.properties.json b/ci/properties/ibm.properties.json new file mode 100644 index 0000000000..44d899624a --- /dev/null +++ b/ci/properties/ibm.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Build and Deploy to IKS", + "description": "Build a docker container, publish it to IBM Container Registry, and deploy to IKS.", + "iconName": "ibm", + "categories": null +} \ No newline at end of file diff --git a/icons/ibm.svg b/icons/ibm.svg new file mode 100644 index 0000000000..3732033cec --- /dev/null +++ b/icons/ibm.svg @@ -0,0 +1,61 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + + + + + + + From 3c5440479dcff08bd195911245b9b8454417c9f6 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Tue, 28 Apr 2020 14:11:34 -0400 Subject: [PATCH 119/366] Create terraform.yml --- ci/terraform.yml | 90 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 ci/terraform.yml diff --git a/ci/terraform.yml b/ci/terraform.yml new file mode 100644 index 0000000000..148f2e220f --- /dev/null +++ b/ci/terraform.yml @@ -0,0 +1,90 @@ +# This workflow installs the latest version of Terraform CLI and configures the Terraform CLI configuration file +# with an API token for Terraform Cloud (app.terraform.io). On pull request events, this workflow will run +# `terraform init`, `terraform fmt`, and `terraform plan` (speculative plan via Terraform Cloud). On push events +# to the master branch, `terraform apply` will be executed. +# +# Documentation for `hashicorp/setup-terraform` is located here: https://github.com/hashicorp/setup-terraform +# +# To use this workflow, you will need to complete the following setup steps. +# +# 1. Create a `main.tf` file in the root of this repository with the `remote` backend and one or more resources defined. +# Example `main.tf`: +# # The configuration for the `remote` backend. +# terraform { +# backend "remote" { +# # The name of your Terraform Cloud organization. +# organization = "example-organization" +# +# # The name of the Terraform Cloud workspace to store Terraform state files in. +# workspaces { +# name = "example-workspace" +# } +# } +# } +# +# # An example resource that does nothing. +# resource "null_resource" "example" { +# triggers = { +# value = "A example resource that does nothing!" +# } +# } +# +# +# 2. Generate a Terraform Cloud user API token and store it as a GitHub secret (e.g. TF_API_TOKEN) on this repository. +# Documentation: +# - https://www.terraform.io/docs/cloud/users-teams-organizations/api-tokens.html +# - https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets +# +# 3. Reference the GitHub secret in step using the `hashicorp/setup-terraform` GitHub Action. +# Example: +# - name: Setup Terraform +# uses: hashicorp/setup-terraform@v1 +# with: +# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + +name: 'Terraform' + +on: + push: + branches: + - master + pull_request: + +jobs: + terraform: + name: 'Terraform' + runs-on: ubuntu-latest + + # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest + defaults: + run: + shell: bash + + # Checkout the repository to the GitHub Actions runner + steps: + - name: Checkout + uses: actions/checkout@v2 + + # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token + - name: Setup Terraform + uses: hashicorp/setup-terraform@v1 + with: + cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + + # Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc. + - name: Terraform Init + run: terraform init + + # Checks that all Terraform configuration files adhere to a canonical format + - name: Terraform Format + run: terraform fmt -check + + # Generates an execution plan for Terraform + - name: Terraform Plan + run: terraform plan + + # On push to master, build or change infrastructure according to Terraform configuration files + # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks + - name: Terraform Apply + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + run: terraform apply -auto-approve From 20e3ada1882119804c0694656a1af1a0cca6a12b Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Tue, 28 Apr 2020 14:28:36 -0400 Subject: [PATCH 120/366] Create terraform.properties.json --- ci/properties/terraform.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/terraform.properties.json diff --git a/ci/properties/terraform.properties.json b/ci/properties/terraform.properties.json new file mode 100644 index 0000000000..34fa16e713 --- /dev/null +++ b/ci/properties/terraform.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Terraform", + "description": "Set up Terraform CLI in your GitHub Actions workflow.", + "iconName": "terraform", + "categories": null +} From ad5ca30863406c2318b308371ad2583fbe7ccdf5 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Tue, 28 Apr 2020 14:50:43 -0400 Subject: [PATCH 121/366] Updated the Wpf dotnetcore icon to dotnetcore --- ci/properties/wpf-dotnet-core.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/wpf-dotnet-core.properties.json b/ci/properties/wpf-dotnet-core.properties.json index 56eea9016c..f43ea35052 100644 --- a/ci/properties/wpf-dotnet-core.properties.json +++ b/ci/properties/wpf-dotnet-core.properties.json @@ -1,6 +1,6 @@ { "name": "WPF .NET Core", "description": "Build, test and publish a Wpf application built on .NET Core.", - "iconName": "WPF", + "iconName": "dotnetcore", "categories": ["C#", "Visual Basic", "WPF", ".NET"] } \ No newline at end of file From adc9b70b375feb2636fa334cc0a0ea9c4347e33f Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Tue, 28 Apr 2020 14:59:11 -0400 Subject: [PATCH 122/366] Add files via upload --- icons/terraform.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 icons/terraform.svg diff --git a/icons/terraform.svg b/icons/terraform.svg new file mode 100644 index 0000000000..718fc0f4e5 --- /dev/null +++ b/icons/terraform.svg @@ -0,0 +1 @@ +terraform-icon logo \ No newline at end of file From d5e8e87192c1090f4e9c4e2763bafaf138064ce7 Mon Sep 17 00:00:00 2001 From: mingshun Date: Wed, 29 Apr 2020 09:43:42 +0800 Subject: [PATCH 123/366] Add Tencent Cloud icon --- icons/tencentcloud.svg | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 icons/tencentcloud.svg diff --git a/icons/tencentcloud.svg b/icons/tencentcloud.svg new file mode 100644 index 0000000000..0dad590a9d --- /dev/null +++ b/icons/tencentcloud.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + From 03bcd683793b6285482a83f5c16c49ad11143bad Mon Sep 17 00:00:00 2001 From: mingshun Date: Wed, 29 Apr 2020 09:49:34 +0800 Subject: [PATCH 124/366] Rename workflow to be the platform --- ci/properties/tencent.properties.json | 2 +- ci/tencent.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/tencent.properties.json b/ci/properties/tencent.properties.json index d93a25e4e4..13998853db 100644 --- a/ci/properties/tencent.properties.json +++ b/ci/properties/tencent.properties.json @@ -1,5 +1,5 @@ { - "name": "Build and Deploy to TKE", + "name": "Tencent Kubernetes Engine", "description": "Build a Docker container, publish it to TKE Registry, and deploy to TKE cluster.", "iconName": "tencentcloud", "categories": ["Dockerfile"] diff --git a/ci/tencent.yml b/ci/tencent.yml index 8b937bc963..308a1ee73b 100644 --- a/ci/tencent.yml +++ b/ci/tencent.yml @@ -13,7 +13,7 @@ # # 3. Change the values for the TKE_IMAGE_URL, TKE_REGION, TKE_CLUSTER_ID and DEPLOYMENT_NAME environment variables (below). -name: Build and Deploy to TKE +name: Tencent Kubernetes Engine on: push: From e5ca8224887e7649b270def58205014b53169e57 Mon Sep 17 00:00:00 2001 From: mingshun Date: Wed, 29 Apr 2020 10:00:35 +0800 Subject: [PATCH 125/366] Change the event that the workflow --- ci/tencent.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/tencent.yml b/ci/tencent.yml index 308a1ee73b..e0c0a826b6 100644 --- a/ci/tencent.yml +++ b/ci/tencent.yml @@ -16,9 +16,8 @@ name: Tencent Kubernetes Engine on: - push: - branches: - - master + release: + types: [created] # Environment variables available to all jobs and steps in this workflow env: From c411e74e2305816ff2042179011a265f7574bbd7 Mon Sep 17 00:00:00 2001 From: mingshun Date: Wed, 29 Apr 2020 10:02:53 +0800 Subject: [PATCH 126/366] Modify workflow description --- ci/properties/tencent.properties.json | 2 +- ci/tencent.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/tencent.properties.json b/ci/properties/tencent.properties.json index 13998853db..8bbf29fa59 100644 --- a/ci/properties/tencent.properties.json +++ b/ci/properties/tencent.properties.json @@ -1,6 +1,6 @@ { "name": "Tencent Kubernetes Engine", - "description": "Build a Docker container, publish it to TKE Registry, and deploy to TKE cluster.", + "description": "This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE).", "iconName": "tencentcloud", "categories": ["Dockerfile"] } diff --git a/ci/tencent.yml b/ci/tencent.yml index e0c0a826b6..2d4ad039aa 100644 --- a/ci/tencent.yml +++ b/ci/tencent.yml @@ -1,4 +1,4 @@ -# This workflow will build a docker container, publish it to TKE Registry, and deploy it to TKE. +# This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE). # # To configure this workflow: # From 782ef792562f002c820e2ec1e439990801f2aba1 Mon Sep 17 00:00:00 2001 From: mingshun Date: Thu, 30 Apr 2020 11:08:09 +0800 Subject: [PATCH 127/366] Update tencentcloud icon --- icons/tencentcloud.svg | 72 +++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 43 deletions(-) diff --git a/icons/tencentcloud.svg b/icons/tencentcloud.svg index 0dad590a9d..af729a46ce 100644 --- a/icons/tencentcloud.svg +++ b/icons/tencentcloud.svg @@ -1,43 +1,29 @@ - - - - - - - - - - - - - - - - - - - - + + + + 矩形 + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 89ffdad1157564857ca95ddc12c985488dec49aa Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Thu, 30 Apr 2020 16:31:20 -0700 Subject: [PATCH 128/366] Set categories to `null` to be in sync with other workflows --- ci/properties/tencent.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/tencent.properties.json b/ci/properties/tencent.properties.json index 8bbf29fa59..b3d9d3f456 100644 --- a/ci/properties/tencent.properties.json +++ b/ci/properties/tencent.properties.json @@ -2,5 +2,5 @@ "name": "Tencent Kubernetes Engine", "description": "This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE).", "iconName": "tencentcloud", - "categories": ["Dockerfile"] + "categories": null } From 951dfd0da3eea05f7a3e56adebf433243d15f37f Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Fri, 1 May 2020 06:56:47 -0400 Subject: [PATCH 129/366] Update the description with the proper case Update the "Wpf" in the description to "WPF" to reflect the proper case. --- ci/properties/wpf-dotnet-core.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/wpf-dotnet-core.properties.json b/ci/properties/wpf-dotnet-core.properties.json index f43ea35052..c083d71741 100644 --- a/ci/properties/wpf-dotnet-core.properties.json +++ b/ci/properties/wpf-dotnet-core.properties.json @@ -1,6 +1,6 @@ { "name": "WPF .NET Core", - "description": "Build, test and publish a Wpf application built on .NET Core.", + "description": "Build, test and publish a WPF application built on .NET Core.", "iconName": "dotnetcore", "categories": ["C#", "Visual Basic", "WPF", ".NET"] -} \ No newline at end of file +} From 4931fda2f655ab7cee8622c3285269814e1370e8 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Fri, 1 May 2020 23:46:47 +0700 Subject: [PATCH 130/366] PHP: Remove deprectated composer --no-suggest From Composer v2, `--no-suggest` option is removed: https://php.watch/articles/composer-2 --- ci/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/php.yml b/ci/php.yml index 9d1b4351fd..989deb2164 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -18,7 +18,7 @@ jobs: run: composer validate - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-suggest + run: composer install --prefer-dist --no-progress # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" # Docs: https://getcomposer.org/doc/articles/scripts.md From f543db49dbe97d4ae5d508a05dfb9f6e630227a7 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Fri, 1 May 2020 18:53:57 -0400 Subject: [PATCH 131/366] Fix source image name on docker tag This resolves an issue created by #472 --- ci/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 1a1805f445..9e80e76c88 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -72,5 +72,5 @@ jobs: echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION - docker tag image $IMAGE_ID:$VERSION + docker tag $IMAGE_NAME $IMAGE_ID:$VERSION docker push $IMAGE_ID:$VERSION From 427f63ab83a9f6f5b4c9980ca900254a973daa2b Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Sat, 2 May 2020 12:26:31 +0200 Subject: [PATCH 132/366] Ada starter workflow, icon and properties --- ci/ada.yml | 24 + ci/properties/ada.properties.json | 6 + icons/ada.svg | 709 ++++++++++++++++++++++++++++++ 3 files changed, 739 insertions(+) create mode 100644 ci/ada.yml create mode 100644 ci/properties/ada.properties.json create mode 100644 icons/ada.svg diff --git a/ci/ada.yml b/ci/ada.yml new file mode 100644 index 0000000000..c2d49b8cad --- /dev/null +++ b/ci/ada.yml @@ -0,0 +1,24 @@ +name: Ada (GNAT) + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up GNAT toolchain + run: > + sudo apt-get update && + sudo apt-get install gnat gprbuild + + - name: Build + run: gprbuild -j0 -p diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json new file mode 100644 index 0000000000..f41c3b1419 --- /dev/null +++ b/ci/properties/ada.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Ada", + "description": "Build and test an Ada project with GPRbuild.", + "iconName": "ada", + "categories": ["Ada"] +} diff --git a/icons/ada.svg b/icons/ada.svg new file mode 100644 index 0000000000..4ed301b1d0 --- /dev/null +++ b/icons/ada.svg @@ -0,0 +1,709 @@ + + + +image/svg+xml \ No newline at end of file From dd7519f49ef5673e46a4eaafa1f862977510b465 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Sun, 3 May 2020 07:57:14 -0400 Subject: [PATCH 133/366] Rename the workflow files and properties files from WPF to Desktop. --- ci/{wpf-dotnet-core.yml => dotnet-core-desktop.yml} | 10 +++++----- ci/properties/dotnet-core-desktop.properties.json | 6 ++++++ ci/properties/wpf-dotnet-core.properties.json | 6 ------ 3 files changed, 11 insertions(+), 11 deletions(-) rename ci/{wpf-dotnet-core.yml => dotnet-core-desktop.yml} (94%) create mode 100644 ci/properties/dotnet-core-desktop.properties.json delete mode 100644 ci/properties/wpf-dotnet-core.properties.json diff --git a/ci/wpf-dotnet-core.yml b/ci/dotnet-core-desktop.yml similarity index 94% rename from ci/wpf-dotnet-core.yml rename to ci/dotnet-core-desktop.yml index 80ec3e5f0f..0b9e454ca3 100644 --- a/ci/wpf-dotnet-core.yml +++ b/ci/dotnet-core-desktop.yml @@ -3,9 +3,9 @@ # separate terms of service, privacy policy, and support # documentation. -# This workflow will build, test and package a WPF desktop application +# This workflow will build, test and package a WPF or Windows Forms desktop application # built on .NET Core. -# To learn how to migrate your existing WPF application to .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: @@ -36,7 +36,7 @@ # 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: WPF .NET Core +name: .NET Core Desktop on: push: @@ -81,8 +81,8 @@ jobs: - name: Execute unit tests run: dotnet test - # Restore the WPF application to populate the obj folder with RuntimeIdentifiers - - name: Restore the WPF application + # 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 }} diff --git a/ci/properties/dotnet-core-desktop.properties.json b/ci/properties/dotnet-core-desktop.properties.json new file mode 100644 index 0000000000..e796c4a7d2 --- /dev/null +++ b/ci/properties/dotnet-core-desktop.properties.json @@ -0,0 +1,6 @@ +{ + "name": ".NET Core Desktop", + "description": "Build, test and publish a Wpf or Windows Forms application built on .NET Core.", + "iconName": "dotnetcore", + "categories": ["C#", "Visual Basic", "WPF", ".NET", "WindowsForms"] +} \ No newline at end of file diff --git a/ci/properties/wpf-dotnet-core.properties.json b/ci/properties/wpf-dotnet-core.properties.json deleted file mode 100644 index f43ea35052..0000000000 --- a/ci/properties/wpf-dotnet-core.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "WPF .NET Core", - "description": "Build, test and publish a Wpf application built on .NET Core.", - "iconName": "dotnetcore", - "categories": ["C#", "Visual Basic", "WPF", ".NET"] -} \ No newline at end of file From 6ea0e1fa1691de713c156c6925517d4f2e88d7d1 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Sun, 3 May 2020 08:04:10 -0400 Subject: [PATCH 134/366] Reword the description. --- ci/properties/dotnet-core-desktop.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/dotnet-core-desktop.properties.json b/ci/properties/dotnet-core-desktop.properties.json index e796c4a7d2..0299220afb 100644 --- a/ci/properties/dotnet-core-desktop.properties.json +++ b/ci/properties/dotnet-core-desktop.properties.json @@ -1,6 +1,6 @@ { "name": ".NET Core Desktop", - "description": "Build, test and publish a Wpf or Windows Forms application built on .NET Core.", + "description": "Build, test, sign and publish a desktop application built on .NET Core.", "iconName": "dotnetcore", "categories": ["C#", "Visual Basic", "WPF", ".NET", "WindowsForms"] } \ No newline at end of file From fc935ad05273b7b0a0e889cee47b1807c139f8ac Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Sun, 3 May 2020 08:12:18 -0400 Subject: [PATCH 135/366] Added 'sign' to the workflow description. --- ci/dotnet-core-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core-desktop.yml b/ci/dotnet-core-desktop.yml index 0b9e454ca3..ed37b70c13 100644 --- a/ci/dotnet-core-desktop.yml +++ b/ci/dotnet-core-desktop.yml @@ -3,7 +3,7 @@ # separate terms of service, privacy policy, and support # documentation. -# This workflow will build, test and package a WPF or Windows Forms desktop application +# 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 From 7176a039ba61ea5566c9778675c780ae79865f2c Mon Sep 17 00:00:00 2001 From: Christoph Dietrich Date: Mon, 4 May 2020 12:42:34 +0200 Subject: [PATCH 136/366] 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. --- ci/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 1a1805f445..9e80e76c88 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -72,5 +72,5 @@ jobs: echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION - docker tag image $IMAGE_ID:$VERSION + docker tag $IMAGE_NAME $IMAGE_ID:$VERSION docker push $IMAGE_ID:$VERSION From e4d7e16da8f4825ccf3ad4b884b954621328fcf9 Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Tue, 5 May 2020 11:33:35 +0900 Subject: [PATCH 137/366] Add node v14 --- ci/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index e772a1cd78..673bd33177 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x] + node-version: [10.x, 12.x, 14.x] steps: - uses: actions/checkout@v2 From 6eb7d7ec6200419c0e4eff53a3ef93d7e600647e Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Fri, 8 May 2020 09:48:58 +0200 Subject: [PATCH 138/366] 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 --- ci/laravel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/laravel.yml b/ci/laravel.yml index 7fc4665d5f..a895246337 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -16,7 +16,7 @@ jobs: - 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-suggest --no-progress --prefer-dist + 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 From 72408e6c620fc830ea97457baf6916d92b0352dc Mon Sep 17 00:00:00 2001 From: Ankit Popli Date: Sun, 10 May 2020 13:47:21 +0530 Subject: [PATCH 139/366] fix: use the IMAGE_NAME variable current behavior: changing the IMAGE_NAME variable breaks the build expected behavior: changing the IMAGE_NAME should not break the build --- ci/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 1a1805f445..9e80e76c88 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -72,5 +72,5 @@ jobs: echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION - docker tag image $IMAGE_ID:$VERSION + docker tag $IMAGE_NAME $IMAGE_ID:$VERSION docker push $IMAGE_ID:$VERSION From 4e9268c2d390db4f2a7694c5f7d25ec6e1d748b3 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Tue, 12 May 2020 10:49:36 +0200 Subject: [PATCH 140/366] Bump setup-python from v1 to v2 --- ci/python-app.yml | 2 +- ci/python-package.yml | 2 +- ci/python-publish.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/python-app.yml b/ci/python-app.yml index 900e4429d3..c7f5067453 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: 3.8 - name: Install dependencies diff --git a/ci/python-package.yml b/ci/python-package.yml index b42537143c..f1abc2ffce 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/ci/python-publish.yml b/ci/python-publish.yml index d5f3859d10..4e1ef42d2b 100644 --- a/ci/python-publish.yml +++ b/ci/python-publish.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: '3.x' - name: Install dependencies From 5802cb730239f3f1da75deb599a9ab0f178e479a Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Fri, 15 May 2020 16:49:20 -0700 Subject: [PATCH 141/366] Add script and workflow to sync the set of starter-workflows for GHES --- .github/workflows/sync_ghes.yaml | 26 ++++++ .gitignore | 1 + .vscode/launch.json | 21 +++++ script/exec.ts | 42 +++++++++ script/index.ts | 144 +++++++++++++++++++++++++++++++ script/package-lock.json | 112 ++++++++++++++++++++++++ script/package.json | 19 ++++ script/settings.json | 20 +++++ script/tsconfig.json | 5 ++ 9 files changed, 390 insertions(+) create mode 100644 .github/workflows/sync_ghes.yaml create mode 100644 .gitignore create mode 100644 .vscode/launch.json create mode 100644 script/exec.ts create mode 100755 script/index.ts create mode 100644 script/package-lock.json create mode 100644 script/package.json create mode 100644 script/settings.json create mode 100644 script/tsconfig.json diff --git a/.github/workflows/sync_ghes.yaml b/.github/workflows/sync_ghes.yaml new file mode 100644 index 0000000000..6a0be1b621 --- /dev/null +++ b/.github/workflows/sync_ghes.yaml @@ -0,0 +1,26 @@ +on: + push: + branches: + - master + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: | + git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* + git config user.email "cschleiden@github.com" + git config user.name "GitHub Actions" + - uses: actions/setup-node@v1 + with: + node-version: '12' + - name: Check starter workflows for GHES compat + run: | + npm ci + npx ts-node-script ./index.ts + working-directory: ./script + - run: | + git add -A + git commit -m "Updating GHES workflows" + - run: git push \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..d844aa12a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +script/node_modules \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..a5cc14660e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "args": ["${workspaceRoot}/script/index.ts"], + "runtimeArgs": ["-r", "ts-node/register"], + "cwd": "${workspaceRoot}/script", + "protocol": "inspector", + "internalConsoleOptions": "openOnSessionStart", + "env": { + "TS_NODE_IGNORE": "false" + } + } + ] +} \ No newline at end of file diff --git a/script/exec.ts b/script/exec.ts new file mode 100644 index 0000000000..e5293246cb --- /dev/null +++ b/script/exec.ts @@ -0,0 +1,42 @@ +import { spawn } from "child_process"; + +export class ExecResult { + stdout = ""; + exitCode = 0; +} + +/** + * Executes a process + */ +export async function exec( + command: string, + args: string[] = [], + allowAllExitCodes: boolean = false +): Promise { + process.stdout.write(`EXEC: ${command} ${args.join(" ")}\n`); + return new Promise((resolve, reject) => { + const execResult = new ExecResult(); + const cp = spawn(command, args, {}); + + // STDOUT + cp.stdout.on("data", (data) => { + process.stdout.write(data); + execResult.stdout += data.toString(); + }); + + // STDERR + cp.stderr.on("data", (data) => { + process.stderr.write(data); + }); + + // Close + cp.on("close", (code) => { + execResult.exitCode = code; + if (code === 0 || allowAllExitCodes) { + resolve(execResult); + } else { + reject(new Error(`Command exited with code ${code}`)); + } + }); + }); +} diff --git a/script/index.ts b/script/index.ts new file mode 100755 index 0000000000..943ffc3f7d --- /dev/null +++ b/script/index.ts @@ -0,0 +1,144 @@ +#!/usr/bin/env npx ts-node +import { promises as fs } from "fs"; +import { safeLoad } from "js-yaml"; +import { basename, extname, join } from "path"; +import { exec } from "./exec"; + +interface WorkflowDesc { + folder: string; + id: string; +} + +interface WorkflowsCheckResult { + compatibleWorkflows: WorkflowDesc[]; + incompatibleWorkflows: WorkflowDesc[]; +} + +async function checkWorkflows( + folders: string[], + enabledActions: string[] +): Promise { + const result: WorkflowsCheckResult = { + compatibleWorkflows: [], + incompatibleWorkflows: [], + }; + + for (const folder of folders) { + const dir = await fs.readdir(folder, { + withFileTypes: true, + }); + + for (const e of dir) { + if (e.isFile()) { + const workflowFilePath = join(folder, e.name); + const enabled = await checkWorkflow(workflowFilePath, enabledActions); + + const workflowDesc: WorkflowDesc = { + folder, + id: basename(e.name, extname(e.name)), + }; + + if (!enabled) { + result.incompatibleWorkflows.push(workflowDesc); + } else { + result.compatibleWorkflows.push(workflowDesc); + } + } + } + } + + return result; +} + +/** + * Check if a workflow only the given set of actions. + * + * @param workflowPath Path to workflow yaml file + * @param enabledActions List of enabled actions + */ +async function checkWorkflow( + workflowPath: string, + enabledActions: string[] +): Promise { + // Create set with lowercase action names for easier, case-insensitive lookup + const enabledActionsSet = new Set(enabledActions.map((x) => x.toLowerCase())); + + try { + const workflowFileContent = await fs.readFile(workflowPath, "utf8"); + const workflow = safeLoad(workflowFileContent); + + for (const job of Object.keys(workflow.jobs || {}).map( + (k) => workflow.jobs[k] + )) { + for (const step of job.steps || []) { + if (!!step.uses) { + // Check if allowed action + const [actionName, _] = step.uses.split("@"); + if (!enabledActionsSet.has(actionName.toLowerCase())) { + return false; + } + } + } + } + + // All used actions are enabled 🎉 + return true; + } catch (e) { + console.error("Error while checking workflow", e); + throw e; + } +} + +(async function main() { + try { + const settings = require("./settings.json"); + + const result = await checkWorkflows( + settings.folders, + settings.enabledActions + ); + + console.group( + `Found ${result.compatibleWorkflows.length} starter workflows compatible with GHES:` + ); + console.log( + result.compatibleWorkflows.map((x) => `${x.folder}/${x.id}`).join("\n") + ); + console.groupEnd(); + + console.group( + `Ignored ${result.incompatibleWorkflows.length} starter-workflows incompatible with GHES:` + ); + console.log( + result.incompatibleWorkflows.map((x) => `${x.folder}/${x.id}`).join("\n") + ); + console.groupEnd(); + + console.log("Switch to GHES branch"); + await exec("git", ["checkout", "ghes"]); + + // In order to sync from master, we might need to remove some workflows, add some + // and modify others. The lazy approach is to delete all workflows first, and then + // just bring the compatible ones over from the master branch. We let git figure out + // whether it's a deletion, add, or modify and commit the new state. + console.log("Remove all workflows"); + await exec("rm", ["-fr", ...settings.folders]); + + console.log("Sync changes from master for compatible workflows"); + await exec("git", [ + "checkout", + "master", + "--", + ...Array.prototype.concat.apply( + [], + result.compatibleWorkflows.map((x) => [ + join(x.folder, `${x.id}.yml`), + join(x.folder, "properties", `${x.id}.properties.json`), + ]) + ), + ]); + } catch (e) { + console.error("Unhandled error while syncing workflows", e); + process.exitCode = 1; + } +})(); diff --git a/script/package-lock.json b/script/package-lock.json new file mode 100644 index 0000000000..ebcd318060 --- /dev/null +++ b/script/package-lock.json @@ -0,0 +1,112 @@ +{ + "name": "sync-ghes-actions", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/js-yaml": { + "version": "3.12.4", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.4.tgz", + "integrity": "sha512-fYMgzN+9e28R81weVN49inn/u798ruU91En1ZnGvSZzCRc5jXx9B2EDhlRaWmcO1RIxFHL8AajRXzxDuJu93+A==", + "dev": true + }, + "@types/node": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.1.tgz", + "integrity": "sha512-FAYBGwC+W6F9+huFIDtn43cpy7+SzG+atzRiTfdp3inUKL2hXnd4rG8hylJLIh4+hqrQy1P17kvJByE/z825hA==", + "dev": true + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "ts-node": { + "version": "8.10.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.1.tgz", + "integrity": "sha512-bdNz1L4ekHiJul6SHtZWs1ujEKERJnHs4HxN7rjTyyVOFf3HaJ6sLqe6aPG62XTzAB/63pKRh5jTSWL0D7bsvw==", + "dev": true, + "requires": { + "arg": "^4.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "source-map-support": "^0.5.17", + "yn": "3.1.1" + } + }, + "typescript": { + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.2.tgz", + "integrity": "sha512-q2ktq4n/uLuNNShyayit+DTobV2ApPEo/6so68JaD5ojvc/6GClBipedB9zNWYxRSAlZXAe405Rlijzl6qDiSw==", + "dev": true + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true + } + } +} diff --git a/script/package.json b/script/package.json new file mode 100644 index 0000000000..c3c9872458 --- /dev/null +++ b/script/package.json @@ -0,0 +1,19 @@ +{ + "name": "sync-ghes-actions", + "version": "1.0.0", + "main": "index.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "github/c2c-actions-experience", + "license": "MIT", + "devDependencies": { + "@types/js-yaml": "^3.12.4", + "@types/node": "^14.0.1", + "ts-node": "^8.10.1", + "typescript": "^3.9.2" + }, + "dependencies": { + "js-yaml": "^3.13.1" + } +} diff --git a/script/settings.json b/script/settings.json new file mode 100644 index 0000000000..977c6f5b60 --- /dev/null +++ b/script/settings.json @@ -0,0 +1,20 @@ +{ + "folders": [ + "../ci", + "../automation" + ], + "enabledActions": [ + "actions/checkout", + "actions/create-release", + "actions/delete-package-versions", + "actions/download-artifact", + "actions/setup-dotnet", + "actions/setup-go", + "actions/setup-java", + "actions/setup-node", + "actions/stale", + "actions/starter-workflows", + "actions/upload-artifact", + "actions/upload-release-asset" + ] +} diff --git a/script/tsconfig.json b/script/tsconfig.json new file mode 100644 index 0000000000..7c50a205d0 --- /dev/null +++ b/script/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + }, + "include": ["*.ts"] +} \ No newline at end of file From 641db8990d62826105984a170af3a1ee916e79c6 Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Sun, 17 May 2020 22:16:42 -0400 Subject: [PATCH 142/366] clean up IBM title and icon using a different icon for IBM Cloud, ran svgo on it, too. --- ci/properties/ibm.properties.json | 4 +- icons/ibm.svg | 62 +------------------------------ 2 files changed, 3 insertions(+), 63 deletions(-) diff --git a/ci/properties/ibm.properties.json b/ci/properties/ibm.properties.json index 44d899624a..59aa8ab6a0 100644 --- a/ci/properties/ibm.properties.json +++ b/ci/properties/ibm.properties.json @@ -1,6 +1,6 @@ { - "name": "Build and Deploy to IKS", - "description": "Build a docker container, publish it to IBM Container Registry, and deploy to IKS.", + "name": "Deploy to IBM Kubernetes Service", + "description": "Build a docker container, publish it to IBM Container Registry, and deploy to IBM Kubernetes Service.", "iconName": "ibm", "categories": null } \ No newline at end of file diff --git a/icons/ibm.svg b/icons/ibm.svg index 3732033cec..7139661458 100644 --- a/icons/ibm.svg +++ b/icons/ibm.svg @@ -1,61 +1 @@ - - - - -Created by potrace 1.16, written by Peter Selinger 2001-2019 - - - - - - - - - - - - + \ No newline at end of file From e16f45a27fbee43beb5a95ff4d7ae2a265b528d2 Mon Sep 17 00:00:00 2001 From: Steve Martinelli <4118756+stevemar@users.noreply.github.com> Date: Mon, 18 May 2020 23:13:25 -0400 Subject: [PATCH 143/366] Update ibm.properties.json one last tweak on official name --- ci/properties/ibm.properties.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/properties/ibm.properties.json b/ci/properties/ibm.properties.json index 59aa8ab6a0..25ebf8ae0a 100644 --- a/ci/properties/ibm.properties.json +++ b/ci/properties/ibm.properties.json @@ -1,6 +1,6 @@ { - "name": "Deploy to IBM Kubernetes Service", - "description": "Build a docker container, publish it to IBM Container Registry, and deploy to IBM Kubernetes Service.", + "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.", "iconName": "ibm", "categories": null -} \ No newline at end of file +} From 62f6872b4ea8dd11b34ded263418d156067e6d15 Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Wed, 20 May 2020 10:00:39 -0700 Subject: [PATCH 144/366] Move ghes-sync into subfolder --- .github/workflows/sync_ghes.yaml | 2 +- .gitignore | 2 +- script/{ => sync-ghes}/exec.ts | 0 script/{ => sync-ghes}/index.ts | 5 ++++- script/{ => sync-ghes}/package-lock.json | 0 script/{ => sync-ghes}/package.json | 0 script/{ => sync-ghes}/settings.json | 0 script/{ => sync-ghes}/tsconfig.json | 0 8 files changed, 6 insertions(+), 3 deletions(-) rename script/{ => sync-ghes}/exec.ts (100%) rename script/{ => sync-ghes}/index.ts (95%) rename script/{ => sync-ghes}/package-lock.json (100%) rename script/{ => sync-ghes}/package.json (100%) rename script/{ => sync-ghes}/settings.json (100%) rename script/{ => sync-ghes}/tsconfig.json (100%) diff --git a/.github/workflows/sync_ghes.yaml b/.github/workflows/sync_ghes.yaml index 6a0be1b621..0b1d289ed8 100644 --- a/.github/workflows/sync_ghes.yaml +++ b/.github/workflows/sync_ghes.yaml @@ -19,7 +19,7 @@ jobs: run: | npm ci npx ts-node-script ./index.ts - working-directory: ./script + working-directory: ./script/sync-ghes - run: | git add -A git commit -m "Updating GHES workflows" diff --git a/.gitignore b/.gitignore index d844aa12a3..c5364f299f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -script/node_modules \ No newline at end of file +script/**/node_modules \ No newline at end of file diff --git a/script/exec.ts b/script/sync-ghes/exec.ts similarity index 100% rename from script/exec.ts rename to script/sync-ghes/exec.ts diff --git a/script/index.ts b/script/sync-ghes/index.ts similarity index 95% rename from script/index.ts rename to script/sync-ghes/index.ts index 943ffc3f7d..c5633c2c20 100755 --- a/script/index.ts +++ b/script/sync-ghes/index.ts @@ -51,7 +51,7 @@ async function checkWorkflows( } /** - * Check if a workflow only the given set of actions. + * Check if a workflow uses only the given set of actions. * * @param workflowPath Path to workflow yaml file * @param enabledActions List of enabled actions @@ -75,6 +75,9 @@ async function checkWorkflow( // Check if allowed action const [actionName, _] = step.uses.split("@"); if (!enabledActionsSet.has(actionName.toLowerCase())) { + console.info( + `Workflow ${workflowPath} uses '${actionName}' which is not supported for GHES.` + ); return false; } } diff --git a/script/package-lock.json b/script/sync-ghes/package-lock.json similarity index 100% rename from script/package-lock.json rename to script/sync-ghes/package-lock.json diff --git a/script/package.json b/script/sync-ghes/package.json similarity index 100% rename from script/package.json rename to script/sync-ghes/package.json diff --git a/script/settings.json b/script/sync-ghes/settings.json similarity index 100% rename from script/settings.json rename to script/sync-ghes/settings.json diff --git a/script/tsconfig.json b/script/sync-ghes/tsconfig.json similarity index 100% rename from script/tsconfig.json rename to script/sync-ghes/tsconfig.json From 88d425bbe7b0a404065b83ddf3c08ae3b2d4581d Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Wed, 20 May 2020 10:40:26 -0700 Subject: [PATCH 145/366] Sync icons only for supported workflows --- script/sync-ghes/index.ts | 14 +++++++++++++- script/sync-ghes/settings.json | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/script/sync-ghes/index.ts b/script/sync-ghes/index.ts index c5633c2c20..b63c1249de 100755 --- a/script/sync-ghes/index.ts +++ b/script/sync-ghes/index.ts @@ -7,6 +7,7 @@ import { exec } from "./exec"; interface WorkflowDesc { folder: string; id: string; + iconName: string; } interface WorkflowsCheckResult { @@ -33,9 +34,18 @@ async function checkWorkflows( const workflowFilePath = join(folder, e.name); const enabled = await checkWorkflow(workflowFilePath, enabledActions); + const workflowId = basename(e.name, extname(e.name)); + const workflowProperties = require(join( + folder, + "properties", + `${workflowId}.properties.json` + )); + const iconName = workflowProperties["iconName"]; + const workflowDesc: WorkflowDesc = { folder, - id: basename(e.name, extname(e.name)), + id: workflowId, + iconName, }; if (!enabled) { @@ -126,6 +136,7 @@ async function checkWorkflow( // whether it's a deletion, add, or modify and commit the new state. console.log("Remove all workflows"); await exec("rm", ["-fr", ...settings.folders]); + await exec("rm", ["-fr", "../../icons"]); console.log("Sync changes from master for compatible workflows"); await exec("git", [ @@ -137,6 +148,7 @@ async function checkWorkflow( result.compatibleWorkflows.map((x) => [ join(x.folder, `${x.id}.yml`), join(x.folder, "properties", `${x.id}.properties.json`), + join("../../icons", `${x.iconName}.svg`), ]) ), ]); diff --git a/script/sync-ghes/settings.json b/script/sync-ghes/settings.json index 977c6f5b60..050ea0a742 100644 --- a/script/sync-ghes/settings.json +++ b/script/sync-ghes/settings.json @@ -1,7 +1,7 @@ { "folders": [ - "../ci", - "../automation" + "../../ci", + "../../automation" ], "enabledActions": [ "actions/checkout", From af4b66354beeefe58f5bba80e01cade27afcc9bd Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Wed, 20 May 2020 10:54:19 -0700 Subject: [PATCH 146/366] Only sync svg icons --- script/sync-ghes/index.ts | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/script/sync-ghes/index.ts b/script/sync-ghes/index.ts index b63c1249de..5390664a2e 100755 --- a/script/sync-ghes/index.ts +++ b/script/sync-ghes/index.ts @@ -7,7 +7,8 @@ import { exec } from "./exec"; interface WorkflowDesc { folder: string; id: string; - iconName: string; + iconName?: string; + iconType?: "svg" | "octicon"; } interface WorkflowsCheckResult { @@ -40,12 +41,14 @@ async function checkWorkflows( "properties", `${workflowId}.properties.json` )); - const iconName = workflowProperties["iconName"]; + const iconName: string | undefined = workflowProperties["iconName"]; const workflowDesc: WorkflowDesc = { folder, id: workflowId, iconName, + iconType: + iconName && iconName.startsWith("octicon") ? "octicon" : "svg", }; if (!enabled) { @@ -145,11 +148,18 @@ async function checkWorkflow( "--", ...Array.prototype.concat.apply( [], - result.compatibleWorkflows.map((x) => [ - join(x.folder, `${x.id}.yml`), - join(x.folder, "properties", `${x.id}.properties.json`), - join("../../icons", `${x.iconName}.svg`), - ]) + result.compatibleWorkflows.map((x) => { + const r = [ + join(x.folder, `${x.id}.yml`), + join(x.folder, "properties", `${x.id}.properties.json`), + ]; + + if (x.iconType === "svg") { + r.push(join("../../icons", `${x.iconName}.svg`)); + } + + return r; + }) ), ]); } catch (e) { From 70c22e93a371758a899200e87f865d0df7ed3b6a Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Wed, 20 May 2020 11:39:30 -0700 Subject: [PATCH 147/366] Name GHES sync workflow --- .github/workflows/sync_ghes.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync_ghes.yaml b/.github/workflows/sync_ghes.yaml index 0b1d289ed8..397c173511 100644 --- a/.github/workflows/sync_ghes.yaml +++ b/.github/workflows/sync_ghes.yaml @@ -1,3 +1,5 @@ +name: Sync workflows for GHES + on: push: branches: @@ -23,4 +25,4 @@ jobs: - run: | git add -A git commit -m "Updating GHES workflows" - - run: git push \ No newline at end of file + - run: git push From a83abcc8723c99e08ff18aa6efc3a5691d908918 Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Tue, 19 May 2020 09:51:39 -0700 Subject: [PATCH 148/366] Script to validate the main parts of workflow data --- .github/workflows/validate-data.yaml | 19 ++++ script/validate-data/index.ts | 116 +++++++++++++++++++++++ script/validate-data/package-lock.json | 122 +++++++++++++++++++++++++ script/validate-data/package.json | 21 +++++ script/validate-data/settings.json | 6 ++ script/validate-data/tsconfig.json | 5 + 6 files changed, 289 insertions(+) create mode 100644 .github/workflows/validate-data.yaml create mode 100755 script/validate-data/index.ts create mode 100644 script/validate-data/package-lock.json create mode 100644 script/validate-data/package.json create mode 100644 script/validate-data/settings.json create mode 100644 script/validate-data/tsconfig.json diff --git a/.github/workflows/validate-data.yaml b/.github/workflows/validate-data.yaml new file mode 100644 index 0000000000..3abd612156 --- /dev/null +++ b/.github/workflows/validate-data.yaml @@ -0,0 +1,19 @@ +on: + push: + pull_request: + +jobs: + sync: + 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 diff --git a/script/validate-data/index.ts b/script/validate-data/index.ts new file mode 100755 index 0000000000..0809372c19 --- /dev/null +++ b/script/validate-data/index.ts @@ -0,0 +1,116 @@ +#!/usr/bin/env npx ts-node +import { promises as fs } from "fs"; +import { safeLoad } from "js-yaml"; +import { basename, extname, join } from "path"; +import { Validator as validator } from "jsonschema"; +import { endGroup, error, setFailed, startGroup } from '@actions/core'; + +interface WorkflowWithErrors { + id: string; + errors: string[]; +} + +interface WorkflowProperties { + name: string; + description: string; + iconName: string; + categories: string[]; +} + +const propertiesSchema = { + type: "object", + properties: { + name: { type: "string", required: true }, + description: { type: "string", required: true }, + iconName: { type: "string", required: true }, + categories: { + anyOf: [ + { + type: "array", + items: { type: "string" } + }, + { + type: "null", + } + ], + required: true + }, + } +} + +async function checkWorkflows(folders: string[]): Promise { + const result: WorkflowWithErrors[] = [] + + for (const folder of folders) { + const dir = await fs.readdir(folder, { + withFileTypes: true, + }); + + for (const e of dir) { + if (e.isFile()) { + const fileType = basename(e.name, extname(e.name)) + + const workflowFilePath = join(folder, e.name); + const propertiesFilePath = join(folder, "properties", `${fileType}.properties.json`) + + const errors = await checkWorkflow(workflowFilePath, propertiesFilePath); + if (errors.errors.length > 0) { + result.push(errors) + } + } + } + } + + return result; +} + +async function checkWorkflow(workflowPath: string, propertiesPath: string): Promise { + let workflowErrors: WorkflowWithErrors = { + id: workflowPath, + errors: [] + } + + try { + const workflowFileContent = await fs.readFile(workflowPath, "utf8"); + safeLoad(workflowFileContent); // Validate yaml parses without error + + const propertiesFileContent = await fs.readFile(propertiesPath, "utf8") + const properties: WorkflowProperties = JSON.parse(propertiesFileContent) + + let v = new validator(); + const res = v.validate(properties, propertiesSchema) + workflowErrors.errors = res.errors.map(e => e.toString()) + + if (properties.iconName && !properties.iconName.startsWith("octicon")) { + try { + await fs.access(`../../icons/${properties.iconName}.svg`) + } catch (e) { + workflowErrors.errors.push(`No icon named ${properties.iconName} found`) + } + } + } catch (e) { + workflowErrors.errors.push(e.toString()) + } + return workflowErrors; +} + +(async function main() { + try { + const settings = require("./settings.json"); + const erroredWorkflows = await checkWorkflows( + settings.folders + ) + + if (erroredWorkflows.length > 0) { + startGroup(`Found ${erroredWorkflows.length} workflows with errors:`); + erroredWorkflows.forEach(erroredWorkflow => { + error(`Errors in ${erroredWorkflow.id} - ${erroredWorkflow.errors.map(e => e.toString()).join(", ")}`) + }) + endGroup(); + setFailed(`Found ${erroredWorkflows.length} workflows with errors`); + } + } catch (e) { + error(`Unhandled error while syncing workflows: ${e}`); + setFailed(`Unhandled error`) + } +})(); diff --git a/script/validate-data/package-lock.json b/script/validate-data/package-lock.json new file mode 100644 index 0000000000..110d23fbba --- /dev/null +++ b/script/validate-data/package-lock.json @@ -0,0 +1,122 @@ +{ + "name": "sync-ghes-actions", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@actions/core": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.4.tgz", + "integrity": "sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==" + }, + "@types/js-yaml": { + "version": "3.12.4", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.12.4.tgz", + "integrity": "sha512-fYMgzN+9e28R81weVN49inn/u798ruU91En1ZnGvSZzCRc5jXx9B2EDhlRaWmcO1RIxFHL8AajRXzxDuJu93+A==", + "dev": true + }, + "@types/node": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.1.tgz", + "integrity": "sha512-FAYBGwC+W6F9+huFIDtn43cpy7+SzG+atzRiTfdp3inUKL2hXnd4rG8hylJLIh4+hqrQy1P17kvJByE/z825hA==", + "dev": true + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonschema": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.2.6.tgz", + "integrity": "sha512-SqhURKZG07JyKKeo/ir24QnS4/BV7a6gQy93bUSe4lUdNp0QNpIz2c9elWJQ9dpc5cQYY6cvCzgRwy0MQCLyqA==" + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "ts-node": { + "version": "8.10.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.1.tgz", + "integrity": "sha512-bdNz1L4ekHiJul6SHtZWs1ujEKERJnHs4HxN7rjTyyVOFf3HaJ6sLqe6aPG62XTzAB/63pKRh5jTSWL0D7bsvw==", + "dev": true, + "requires": { + "arg": "^4.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "source-map-support": "^0.5.17", + "yn": "3.1.1" + } + }, + "typescript": { + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.2.tgz", + "integrity": "sha512-q2ktq4n/uLuNNShyayit+DTobV2ApPEo/6so68JaD5ojvc/6GClBipedB9zNWYxRSAlZXAe405Rlijzl6qDiSw==", + "dev": true + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true + } + } +} diff --git a/script/validate-data/package.json b/script/validate-data/package.json new file mode 100644 index 0000000000..a2b867d52c --- /dev/null +++ b/script/validate-data/package.json @@ -0,0 +1,21 @@ +{ + "name": "validate-data", + "version": "1.0.0", + "main": "index.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "github/c2c-actions-experience", + "license": "MIT", + "devDependencies": { + "@types/js-yaml": "^3.12.4", + "@types/node": "^14.0.1", + "ts-node": "^8.10.1", + "typescript": "^3.9.2" + }, + "dependencies": { + "@actions/core": "^1.2.4", + "js-yaml": "^3.13.1", + "jsonschema": "^1.2.6" + } +} \ No newline at end of file diff --git a/script/validate-data/settings.json b/script/validate-data/settings.json new file mode 100644 index 0000000000..1913e2fb5b --- /dev/null +++ b/script/validate-data/settings.json @@ -0,0 +1,6 @@ +{ + "folders": [ + "../../ci", + "../../automation" + ] +} \ No newline at end of file diff --git a/script/validate-data/tsconfig.json b/script/validate-data/tsconfig.json new file mode 100644 index 0000000000..7c50a205d0 --- /dev/null +++ b/script/validate-data/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + }, + "include": ["*.ts"] +} \ No newline at end of file From 3dd92068cf9c54c6abf3c6ca67ce9e522020cad6 Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Tue, 19 May 2020 09:59:46 -0700 Subject: [PATCH 149/366] Add missing icons --- icons/aws.svg | 1 + icons/azure.svg | 1 + icons/googlegke.svg | 1 + 3 files changed, 3 insertions(+) create mode 100644 icons/aws.svg create mode 100644 icons/azure.svg create mode 100644 icons/googlegke.svg diff --git a/icons/aws.svg b/icons/aws.svg new file mode 100644 index 0000000000..59ff870b98 --- /dev/null +++ b/icons/aws.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/azure.svg b/icons/azure.svg new file mode 100644 index 0000000000..2ff63c104e --- /dev/null +++ b/icons/azure.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/googlegke.svg b/icons/googlegke.svg new file mode 100644 index 0000000000..68ecb39136 --- /dev/null +++ b/icons/googlegke.svg @@ -0,0 +1 @@ +image/svg+xml \ No newline at end of file From 1bb722865287973f4e166189d67c1f20009c3854 Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Tue, 19 May 2020 10:04:07 -0700 Subject: [PATCH 150/366] Report success as well for visibility --- script/validate-data/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/validate-data/index.ts b/script/validate-data/index.ts index 0809372c19..dbea11344b 100755 --- a/script/validate-data/index.ts +++ b/script/validate-data/index.ts @@ -3,7 +3,7 @@ import { promises as fs } from "fs"; import { safeLoad } from "js-yaml"; import { basename, extname, join } from "path"; import { Validator as validator } from "jsonschema"; -import { endGroup, error, setFailed, startGroup } from '@actions/core'; +import { endGroup, error, info, setFailed, startGroup } from '@actions/core'; interface WorkflowWithErrors { id: string; @@ -102,12 +102,14 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string): Prom ) if (erroredWorkflows.length > 0) { - startGroup(`Found ${erroredWorkflows.length} workflows with errors:`); + startGroup(`😟 - Found ${erroredWorkflows.length} workflows with errors:`); erroredWorkflows.forEach(erroredWorkflow => { error(`Errors in ${erroredWorkflow.id} - ${erroredWorkflow.errors.map(e => e.toString()).join(", ")}`) }) endGroup(); setFailed(`Found ${erroredWorkflows.length} workflows with errors`); + } else { + info("🎉🤘 - Found no workflows with errors!") } } catch (e) { error(`Unhandled error while syncing workflows: ${e}`); From 74c1e87c6bb06c34c54405dda1276eadbabc8a81 Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Wed, 20 May 2020 16:31:20 -0700 Subject: [PATCH 151/366] =?UTF-8?q?Don=E2=80=99t=20fail=20if=20no=20change?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync_ghes.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync_ghes.yaml b/.github/workflows/sync_ghes.yaml index 397c173511..54193bd35b 100644 --- a/.github/workflows/sync_ghes.yaml +++ b/.github/workflows/sync_ghes.yaml @@ -24,5 +24,9 @@ jobs: working-directory: ./script/sync-ghes - run: | git add -A - git commit -m "Updating GHES workflows" + if [ -z "$(git status --porcelain)" ]; then + echo "No changes to commit" + else + git commit -m "Updating GHES workflows" + fi - run: git push From 9a0a11423d295d10201f83018c7cbfc38eca2b75 Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Wed, 20 May 2020 16:31:33 -0700 Subject: [PATCH 152/366] Name the workflow --- .github/workflows/validate-data.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/validate-data.yaml b/.github/workflows/validate-data.yaml index 3abd612156..d923d7318c 100644 --- a/.github/workflows/validate-data.yaml +++ b/.github/workflows/validate-data.yaml @@ -1,3 +1,5 @@ +name: Validate Data + on: push: pull_request: From 15c78f880211e02929edf5ff0d59c225e9f11c69 Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Thu, 21 May 2020 11:09:51 -0700 Subject: [PATCH 153/366] Do not sync workflows without categories to GHES --- script/sync-ghes/index.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/script/sync-ghes/index.ts b/script/sync-ghes/index.ts index 5390664a2e..78a0ddaaa4 100755 --- a/script/sync-ghes/index.ts +++ b/script/sync-ghes/index.ts @@ -11,6 +11,16 @@ interface WorkflowDesc { iconType?: "svg" | "octicon"; } +interface WorkflowProperties { + name: string; + + description: string; + + iconName?: string; + + categories: string[] | null; +} + interface WorkflowsCheckResult { compatibleWorkflows: WorkflowDesc[]; incompatibleWorkflows: WorkflowDesc[]; @@ -33,15 +43,18 @@ async function checkWorkflows( for (const e of dir) { if (e.isFile()) { const workflowFilePath = join(folder, e.name); - const enabled = await checkWorkflow(workflowFilePath, enabledActions); - const workflowId = basename(e.name, extname(e.name)); - const workflowProperties = require(join( + const workflowProperties: WorkflowProperties = require(join( folder, "properties", `${workflowId}.properties.json` )); const iconName: string | undefined = workflowProperties["iconName"]; + const partnerWorkflow = workflowProperties.categories === null; + + const enabled = + !partnerWorkflow && + (await checkWorkflow(workflowFilePath, enabledActions)); const workflowDesc: WorkflowDesc = { folder, From ec3fe32d4355d58639c819a074ac7266c5b5821c Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Thu, 21 May 2020 16:32:47 -0400 Subject: [PATCH 154/366] 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. --- ci/elixir.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 4de7dcbd84..ac918c8715 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -16,8 +16,8 @@ jobs: - name: Setup elixir uses: actions/setup-elixir@v1 with: - elixir-version: 1.9.4 # Define the elixir version [required] - otp-version: 22.2 # Define the OTP version [required] + elixir-version: '1.9.4' # Define the elixir version [required] + otp-version: '22.2' # Define the OTP version [required] - name: Install Dependencies run: mix deps.get - name: Run Tests From 249441a642d6772b4531e1994d8056f9828953ae Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Thu, 21 May 2020 13:55:36 -0700 Subject: [PATCH 155/366] Update job name --- .github/workflows/validate-data.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-data.yaml b/.github/workflows/validate-data.yaml index d923d7318c..20eee717e8 100644 --- a/.github/workflows/validate-data.yaml +++ b/.github/workflows/validate-data.yaml @@ -5,7 +5,7 @@ on: pull_request: jobs: - sync: + validate-data: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 0ac09546734a9b5eac78e60ccda8dae05f1c7d79 Mon Sep 17 00:00:00 2001 From: Edward Skrod Date: Thu, 21 May 2020 17:33:37 -0400 Subject: [PATCH 156/366] Remove WindowsForms --- ci/properties/dotnet-core-desktop.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/dotnet-core-desktop.properties.json b/ci/properties/dotnet-core-desktop.properties.json index 0299220afb..9b2aa353c2 100644 --- a/ci/properties/dotnet-core-desktop.properties.json +++ b/ci/properties/dotnet-core-desktop.properties.json @@ -2,5 +2,5 @@ "name": ".NET Core Desktop", "description": "Build, test, sign and publish a desktop application built on .NET Core.", "iconName": "dotnetcore", - "categories": ["C#", "Visual Basic", "WPF", ".NET", "WindowsForms"] + "categories": ["C#", "Visual Basic", "WPF", ".NET"] } \ No newline at end of file From de4411e09783092951dd168aa2651c251f4eb765 Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Thu, 21 May 2020 14:34:40 -0700 Subject: [PATCH 157/366] Ensure "blank" template is available --- script/sync-ghes/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/sync-ghes/index.ts b/script/sync-ghes/index.ts index 78a0ddaaa4..ea347cfa76 100755 --- a/script/sync-ghes/index.ts +++ b/script/sync-ghes/index.ts @@ -50,10 +50,12 @@ async function checkWorkflows( `${workflowId}.properties.json` )); const iconName: string | undefined = workflowProperties["iconName"]; + + const isBlankTemplate = workflowId === "blank"; const partnerWorkflow = workflowProperties.categories === null; const enabled = - !partnerWorkflow && + (isBlankTemplate || !partnerWorkflow) && (await checkWorkflow(workflowFilePath, enabledActions)); const workflowDesc: WorkflowDesc = { From 15d943af34246de3d046937a16740283b10808aa Mon Sep 17 00:00:00 2001 From: Nadav Ivgi Date: Sun, 24 May 2020 08:21:13 +0300 Subject: [PATCH 158/366] Rust: Enable cargo colors for prettier output --- ci/rust.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/rust.yml b/ci/rust.yml index 6738b0b292..3c13d1be28 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ master ] +env: + CARGO_TERM_COLOR: always + jobs: build: From 90ace1f9e2546450a0a9ce37003c7f4f371690e0 Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Mon, 25 May 2020 12:28:05 +0200 Subject: [PATCH 159/366] Review: updated description in ada.properties.json --- ci/properties/ada.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json index f41c3b1419..71021d003c 100644 --- a/ci/properties/ada.properties.json +++ b/ci/properties/ada.properties.json @@ -1,6 +1,6 @@ { "name": "Ada", - "description": "Build and test an Ada project with GPRbuild.", + "description": "Build Ada project with GPRbuild.", "iconName": "ada", "categories": ["Ada"] } From 9d886e00f9a7aac1aba11fb202443f729fff1608 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 25 May 2020 12:55:49 -0700 Subject: [PATCH 160/366] Create main.yml --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..c6f2aa4de6 --- /dev/null +++ b/.github/workflows/main.yml @@ -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) From 861a79590c288877feeda13b1d1488b7e6ef6598 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 25 May 2020 12:57:07 -0700 Subject: [PATCH 161/366] Rename main.yml to label-close.yml --- .github/workflows/{main.yml => label-close.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{main.yml => label-close.yml} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/label-close.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/label-close.yml From 0195d47eeee40e548abf6020ec3562883d2cfef9 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 25 May 2020 13:09:29 -0700 Subject: [PATCH 162/366] Update pull_request_template.md --- .github/pull_request_template.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 35bfb44bc9..d1b6bfb4a5 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,7 +1,17 @@ -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. -- [ ] 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 + +-- + +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. + +Please **add to this description** at the bottom :point_down: + +- [ ] A good description of the workflow at the bottom of this page. +- [ ] Some links to the language or tool will be nice (unless its really obvious) In the workflow and properties files: @@ -13,14 +23,12 @@ In the workflow and properties files: - [ ] 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 ]`. +- [ ] Packaging workflows should run on `release` with `types: [ created ]`. 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). 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 uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by From 54a75270fc62e6f05c6b2facca5f958ea353ac69 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 25 May 2020 13:10:00 -0700 Subject: [PATCH 163/366] Update pull_request_template.md --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d1b6bfb4a5..01bb7bc4fd 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,7 +4,7 @@ It is not: * A playground to try out scripts * A place for you to create a workflow for your repository --- +--- 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. From 297af984baad4e4cbb4c37b2013136a7ac86a1e8 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 27 May 2020 10:49:51 -0400 Subject: [PATCH 164/366] Update ci/php.yml --- ci/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/php.yml b/ci/php.yml index 4ac898ccf6..3bd2895f5b 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -15,7 +15,7 @@ jobs: - name: Cache Composer packages id: composer-cache - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: vendor key: ${{ runner.os }}-node-${{ hashFiles('**/composer.lock') }} From b7eff1ebe987c0bccfeff009931ba608c8419f0c Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Tue, 2 Jun 2020 13:40:33 -0700 Subject: [PATCH 165/366] Add creator to partner workflows --- ci/properties/aws.properties.json | 1 + ci/properties/azure.properties.json | 1 + ci/properties/google.properties.json | 1 + ci/properties/ibm.properties.json | 3 ++- ci/properties/tencent.properties.json | 3 ++- ci/properties/terraform.properties.json | 3 ++- 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ci/properties/aws.properties.json b/ci/properties/aws.properties.json index 2988e7c0c7..b80775f1a7 100644 --- a/ci/properties/aws.properties.json +++ b/ci/properties/aws.properties.json @@ -1,6 +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 } \ No newline at end of file diff --git a/ci/properties/azure.properties.json b/ci/properties/azure.properties.json index ba92f6fa5c..fd9d0d8630 100644 --- a/ci/properties/azure.properties.json +++ b/ci/properties/azure.properties.json @@ -1,6 +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 } \ No newline at end of file diff --git a/ci/properties/google.properties.json b/ci/properties/google.properties.json index dee44b9be2..e2d917d3fa 100644 --- a/ci/properties/google.properties.json +++ b/ci/properties/google.properties.json @@ -1,6 +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 } \ No newline at end of file diff --git a/ci/properties/ibm.properties.json b/ci/properties/ibm.properties.json index 25ebf8ae0a..cfd03835e4 100644 --- a/ci/properties/ibm.properties.json +++ b/ci/properties/ibm.properties.json @@ -1,6 +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 -} +} \ No newline at end of file diff --git a/ci/properties/tencent.properties.json b/ci/properties/tencent.properties.json index b3d9d3f456..ba579a19e2 100644 --- a/ci/properties/tencent.properties.json +++ b/ci/properties/tencent.properties.json @@ -1,6 +1,7 @@ { "name": "Tencent Kubernetes Engine", "description": "This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE).", + "creator": "Tencent Cloud", "iconName": "tencentcloud", "categories": null -} +} \ No newline at end of file diff --git a/ci/properties/terraform.properties.json b/ci/properties/terraform.properties.json index 34fa16e713..445604c484 100644 --- a/ci/properties/terraform.properties.json +++ b/ci/properties/terraform.properties.json @@ -1,6 +1,7 @@ { "name": "Terraform", "description": "Set up Terraform CLI in your GitHub Actions workflow.", + "creator": "Hashicorp", "iconName": "terraform", "categories": null -} +} \ No newline at end of file From ef82cf1b1aed434e4127efeef25c9bf6446fed14 Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Tue, 2 Jun 2020 13:40:45 -0700 Subject: [PATCH 166/366] Add creator to validation schema --- script/validate-data/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/script/validate-data/index.ts b/script/validate-data/index.ts index dbea11344b..81048f8e7f 100755 --- a/script/validate-data/index.ts +++ b/script/validate-data/index.ts @@ -22,6 +22,7 @@ const propertiesSchema = { properties: { name: { type: "string", required: true }, description: { type: "string", required: true }, + creator: { type: "string", required: false }, iconName: { type: "string", required: true }, categories: { anyOf: [ From 4ad3f706665fa8887ae6d2882a626db17e75c412 Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Tue, 2 Jun 2020 21:57:58 -0700 Subject: [PATCH 167/366] Fix creator name Co-authored-by: Christopher Schleiden --- ci/properties/terraform.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/terraform.properties.json b/ci/properties/terraform.properties.json index 445604c484..bfeabdf3e9 100644 --- a/ci/properties/terraform.properties.json +++ b/ci/properties/terraform.properties.json @@ -1,7 +1,7 @@ { "name": "Terraform", "description": "Set up Terraform CLI in your GitHub Actions workflow.", - "creator": "Hashicorp", + "creator": "HashiCorp", "iconName": "terraform", "categories": null -} \ No newline at end of file +} From b4362decc974f2a7acd2bb15fcafafb1cf0c710f Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 8 Jun 2020 08:30:24 -0700 Subject: [PATCH 168/366] Change the cron for stale Let's move the recommended stale cron tab away from 00:00 UTC --- automation/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/stale.yml b/automation/stale.yml index 7bbc0505bf..34045177cb 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -2,7 +2,7 @@ name: Mark stale issues and pull requests on: schedule: - - cron: "0 0 * * *" + - cron: "30 1 * * *" jobs: stale: From 330ca7d1bd662fbaf64ad4b9e7c9ea62eaf79aee Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Tue, 16 Jun 2020 18:44:47 -0400 Subject: [PATCH 169/366] Update php cache key to use php in its name Signed-off-by: Matthew Peveler --- ci/php.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/php.yml b/ci/php.yml index ebb41ae62c..839187e4de 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -22,9 +22,9 @@ jobs: uses: actions/cache@v2 with: path: vendor - key: ${{ runner.os }}-node-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} restore-keys: | - ${{ runner.os }}-node- + ${{ runner.os }}-php- - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' From f1fa7ed3284f8a2c6a2b21f94eb44a6591379cb4 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Mon, 29 Jun 2020 11:44:45 -0400 Subject: [PATCH 170/366] Improve name of "Setup elixir" step in Elixir workflow --- ci/elixir.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index ac918c8715..e15ba68fda 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup elixir + - name: Set up Elixir uses: actions/setup-elixir@v1 with: elixir-version: '1.9.4' # Define the elixir version [required] From e4f46dac7691bda5e84c41bee4f62a261c6e5d6e Mon Sep 17 00:00:00 2001 From: Henrik Nyh Date: Mon, 29 Jun 2020 17:13:20 +0100 Subject: [PATCH 171/366] 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.) --- ci/elixir.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index e15ba68fda..b781272322 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -18,7 +18,7 @@ jobs: with: elixir-version: '1.9.4' # Define the elixir version [required] otp-version: '22.2' # Define the OTP version [required] - - name: Install Dependencies + - name: Install dependencies run: mix deps.get - - name: Run Tests + - name: Run tests run: mix test From 0159b6df788d4b675ea89d2ebda5935972ea6153 Mon Sep 17 00:00:00 2001 From: Henrik Nyh Date: Mon, 29 Jun 2020 17:20:56 +0100 Subject: [PATCH 172/366] elixir.yml: Specify latest Elixir/OTP versions There is an OTP 23.0 but 22.3 is the max that latest Elixir supports currently. --- ci/elixir.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index e15ba68fda..e834752c7c 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -16,8 +16,8 @@ jobs: - name: Set up Elixir uses: actions/setup-elixir@v1 with: - elixir-version: '1.9.4' # Define the elixir version [required] - otp-version: '22.2' # Define the OTP version [required] + elixir-version: '1.10.3' # Define the elixir version [required] + otp-version: '22.3' # Define the OTP version [required] - name: Install Dependencies run: mix deps.get - name: Run Tests From dabe11f6f76a121ca74dc266524906e560959f06 Mon Sep 17 00:00:00 2001 From: Kenji Koshikawa Date: Thu, 2 Jul 2020 00:39:20 +0900 Subject: [PATCH 173/366] refs #573 Update deprecated for actions/setup-ruby to on gem-push.yml --- ci/gem-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/gem-push.yml b/ci/gem-push.yml index 08733c7e7a..5f5f026bd9 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: - version: 2.6.x + ruby-version: 2.6.x - name: Publish to GPR run: | From b4f1aae32fa4651fa82e7fe1d22187db4975ab97 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Wed, 1 Jul 2020 14:09:21 -0400 Subject: [PATCH 174/366] Use sentence casing --- ci/elixir.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 643e1b60eb..ca562cad46 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -12,24 +12,24 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Cache Mix Dependencies + - name: Cache mix dependencies uses: actions/cache@v1 with: path: deps key: ${{ runner.OS }}-mix-${{ hashFiles('**/mix.lock') }} restore-keys: | ${{ runner.OS }}-mix- - - name: Install Dependencies + - name: Install dependencies run: | mix local.rebar --force mix local.hex --force mix deps.get - - name: Cache Build Files + - name: Cache build files uses: actions/cache@v1 with: path: _build key: ${{ runner.OS }}-build-${{ github.sha }} restore-keys: | ${{ runner.OS }}-build- - - name: Run Tests + - name: Run tests run: mix test From cb6cee5157deeeb3f3b554c900f5efd0d5b887ae Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Wed, 1 Jul 2020 14:14:45 -0400 Subject: [PATCH 175/366] Update elixir.yml --- ci/elixir.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 7b3d5a49b9..1cad8fe453 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -13,6 +13,11 @@ jobs: 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: Cache mix dependencies uses: actions/cache@v1 with: @@ -30,4 +35,4 @@ jobs: - name: Install dependencies run: mix deps.get - name: Run tests - run: mix test \ No newline at end of file + run: mix test From 9995e35e759c66813fdcbb5aaaea5a2a49e04f56 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Wed, 1 Jul 2020 17:06:09 -0400 Subject: [PATCH 176/366] Cache only Elixir dependencies, not build --- ci/elixir.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 1cad8fe453..4b3e78fb2a 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -9,6 +9,7 @@ on: jobs: build: + name: Build and test runs-on: ubuntu-latest steps: @@ -18,20 +19,12 @@ jobs: with: elixir-version: '1.10.3' # Define the elixir version [required] otp-version: '22.3' # Define the OTP version [required] - - name: Cache mix dependencies - uses: actions/cache@v1 + - name: Restore dependencies cache + uses: actions/cache@v2 with: path: deps - key: ${{ runner.OS }}-mix-${{ hashFiles('**/mix.lock') }} - restore-keys: | - ${{ runner.OS }}-mix- - - name: Cache build files - uses: actions/cache@v1 - with: - path: _build - key: ${{ runner.OS }}-build-${{ github.sha }} - restore-keys: | - ${{ runner.OS }}-build- + key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: ${{ runner.os }}-mix- - name: Install dependencies run: mix deps.get - name: Run tests From b79be1ea1a0e060ce090e4fc4206ab660ae0e6ad Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Tue, 7 Jul 2020 14:07:47 -0700 Subject: [PATCH 177/366] Add manually triggered workflow template --- ci/manual.yml | 30 ++++++++++++++++++++++++++++ ci/properties/manual.properties.json | 6 ++++++ 2 files changed, 36 insertions(+) create mode 100644 ci/manual.yml create mode 100644 ci/properties/manual.properties.json diff --git a/ci/manual.yml b/ci/manual.yml new file mode 100644 index 0000000000..4a7131e812 --- /dev/null +++ b/ci/manual.yml @@ -0,0 +1,30 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "greet" + greet: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ github.event.inputs.name }}" \ No newline at end of file diff --git a/ci/properties/manual.properties.json b/ci/properties/manual.properties.json new file mode 100644 index 0000000000..7a7d96fcb9 --- /dev/null +++ b/ci/properties/manual.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Manual workflow", + "description": "Simple workflow that is manually triggered.", + "iconName": "blank", + "categories": null +} From d84eed709f45f0278c3dd3a5e73bf06d243eaf61 Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Thu, 9 Jul 2020 08:32:58 -0700 Subject: [PATCH 178/366] Move manual workflow template to automation category --- {ci => automation}/manual.yml | 0 {ci => automation}/properties/manual.properties.json | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {ci => automation}/manual.yml (100%) rename {ci => automation}/properties/manual.properties.json (79%) diff --git a/ci/manual.yml b/automation/manual.yml similarity index 100% rename from ci/manual.yml rename to automation/manual.yml diff --git a/ci/properties/manual.properties.json b/automation/properties/manual.properties.json similarity index 79% rename from ci/properties/manual.properties.json rename to automation/properties/manual.properties.json index 7a7d96fcb9..f08cbc36c6 100644 --- a/ci/properties/manual.properties.json +++ b/automation/properties/manual.properties.json @@ -2,5 +2,5 @@ "name": "Manual workflow", "description": "Simple workflow that is manually triggered.", "iconName": "blank", - "categories": null + "categories": ["Automation"] } From 15e1039f3fe5847254a31771e973e73c73968eed Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Fri, 10 Jul 2020 10:55:13 +0100 Subject: [PATCH 179/366] Include Bearer in GEM_HOST_API_KEY --- ci/gem-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/gem-push.yml b/ci/gem-push.yml index 08733c7e7a..25477c8403 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -27,7 +27,7 @@ jobs: gem build *.gemspec gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem env: - GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}} + GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}" OWNER: username - name: Publish to RubyGems @@ -39,4 +39,4 @@ jobs: gem build *.gemspec gem push *.gem env: - GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}} + GEM_HOST_API_KEY: "Bearer ${{secrets.RUBYGEMS_AUTH_TOKEN}}" From 9e8735b0e6649465a5d3b699d544dc379120d797 Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Fri, 10 Jul 2020 11:12:02 +0100 Subject: [PATCH 180/366] Use ${{ github.repository_owner }} as OWNER --- ci/gem-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/gem-push.yml b/ci/gem-push.yml index 25477c8403..21a01151bf 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -28,7 +28,7 @@ jobs: gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem env: GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}" - OWNER: username + OWNER: ${{ github.repository_owner }} - name: Publish to RubyGems run: | From 0ca3f2a990f9f73a0df51f686dd470fe36e5047f Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Fri, 10 Jul 2020 11:15:29 +0100 Subject: [PATCH 181/366] Remove Bearer from printf .gem/credentials --- ci/gem-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/gem-push.yml b/ci/gem-push.yml index 21a01151bf..3f2ad50498 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -23,7 +23,7 @@ jobs: mkdir -p $HOME/.gem touch $HOME/.gem/credentials chmod 0600 $HOME/.gem/credentials - printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $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: From bd169be472f61378e09e0c372c2fa3b1789b3d1a Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Fri, 10 Jul 2020 11:25:05 +0100 Subject: [PATCH 182/366] 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 --- ci/gem-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/gem-push.yml b/ci/gem-push.yml index 3f2ad50498..cc92e979d1 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Ruby 2.6 uses: actions/setup-ruby@v1 with: - version: 2.6.x + ruby-version: 2.6.x - name: Publish to GPR run: | From abf7f258d1d84c79ad067c704e069c8cf7d8d2d0 Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Mon, 13 Jul 2020 12:12:41 -0700 Subject: [PATCH 183/366] Use $default-branch token --- ci/android.yml | 4 ++-- ci/ant.yml | 4 ++-- ci/blank.yml | 6 +++--- ci/c-cpp.yml | 4 ++-- ci/clojure.yml | 4 ++-- ci/crystal.yml | 4 ++-- ci/dart.yml | 4 ++-- ci/django.yml | 4 ++-- ci/docker-image.yml | 4 ++-- ci/docker-publish.yml | 8 ++++---- ci/dotnet-core-desktop.yml | 16 ++++++++-------- ci/dotnet-core.yml | 4 ++-- ci/elixir.yml | 6 +++--- ci/erlang.yml | 4 ++-- ci/gem-push.yml | 4 ++-- ci/go.yml | 4 ++-- ci/gradle.yml | 4 ++-- ci/haskell.yml | 4 ++-- ci/jekyll.yml | 4 ++-- ci/laravel.yml | 6 +++--- ci/maven.yml | 4 ++-- ci/node.js.yml | 4 ++-- ci/php.yml | 6 +++--- ci/python-app.yml | 4 ++-- ci/python-package.yml | 4 ++-- ci/ruby.yml | 4 ++-- ci/rust.yml | 4 ++-- ci/scala.yml | 4 ++-- ci/swift.yml | 4 ++-- ci/terraform.yml | 12 ++++++------ 30 files changed, 76 insertions(+), 76 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 7ec0147524..c88c515ea9 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -2,9 +2,9 @@ name: Android CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/ant.yml b/ci/ant.yml index efebba5a07..28fe6d0529 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -5,9 +5,9 @@ name: Java CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/blank.yml b/ci/blank.yml index d6783e2188..72f1f168ba 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -3,12 +3,12 @@ name: CI # Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch +# events but only for the $default-branch branch on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index e3233268f7..88d1497621 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -2,9 +2,9 @@ name: C/C++ CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/clojure.yml b/ci/clojure.yml index 22bfe20398..098918a1b8 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -2,9 +2,9 @@ name: Clojure CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/crystal.yml b/ci/crystal.yml index ce9dbfcd3b..6552afa563 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -2,9 +2,9 @@ name: Crystal CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/dart.yml b/ci/dart.yml index 11e18c7beb..6e1b2e3d89 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -2,9 +2,9 @@ name: Dart CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/django.yml b/ci/django.yml index c806047783..b9d531508b 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -2,9 +2,9 @@ name: Django CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/docker-image.yml b/ci/docker-image.yml index e57d42a7c9..78532a335a 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -2,9 +2,9 @@ name: Docker Image CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 9e80e76c88..76756dbf1e 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -2,9 +2,9 @@ name: Docker on: push: - # Publish `master` as Docker `latest` image. + # Publish `$default-branch` as Docker `latest` image. branches: - - master + - $default-branch # Publish `v1.2.3` tags as releases. tags: @@ -56,7 +56,7 @@ jobs: - 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]') @@ -67,7 +67,7 @@ jobs: [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') # Use Docker `latest` tag convention - [ "$VERSION" == "master" ] && VERSION=latest + [ "$VERSION" == "$default-branch" ] && VERSION=latest echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION diff --git a/ci/dotnet-core-desktop.yml b/ci/dotnet-core-desktop.yml index ed37b70c13..341576c6c0 100644 --- a/ci/dotnet-core-desktop.yml +++ b/ci/dotnet-core-desktop.yml @@ -11,22 +11,22 @@ # To configure this workflow: # # 1. Configure environment variables -# GitHub sets default environment variables for every workflow run. +# 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 +# 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 +# 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". @@ -40,9 +40,9 @@ name: .NET Core Desktop on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: @@ -52,7 +52,7 @@ jobs: matrix: configuration: [Debug, Release] - runs-on: windows-latest # For a list of available runner types, refer to + 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: diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index f734ea7b55..03958b66af 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -2,9 +2,9 @@ name: .NET Core on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/elixir.yml b/ci/elixir.yml index 4b3e78fb2a..76dd26d00b 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -2,10 +2,10 @@ name: Elixir CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] - + branches: [ $default-branch ] + jobs: build: diff --git a/ci/erlang.yml b/ci/erlang.yml index fd28497ff7..25cb8939e7 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -2,9 +2,9 @@ name: Erlang CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: diff --git a/ci/gem-push.yml b/ci/gem-push.yml index 08733c7e7a..f9b64e89f7 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -2,9 +2,9 @@ name: Ruby Gem on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/go.yml b/ci/go.yml index d31e87f957..3fa934869a 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -2,9 +2,9 @@ name: Go on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: diff --git a/ci/gradle.yml b/ci/gradle.yml index 58e1c59ce1..4550f5880d 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -5,9 +5,9 @@ name: Java CI with Gradle on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/haskell.yml b/ci/haskell.yml index 4bc2d165a1..4c9a50c3d6 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -2,9 +2,9 @@ name: Haskell CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 64df081ef4..9449a6efae 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -2,9 +2,9 @@ name: Jekyll site CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/laravel.yml b/ci/laravel.yml index a895246337..b32ad881b8 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -2,15 +2,15 @@ name: Laravel on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: laravel-tests: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v2 - name: Copy .env diff --git a/ci/maven.yml b/ci/maven.yml index c8aeb3a277..a46556ab3b 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -5,9 +5,9 @@ name: Java CI with Maven on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/node.js.yml b/ci/node.js.yml index 673bd33177..ce0cdcfd8e 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -5,9 +5,9 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/php.yml b/ci/php.yml index 839187e4de..5053b43d44 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -2,9 +2,9 @@ name: PHP Composer on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: @@ -16,7 +16,7 @@ jobs: - name: Validate composer.json and composer.lock run: composer validate - + - name: Cache Composer packages id: composer-cache uses: actions/cache@v2 diff --git a/ci/python-app.yml b/ci/python-app.yml index c7f5067453..3b3e6a6a78 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -5,9 +5,9 @@ name: Python application on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/python-package.yml b/ci/python-package.yml index f1abc2ffce..c4a1081379 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -5,9 +5,9 @@ name: Python package on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/ruby.yml b/ci/ruby.yml index 76c166ecbe..7f3bdd6f98 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -9,9 +9,9 @@ name: Ruby on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: test: diff --git a/ci/rust.yml b/ci/rust.yml index 3c13d1be28..6c82c610fe 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] env: CARGO_TERM_COLOR: always diff --git a/ci/scala.yml b/ci/scala.yml index f182d0c092..96bfc70de1 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -2,9 +2,9 @@ name: Scala CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/swift.yml b/ci/swift.yml index 5dbdb4f34d..df062b53e5 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -2,9 +2,9 @@ name: Swift on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/terraform.yml b/ci/terraform.yml index 148f2e220f..7fc401b09b 100644 --- a/ci/terraform.yml +++ b/ci/terraform.yml @@ -1,7 +1,7 @@ # This workflow installs the latest version of Terraform CLI and configures the Terraform CLI configuration file # with an API token for Terraform Cloud (app.terraform.io). On pull request events, this workflow will run # `terraform init`, `terraform fmt`, and `terraform plan` (speculative plan via Terraform Cloud). On push events -# to the master branch, `terraform apply` will be executed. +# to the $default-branch branch, `terraform apply` will be executed. # # Documentation for `hashicorp/setup-terraform` is located here: https://github.com/hashicorp/setup-terraform # @@ -47,7 +47,7 @@ name: 'Terraform' on: push: branches: - - master + - $default-branch pull_request: jobs: @@ -65,7 +65,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token + # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token - name: Setup Terraform uses: hashicorp/setup-terraform@v1 with: @@ -82,9 +82,9 @@ jobs: # Generates an execution plan for Terraform - name: Terraform Plan run: terraform plan - - # On push to master, build or change infrastructure according to Terraform configuration files + + # On push to $default-branch, build or change infrastructure according to Terraform configuration files # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Terraform Apply - if: github.ref == 'refs/heads/master' && github.event_name == 'push' + if: github.ref == 'refs/heads/$default-branch' && github.event_name == 'push' run: terraform apply -auto-approve From 7ed78293f73a2b40e29a46a4b3be386c8c534b6b Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Mon, 13 Jul 2020 12:13:03 -0700 Subject: [PATCH 184/366] Use repository link --- automation/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/label.yml b/automation/label.yml index e90b599b9a..7c724a62ac 100644 --- a/automation/label.yml +++ b/automation/label.yml @@ -3,7 +3,7 @@ # # 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/blob/master/README.md +# https://github.com/actions/labeler name: Labeler on: [pull_request] From 930a2cac2bfea6c9d44813a374348d81b7b410fd Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Tue, 14 Jul 2020 12:57:43 -0700 Subject: [PATCH 185/366] Update PR template to refer to $default-branch --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 01bb7bc4fd..530b19d58a 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -22,7 +22,7 @@ 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 ]`. +- [ ] 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 ]`. Some general notes: From aa2ec78d148d34defae6786f3cfe1b95f85716dc Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Wed, 15 Jul 2020 16:21:25 -0700 Subject: [PATCH 186/366] rename to main --- .github/pull_request_template.md | 2 +- .github/workflows/sync_ghes.yaml | 2 +- CONTRIBUTING.md | 4 ++-- script/sync-ghes/index.ts | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 530b19d58a..b31d11b224 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,7 +6,7 @@ It is not: --- -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. +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/main/CONTRIBUTING.md). Here's a few things for you to consider in this pull request. Please **add to this description** at the bottom :point_down: diff --git a/.github/workflows/sync_ghes.yaml b/.github/workflows/sync_ghes.yaml index 54193bd35b..aa5e741ef7 100644 --- a/.github/workflows/sync_ghes.yaml +++ b/.github/workflows/sync_ghes.yaml @@ -3,7 +3,7 @@ name: Sync workflows for GHES on: push: branches: - - master + - main jobs: sync: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f711b7775b..91aad39c66 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,10 +4,10 @@ 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. Before merging a new workflow, the following requirements need to be met: diff --git a/script/sync-ghes/index.ts b/script/sync-ghes/index.ts index ea347cfa76..0fa34400bb 100755 --- a/script/sync-ghes/index.ts +++ b/script/sync-ghes/index.ts @@ -148,18 +148,18 @@ async function checkWorkflow( console.log("Switch to GHES branch"); await exec("git", ["checkout", "ghes"]); - // In order to sync from master, we might need to remove some workflows, add some + // In order to sync from main, we might need to remove some workflows, add some // and modify others. The lazy approach is to delete all workflows first, and then - // just bring the compatible ones over from the master branch. We let git figure out + // just bring the compatible ones over from the main branch. We let git figure out // whether it's a deletion, add, or modify and commit the new state. console.log("Remove all workflows"); await exec("rm", ["-fr", ...settings.folders]); await exec("rm", ["-fr", "../../icons"]); - console.log("Sync changes from master for compatible workflows"); + console.log("Sync changes from main for compatible workflows"); await exec("git", [ "checkout", - "master", + "main", "--", ...Array.prototype.concat.apply( [], From 2740936be443d46a9dc0907df6103ab070156d18 Mon Sep 17 00:00:00 2001 From: Rob McGuire Date: Fri, 17 Jul 2020 19:54:48 -0700 Subject: [PATCH 187/366] Move "checkout" comment adjacent to its step --- ci/terraform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/terraform.yml b/ci/terraform.yml index 7fc401b09b..e6cf027b40 100644 --- a/ci/terraform.yml +++ b/ci/terraform.yml @@ -60,8 +60,8 @@ jobs: run: shell: bash - # Checkout the repository to the GitHub Actions runner steps: + # Checkout the repository to the GitHub Actions runner - name: Checkout uses: actions/checkout@v2 From 318a078faffca342d7f114f3ad319b4c1e5dec4e Mon Sep 17 00:00:00 2001 From: Steve Desmond Date: Sat, 18 Jul 2020 16:17:03 -0400 Subject: [PATCH 188/366] 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. --- ci/dotnet-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 03958b66af..9ee1a7d929 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore - name: Build From 3c570179b76474cc99d4b11c04d7619191872d55 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Wed, 22 Jul 2020 13:44:29 +0200 Subject: [PATCH 189/366] Update artifact actions from v1 to v2 --- ci/dotnet-core-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core-desktop.yml b/ci/dotnet-core-desktop.yml index 341576c6c0..480be78aae 100644 --- a/ci/dotnet-core-desktop.yml +++ b/ci/dotnet-core-desktop.yml @@ -109,7 +109,7 @@ jobs: # Upload the MSIX package: https://github.com/marketplace/actions/upload-artifact - name: Upload build artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: name: MSIX Package path: ${{ env.Wap_Project_Directory }}\AppPackages From 860fdf02bf65a0ed26e74dfecbb909d774623e15 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:13:53 +0530 Subject: [PATCH 190/366] Create deno.yml --- ci/deno.yml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 ci/deno.yml diff --git a/ci/deno.yml b/ci/deno.yml new file mode 100644 index 0000000000..fb00a11623 --- /dev/null +++ b/ci/deno.yml @@ -0,0 +1,61 @@ +# 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 CI + +on: + push: + branches: [$default-branch] + pull_request: + branches: [$default-branch] + +jobs: + stable: + name: Test on Deno Stable + + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [macOS-latest, windows-latest, ubuntu-latest] + + steps: + - name: Setup repo + uses: actions/checkout@v2 + + - name: Setup Deno + uses: denolib/setup-deno@v2 + with: + deno-version: v1.x + + - name: Cache Deps + run: deno cache deps.ts + + - name: Run Tests + run: deno test -A --unstable + + nightly: + name: Test on Deno Nightly + + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [macOS-latest, windows-latest, ubuntu-latest] + + steps: + - name: Setup repo + uses: actions/checkout@v2 + + - name: Setup Deno + uses: denolib/setup-deno@v2 + with: + deno-version: nightly + + - name: Cache Deps + run: deno cache deps.ts + + - name: Run tests + run: deno-nightly test -A --unstable From 613f51fa515c7838ff4355eece966e0d938ec088 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:16:06 +0530 Subject: [PATCH 191/366] Create deno.properties.json --- ci/properties/deno.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/deno.properties.json diff --git a/ci/properties/deno.properties.json b/ci/properties/deno.properties.json new file mode 100644 index 0000000000..e531d9c900 --- /dev/null +++ b/ci/properties/deno.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Deno", + "description": "Test you Deno project", + "iconName": "deno", + "categories": ["JavaScript", "TypeScript", "Deno"] +} From 125b38d0419ec233853c8f8d2c5a7d2802640eb6 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:18:56 +0530 Subject: [PATCH 192/366] Create deno.svg --- icons/deno.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 icons/deno.svg diff --git a/icons/deno.svg b/icons/deno.svg new file mode 100644 index 0000000000..17ffb3e596 --- /dev/null +++ b/icons/deno.svg @@ -0,0 +1 @@ + From 96bdc687f45f9f875d7e9c721be2952ba7ca0a6e Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:30:01 +0530 Subject: [PATCH 193/366] made it as simple as possible --- ci/deno.yml | 38 ++++---------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/ci/deno.yml b/ci/deno.yml index fb00a11623..c81f3a705b 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -1,7 +1,7 @@ # 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 CI +name: Deno on: push: @@ -10,15 +10,10 @@ on: branches: [$default-branch] jobs: - stable: - name: Test on Deno Stable + test: + name: Test - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [macOS-latest, windows-latest, ubuntu-latest] + runs-on: ubuntu-latest steps: - name: Setup repo @@ -34,28 +29,3 @@ jobs: - name: Run Tests run: deno test -A --unstable - - nightly: - name: Test on Deno Nightly - - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [macOS-latest, windows-latest, ubuntu-latest] - - steps: - - name: Setup repo - uses: actions/checkout@v2 - - - name: Setup Deno - uses: denolib/setup-deno@v2 - with: - deno-version: nightly - - - name: Cache Deps - run: deno cache deps.ts - - - name: Run tests - run: deno-nightly test -A --unstable From e0b4d1e49eef4c740c8f367e20f30cc948c2ae1f Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:31:50 +0530 Subject: [PATCH 194/366] added warning --- ci/deno.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/deno.yml b/ci/deno.yml index c81f3a705b..ce727a4747 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -1,3 +1,8 @@ +# 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 From 5a6d7fe48f857107d55ebf8d26b7d63131e0013e Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:33:30 +0530 Subject: [PATCH 195/366] fix typo --- ci/properties/deno.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/deno.properties.json b/ci/properties/deno.properties.json index e531d9c900..8a2c76276c 100644 --- a/ci/properties/deno.properties.json +++ b/ci/properties/deno.properties.json @@ -1,6 +1,6 @@ { "name": "Deno", - "description": "Test you Deno project", + "description": "Test your Deno project", "iconName": "deno", "categories": ["JavaScript", "TypeScript", "Deno"] } From 8f334e85aaaa7ced60daf6174ba818b35768766c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 31 Jul 2020 10:21:41 -0700 Subject: [PATCH 196/366] Use actions/setup-python@v2 --- ci/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/django.yml b/ci/django.yml index b9d531508b..6ed9db830e 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install Dependencies From e0507e673cae5918f51f7cbc03bd2ade73b629a2 Mon Sep 17 00:00:00 2001 From: Kunwar Toor Date: Mon, 3 Aug 2020 10:47:03 -0700 Subject: [PATCH 197/366] updated google.yml to reflect the more recent gke workflow action given by google in https://github.com/GoogleCloudPlatform/github-actions --- ci/google.yml | 67 +++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index b8d1079527..b9d6e743e5 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -7,69 +7,72 @@ # 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_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, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below). +# +# For more support on how to run the workflow, please visit https://github.com/GoogleCloudPlatform/github-actions/tree/master/example-workflows/gke name: Build and Deploy to GKE on: - release: - types: [created] + push: + branches: + - master -# Environment variables available to all jobs and steps in this workflow env: - GKE_PROJECT: ${{ secrets.GKE_PROJECT }} - GKE_EMAIL: ${{ secrets.GKE_EMAIL }} - GITHUB_SHA: ${{ github.sha }} - GKE_ZONE: us-west1-a - GKE_CLUSTER: example-gke-cluster - IMAGE: gke-test - REGISTRY_HOSTNAME: gcr.io - DEPLOYMENT_NAME: gke-test + 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: + steps: - name: Checkout uses: actions/checkout@v2 # Setup gcloud CLI - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master with: - version: '270.0.0' - service_account_email: ${{ secrets.GKE_EMAIL }} - service_account_key: ${{ secrets.GKE_KEY }} + version: '290.0.1' + 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 + - run: |- + gcloud container clusters get-credentials "$GKE_CLUSTER" --zone "$GKE_ZONE" - # Configure docker to use the gcloud command-line tool as a credential helper - - run: | - # Set up docker to authenticate - # via gcloud command-line tool. - gcloud auth configure-docker - # Build the Docker image - name: Build - run: | - docker build -t "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$IMAGE":"$GITHUB_SHA" \ + run: |- + docker build \ + --tag "gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA" \ --build-arg GITHUB_SHA="$GITHUB_SHA" \ - --build-arg GITHUB_REF="$GITHUB_REF" . + --build-arg GITHUB_REF="$GITHUB_REF" \ + . # Push the Docker image to Google Container Registry - name: Publish - run: | - docker push $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:$GITHUB_SHA - + run: |- + docker push "gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA" + # Set up kustomize - name: Set up Kustomize - run: | - curl -o kustomize --location https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 + 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: | - gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT - ./kustomize edit set image $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:${GITHUB_SHA} + 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 From 96d4d9913c1959f40e92c5af3549f90cf8cb6e26 Mon Sep 17 00:00:00 2001 From: Kunwar Toor Date: Mon, 3 Aug 2020 10:55:35 -0700 Subject: [PATCH 198/366] updated google.yml to reflect the more recent gke workflow action given by google in https://github.com/GoogleCloudPlatform/github-actions --- ci/google.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index b9d6e743e5..dc37de4066 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -13,9 +13,8 @@ name: Build and Deploy to GKE on: - push: - branches: - - master + release: + types: [created] env: PROJECT_ID: ${{ secrets.GKE_PROJECT }} From 27c4cec0db5be1cbd9d926b157b9319a2c76137e Mon Sep 17 00:00:00 2001 From: ktoor-google <69051209+ktoor-google@users.noreply.github.com> Date: Mon, 10 Aug 2020 16:42:41 -0700 Subject: [PATCH 199/366] Update ci/google.yml Co-authored-by: John Bohannon --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index dc37de4066..fb29666f6b 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -4,7 +4,7 @@ # # 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, GKE_EMAIL with the service account email, GKE_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs). +# 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, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below). # From 0ec52ad66b01f8b0a4e9f22cc71cfab60e70e106 Mon Sep 17 00:00:00 2001 From: ktoor-google <69051209+ktoor-google@users.noreply.github.com> Date: Mon, 10 Aug 2020 16:43:03 -0700 Subject: [PATCH 200/366] Update ci/google.yml Co-authored-by: John Bohannon --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index fb29666f6b..cfbbddb5a1 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -6,7 +6,7 @@ # # 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, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below). +# 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/GoogleCloudPlatform/github-actions/tree/master/example-workflows/gke From ee064c5e4b6c2ff11f25d79ea68d7db195fccf46 Mon Sep 17 00:00:00 2001 From: Kunwar Toor Date: Mon, 10 Aug 2020 17:07:34 -0700 Subject: [PATCH 201/366] updated gcloud action to latest --- ci/google.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index cfbbddb5a1..aaaf6db105 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -35,7 +35,6 @@ jobs: # Setup gcloud CLI - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master with: - version: '290.0.1' service_account_key: ${{ secrets.GKE_SA_KEY }} project_id: ${{ secrets.GKE_PROJECT }} From ebe6a9d913babf373cebfb5c689de123fdef82ff Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Wed, 12 Aug 2020 18:56:23 +0400 Subject: [PATCH 202/366] blank.yml: fix indentation --- ci/blank.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ci/blank.yml b/ci/blank.yml index 72f1f168ba..f7816e9ade 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -19,15 +19,15 @@ 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@v2 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From bfe353443a94ed8fb57751d2934b5c3c2f4bd61b Mon Sep 17 00:00:00 2001 From: ktoor-google <69051209+ktoor-google@users.noreply.github.com> Date: Thu, 13 Aug 2020 11:52:11 -0700 Subject: [PATCH 203/366] Update ci/google.yml Co-authored-by: John Bohannon --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index aaaf6db105..b9313b25a0 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -33,7 +33,7 @@ jobs: uses: actions/checkout@v2 # Setup gcloud CLI - - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + - uses: GoogleCloudPlatform/github-actions/setup-gcloud@0.1.3 with: service_account_key: ${{ secrets.GKE_SA_KEY }} project_id: ${{ secrets.GKE_PROJECT }} From ccf96281e91d3f5b88354198a79bf21e25ab959c Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Thu, 19 Sep 2019 16:43:03 +0200 Subject: [PATCH 204/366] 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 --- ci/d.yml | 29 +++++ ci/properties/d.properties.json | 6 + icons/d.svg | 216 ++++++++++++++++++++++++++++++++ 3 files changed, 251 insertions(+) create mode 100644 ci/d.yml create mode 100644 ci/properties/d.properties.json create mode 100644 icons/d.svg diff --git a/ci/d.yml b/ci/d.yml new file mode 100644 index 0000000000..d5329eb2fe --- /dev/null +++ b/ci/d.yml @@ -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: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: dlang-community/setup-dlang@7c3e57bdc1ff2d8994f00e61b3ef400e67d2d7ac + + - 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 diff --git a/ci/properties/d.properties.json b/ci/properties/d.properties.json new file mode 100644 index 0000000000..5c67054a57 --- /dev/null +++ b/ci/properties/d.properties.json @@ -0,0 +1,6 @@ +{ + "name": "D", + "description": "Build and test a D project with dub.", + "iconName": "d", + "categories": [ "D" ] +} diff --git a/icons/d.svg b/icons/d.svg new file mode 100644 index 0000000000..f2492bc3f7 --- /dev/null +++ b/icons/d.svg @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + From e29f776785c11591acff1b59d42ee4135592afc8 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Thu, 20 Aug 2020 18:09:12 -0700 Subject: [PATCH 205/366] updates to starter workflows --- .github/pull_request_template.md | 7 ++----- CONTRIBUTING.md | 4 ++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b31d11b224..e79272cc2a 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,12 +6,9 @@ It is not: --- -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/main/CONTRIBUTING.md). Here's a few things for you to consider in this pull request. +**Please note that we are not accepting new starter workflows at this time. Updates to existing starter workflows are fine.** -Please **add to this description** at the bottom :point_down: - -- [ ] A good description of the workflow at the bottom of this page. -- [ ] Some links to the language or tool will be nice (unless its really obvious) +--- In the workflow and properties files: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 91aad39c66..8f9d704a39 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,6 +9,10 @@ Contributions to this project are [released](https://help.github.com/articles/gi Please note that this project is released with a [Contributor Code of Conduct]( 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 not accepting any new starter workflows** + +### 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. From fae2392dd2801d3741150afe43ac3df1bb5d57dc Mon Sep 17 00:00:00 2001 From: Jim Hester Date: Fri, 21 Aug 2020 09:24:31 -0400 Subject: [PATCH 206/366] Update ci/r.yml Co-authored-by: Andy McKay --- ci/r.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/r.yml b/ci/r.yml index cad232b276..efc65874da 100644 --- a/ci/r.yml +++ b/ci/r.yml @@ -10,9 +10,9 @@ name: R on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: From dc7a645261e96af0083db1398c7e0b912d1c6688 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 21 Aug 2020 08:25:55 -0700 Subject: [PATCH 207/366] Update ci/properties/r.properties.json --- ci/properties/r.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/r.properties.json b/ci/properties/r.properties.json index a9c6c61796..84ba0ec9c5 100644 --- a/ci/properties/r.properties.json +++ b/ci/properties/r.properties.json @@ -1,6 +1,6 @@ { "name": "R package", "description": "Create and test an R package on multiple R versions.", - "iconName": "R", + "iconName": "r", "categories": ["R"] } From 94759fc6c5d59281f2bbed53bcac8b68c2b5700b Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 21 Aug 2020 11:57:09 -0700 Subject: [PATCH 208/366] Update d.yml --- ci/d.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/d.yml b/ci/d.yml index d5329eb2fe..8ee1d1cd6f 100644 --- a/ci/d.yml +++ b/ci/d.yml @@ -6,9 +6,9 @@ name: D on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: From acf5f6e3fc0e27f1c3e62eea33a2a0831360c567 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 21 Aug 2020 08:27:29 -0700 Subject: [PATCH 209/366] Merge pull request #166 from jimhester/r-starter-workflow Add R starter workflow --- ci/properties/r.properties.json | 6 ++++++ ci/r.yml | 37 +++++++++++++++++++++++++++++++++ icons/r.svg | 14 +++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 ci/properties/r.properties.json create mode 100644 ci/r.yml create mode 100644 icons/r.svg diff --git a/ci/properties/r.properties.json b/ci/properties/r.properties.json new file mode 100644 index 0000000000..84ba0ec9c5 --- /dev/null +++ b/ci/properties/r.properties.json @@ -0,0 +1,6 @@ +{ + "name": "R package", + "description": "Create and test an R package on multiple R versions.", + "iconName": "r", + "categories": ["R"] +} diff --git a/ci/r.yml b/ci/r.yml new file mode 100644 index 0000000000..efc65874da --- /dev/null +++ b/ci/r.yml @@ -0,0 +1,37 @@ +# 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. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + +name: R + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: macOS-latest + strategy: + matrix: + r-version: [3.5, 3.6] + + steps: + - uses: actions/checkout@v2 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@ffe45a39586f073cc2e9af79c4ba563b657dc6e3 + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} diff --git a/icons/r.svg b/icons/r.svg new file mode 100644 index 0000000000..78281f78ff --- /dev/null +++ b/icons/r.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + From 1dc9bda71dc6dea61d5c622ce4d00b743af78668 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 21 Aug 2020 15:00:23 -0700 Subject: [PATCH 210/366] Revert "add Cypress starter workflow" --- ci/cypress.yml | 47 --------------------------- ci/properties/cypress.properties.json | 6 ---- icons/cypress.svg | 16 --------- 3 files changed, 69 deletions(-) delete mode 100644 ci/cypress.yml delete mode 100644 ci/properties/cypress.properties.json delete mode 100644 icons/cypress.svg diff --git a/ci/cypress.yml b/ci/cypress.yml deleted file mode 100644 index c42c930ded..0000000000 --- a/ci/cypress.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Cypress - -on: [push] - -env: - CI: 1 # minimal progress output - TERM: xterm # good terminal rendering - -jobs: - # for simpler configuration you can use 3rd party action - # https://github.com/cypress-io/github-action - e2e: - name: Cypress tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Cache NPM modules - uses: actions/cache@v1 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-npm- - - name: Cache Cypress binary - uses: actions/cache@v1 - with: - path: ~/.cache/Cypress - key: ${{ runner.os }}-cypress-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-cypress- - - name: install Cypress - run: | - npm ci - npx cypress verify - - name: E2E tests - run: npx cypress run - # save any error screenshots as test artifacts - - uses: actions/upload-artifact@v1 - if: failure() - with: - name: screenshots - path: cypress/screenshots - # video should always be generated - - uses: actions/upload-artifact@v1 - with: - name: videos - path: cypress/videos diff --git a/ci/properties/cypress.properties.json b/ci/properties/cypress.properties.json deleted file mode 100644 index 0fae5445e2..0000000000 --- a/ci/properties/cypress.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Cypress", - "description": "Run end-to-end web application tests using Cypress.io", - "iconName": "cypress", - "categories": ["Testing", "Cypress"] -} diff --git a/icons/cypress.svg b/icons/cypress.svg deleted file mode 100644 index 3134aebad6..0000000000 --- a/icons/cypress.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - From 760d91097ac9a9c24a29728c2a72bd36498b85ca Mon Sep 17 00:00:00 2001 From: Bradley Austin Davis Date: Fri, 21 Aug 2020 18:35:36 -0700 Subject: [PATCH 211/366] Update ci/cmake.yml Co-authored-by: Andy McKay --- ci/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 2690d7599c..b69efe7bb1 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -15,7 +15,7 @@ jobs: os: [windows-latest, ubuntu-latest, macOS-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Create Build Environment # Some projects don't allow in-source building, so create a separate build directory From 9ca8884216a65b93dafb9982e1de685e954ca525 Mon Sep 17 00:00:00 2001 From: Bradley Austin Davis Date: Fri, 21 Aug 2020 18:39:05 -0700 Subject: [PATCH 212/366] Switching to single-platform build per PR comments --- ci/cmake.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index b69efe7bb1..dae54ec2a9 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -8,11 +8,11 @@ env: jobs: build: - - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest, ubuntu-latest, macOS-latest] + # 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/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From eb30c1ee372a59445172326d436cdab40283eb87 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 11 Apr 2020 19:13:45 +0700 Subject: [PATCH 213/366] Add iOS Starter Workflow Signed-off-by: Jai Govindani --- ci/ios.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ci/ios.yml diff --git a/ci/ios.yml b/ci/ios.yml new file mode 100644 index 0000000000..d742656794 --- /dev/null +++ b/ci/ios.yml @@ -0,0 +1,44 @@ +name: iOS Starter Workflow + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build and Test default scheme using any available iPhone simulator + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - 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' }} + platform: ${{ 'iOS Simulator' }} + run: | + 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}'` + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + - name: Test + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + 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}'` + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" From 8086b89ce166e59ed0477cab6f2f174046b727be Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 11 Apr 2020 19:19:25 +0700 Subject: [PATCH 214/366] Set name of workflow to sentence case Signed-off-by: Jai Govindani --- ci/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/ios.yml b/ci/ios.yml index d742656794..f59381af15 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -1,4 +1,4 @@ -name: iOS Starter Workflow +name: iOS starter workflow on: push: From f5834be4a7afe8759a5edd4c4e2fdfc0b5ed4110 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 11 Apr 2020 19:19:37 +0700 Subject: [PATCH 215/366] Add ios.properties.json Signed-off-by: Jai Govindani --- ci/properties/ios.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/ios.properties.json diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json new file mode 100644 index 0000000000..e9e54f9273 --- /dev/null +++ b/ci/properties/ios.properties.json @@ -0,0 +1,6 @@ +{ + "name": "iOS", + "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", + "iconName": "iOS", + "categories": ["iOS", "Xcode"] +} \ No newline at end of file From 044885a1323b0966c5c8597bd7069b6ac37a11f9 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Wed, 17 Jun 2020 21:52:53 +0700 Subject: [PATCH 216/366] fix: add iOS icon Signed-off-by: Jai Govindani --- icons/ios.svg | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 icons/ios.svg diff --git a/icons/ios.svg b/icons/ios.svg new file mode 100644 index 0000000000..7a7ffcf19f --- /dev/null +++ b/icons/ios.svg @@ -0,0 +1,6 @@ + + + + + + From a7d5e843be0226c47ec2917d45dbb6188a3b60df Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Wed, 17 Jun 2020 21:57:52 +0700 Subject: [PATCH 217/366] fix: add newline to end of file ios.properties.json Signed-off-by: Jai Govindani --- ci/properties/ios.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json index e9e54f9273..b367d3d2c5 100644 --- a/ci/properties/ios.properties.json +++ b/ci/properties/ios.properties.json @@ -3,4 +3,4 @@ "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", "iconName": "iOS", "categories": ["iOS", "Xcode"] -} \ No newline at end of file +} From 8b99b795cd6399bc314985fd3b838fe1da5f7713 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Wed, 17 Jun 2020 21:59:17 +0700 Subject: [PATCH 218/366] fix: incorrect capitalization of iOS icon name Signed-off-by: Jai Govindani --- ci/properties/ios.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json index b367d3d2c5..16762c10a1 100644 --- a/ci/properties/ios.properties.json +++ b/ci/properties/ios.properties.json @@ -1,6 +1,6 @@ { "name": "iOS", "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", - "iconName": "iOS", + "iconName": "ios", "categories": ["iOS", "Xcode"] } From 1d9faa86667e7c9bfde7ef6714c3b003e264df32 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 22 Aug 2020 14:56:07 +0700 Subject: [PATCH 219/366] fix(triggers): use $default-branch instead of hard-coding Co-authored-by: Andy McKay --- ci/ios.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/ios.yml b/ci/ios.yml index f59381af15..64b14a30a9 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -2,11 +2,9 @@ name: iOS starter workflow on: push: - branches: - - master + branches: [ $default-branch ] pull_request: - branches: - - master + branches: [ $default-branch ] jobs: build: From cd6c492b58d42c3297275a38d254a6989d06ce83 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 22 Aug 2020 15:03:21 +0700 Subject: [PATCH 220/366] fix(icon): use xcode icon Signed-off-by: Jai Govindani --- ci/properties/ios.properties.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json index 16762c10a1..0b3a9edd6d 100644 --- a/ci/properties/ios.properties.json +++ b/ci/properties/ios.properties.json @@ -1,6 +1,9 @@ { "name": "iOS", "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", - "iconName": "ios", - "categories": ["iOS", "Xcode"] + "iconName": "xcode", + "categories": [ + "iOS", + "Xcode" + ] } From d344ceca325fa05a93fbcf2fb43cdf88959f7c50 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 22 Aug 2020 15:07:17 +0700 Subject: [PATCH 221/366] fix(icon): remove ios icon Signed-off-by: Jai Govindani --- icons/ios.svg | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 icons/ios.svg diff --git a/icons/ios.svg b/icons/ios.svg deleted file mode 100644 index 7a7ffcf19f..0000000000 --- a/icons/ios.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - From b2a9ff937c54a278e8b5d9f04994c3802eb55557 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Sat, 22 Aug 2020 17:26:46 +0530 Subject: [PATCH 222/366] Update Deno Workflow - Use 40 char SHA string for action's version - Add nightly testing - Add cross platform testing --- ci/deno.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ci/deno.yml b/ci/deno.yml index ce727a4747..210e383a33 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -16,18 +16,21 @@ on: jobs: test: - name: Test + runs-on: ${{ matrix.os }} - runs-on: ubuntu-latest + 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@v2 + uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96 with: - deno-version: v1.x + deno-version: ${{ matrix.deno }} - name: Cache Deps run: deno cache deps.ts From e6a92cdf5ee5eaa44fb07f4748bb7554c97eca4c Mon Sep 17 00:00:00 2001 From: Ben Heil Date: Sat, 22 Aug 2020 09:09:50 -0400 Subject: [PATCH 223/366] Update with requested changes from @andymckay --- ci/python-package-conda.yml | 43 ++++--------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/ci/python-package-conda.yml b/ci/python-package-conda.yml index c01c4fc9f8..9bd93b6471 100644 --- a/ci/python-package-conda.yml +++ b/ci/python-package-conda.yml @@ -7,15 +7,13 @@ jobs: runs-on: ubuntu-latest strategy: max-parallel: 5 - matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8] steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 - name: Install dependencies run: | # $CONDA is an environment variable pointing to the root of the miniconda directory @@ -31,36 +29,3 @@ jobs: run: | conda install pytest $CONDA/bin/pytest - - build-windows: - runs-on: windows-latest - strategy: - max-parallel: 5 - matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8] - - steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - C:\Miniconda\condabin\conda.bat env update --file environment.yml --name base - C:\Miniconda\condabin\conda.bat init powershell - - name: Lint with flake8 - run: | - # Activate the base environment - C:\Miniconda\condabin\conda.bat activate base - C:\Miniconda\condabin\conda.bat install flake8 - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - # Activate the base environment - C:\Miniconda\condabin\conda.bat activate base - C:\Miniconda\condabin\conda.bat install pytest - pytest From 781ae15668cb644f30fb31b6e9d103aed9a6cdab Mon Sep 17 00:00:00 2001 From: Ben Heil Date: Sun, 23 Aug 2020 22:21:14 -0400 Subject: [PATCH 224/366] Corrected the name: the action uses Conda but not Anaconda --- ci/python-package-conda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/python-package-conda.yml b/ci/python-package-conda.yml index 9bd93b6471..1567e183a6 100644 --- a/ci/python-package-conda.yml +++ b/ci/python-package-conda.yml @@ -1,4 +1,4 @@ -name: Python Package using Anaconda +name: Python Package using Conda on: [push] From d9ef0c9fa903382ef0c77079e8d7de8524a00ad8 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Mon, 24 Aug 2020 11:10:05 +0200 Subject: [PATCH 225/366] s/master/$default-branch/ in workflow Co-authored-by: Andy McKay --- ci/ada.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/ada.yml b/ci/ada.yml index c2d49b8cad..a27902a5ed 100644 --- a/ci/ada.yml +++ b/ci/ada.yml @@ -2,9 +2,9 @@ name: Ada (GNAT) on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: From 0e05d2e2d5f795c3695a9e2fdfde48944cc0d964 Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Mon, 24 Aug 2020 12:52:06 +0200 Subject: [PATCH 226/366] Updated Ada logo (Public Domain) --- icons/ada.svg | 966 ++++++++++++++------------------------------------ 1 file changed, 270 insertions(+), 696 deletions(-) diff --git a/icons/ada.svg b/icons/ada.svg index 4ed301b1d0..6a0d58fa62 100644 --- a/icons/ada.svg +++ b/icons/ada.svg @@ -1,6 +1,4 @@ - - image/svg+xml \ No newline at end of file + id="metadata906">image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 4c50c2463d32257caaf91ef9626f211bad4af424 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Tue, 25 Aug 2020 13:24:46 +0530 Subject: [PATCH 227/366] Update deno.yml --- ci/deno.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/deno.yml b/ci/deno.yml index 210e383a33..178b61f053 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -16,7 +16,7 @@ on: jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS strategy: matrix: @@ -30,9 +30,9 @@ jobs: - name: Setup Deno uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96 with: - deno-version: ${{ matrix.deno }} + deno-version: ${{ matrix.deno }} # tests across multiple Deno versions - - name: Cache Deps + - name: Cache Dependencies run: deno cache deps.ts - name: Run Tests From b54b703ab1ba7a059c372a2e564275a00d2d1356 Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Mon, 31 Aug 2020 16:21:54 -0400 Subject: [PATCH 228/366] Update docker-publish.yml --- ci/docker-publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 76756dbf1e..8dc8ffb1dc 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,12 +50,13 @@ jobs: - 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: Log into GitHub Container Registry + # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` + run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin - - name: Push image + - name: Push image to GitHub Container Registry run: | - IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME + IMAGE_ID=ghcr.io/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') From 01816c2943975be7e9f264ebe410ef0437807c7b Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Mon, 31 Aug 2020 16:40:03 -0400 Subject: [PATCH 229/366] Add in account path part --- ci/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 8dc8ffb1dc..fc5439b517 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -56,7 +56,7 @@ jobs: - name: Push image to GitHub Container Registry run: | - IMAGE_ID=ghcr.io/$IMAGE_NAME + IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') From c6ccc6f6096b82fd27da301202dbed681623bddd Mon Sep 17 00:00:00 2001 From: Cameron Booth Date: Wed, 9 Sep 2020 15:42:40 -0700 Subject: [PATCH 230/366] Update to use the $registry-url() token --- ci/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 861e37239f..b460edca9a 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - registry-url: https://npm.pkg.github.com/ + registry-url: $registry-url(npm) - run: npm ci - run: npm publish env: From 4fc839617b2b52b5adebfd1dd92f40b8bb45e0ae Mon Sep 17 00:00:00 2001 From: Henry Harutyunyan Date: Wed, 16 Sep 2020 14:49:17 +0400 Subject: [PATCH 231/366] 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. --- ci/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/pylint.yml b/ci/pylint.yml index 657b06c165..c16ba223d6 100644 --- a/ci/pylint.yml +++ b/ci/pylint.yml @@ -17,6 +17,6 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint - - name: Test with pytest + - name: Analysing the code with pylint run: | pylint `ls -R|grep .py$|xargs` From 732e5a4fed3a8e52a27674f4c30b872a713ce33c Mon Sep 17 00:00:00 2001 From: Alessandro Date: Thu, 17 Sep 2020 17:11:19 +0200 Subject: [PATCH 232/366] 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) --- ci/gem-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/gem-push.yml b/ci/gem-push.yml index 0724fb16b5..a1edfbc90b 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -39,4 +39,4 @@ jobs: gem build *.gemspec gem push *.gem env: - GEM_HOST_API_KEY: "Bearer ${{secrets.RUBYGEMS_AUTH_TOKEN}}" + GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}" From 545967cef78e8efb389127407a55a49c5a854b24 Mon Sep 17 00:00:00 2001 From: Luca Stocchi Date: Mon, 28 Sep 2020 16:59:32 +0200 Subject: [PATCH 233/366] Add support for OpenShift Action Signed-off-by: Luca Stocchi --- ci/openshift.yml | 48 +++++++++++++++++++++++++ ci/properties/openshift.properties.json | 7 ++++ icons/openshift.svg | 1 + 3 files changed, 56 insertions(+) create mode 100644 ci/openshift.yml create mode 100644 ci/properties/openshift.properties.json create mode 100644 icons/openshift.svg diff --git a/ci/openshift.yml b/ci/openshift.yml new file mode 100644 index 0000000000..ce91015296 --- /dev/null +++ b/ci/openshift.yml @@ -0,0 +1,48 @@ +# This workflow will set up the oc CLI in your GitHub Action workflow and deploy your application to your OpenShift cluster. +# +# This workflow assumes you already have access to an OpenShift cluster. +# For instructions to get started with OpenShift see https://www.openshift.com/try +# +# To configure this workflow: +# +# 1. Set up a secret in your repository named OPENSHIFT_SERVER_URL with the value of your OpenShift server URL. +# +# 2. Set up another secret named API_TOKEN with the value of a valid token to authenticate to OpenShift. +# +# 3. Change the values for the PROJECT and APP_NAME environment variables (below). +# +# For more information on the OpenShift Action, refer to https://github.com/redhat-developer/openshift-actions +name: Build and Deploy to OpenShift +on: + push: + branches: + - master + +# Environment variables available to all jobs and steps in this workflow +env: + PROJECT: myproject + APP_NAME: myapp + +jobs: + build: + name: Setup and Deploy + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + # Set up the oc CLI, authenticate and deploy to OpenShift + - name: Set up oc CLI and deploy to OpenShift + uses: redhat-developer/openshift-actions@v2.1.0 + with: + version: '4.3' + openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_URL }} + parameters: '{"apitoken": "${{ secrets.API_TOKEN }}", "acceptUntrustedCerts": "true"}' + cmd: | + oc project ${PROJECT} + oc new-app ${GITHUB_WORKSPACE} --name ${APP_NAME} + # Expose the service created by using the oc CLI installed previously + - name: Execute additional oc commands + run: | + oc expose svc/${{ env.APP_NAME }} \ No newline at end of file diff --git a/ci/properties/openshift.properties.json b/ci/properties/openshift.properties.json new file mode 100644 index 0000000000..fd5fc0ecd0 --- /dev/null +++ b/ci/properties/openshift.properties.json @@ -0,0 +1,7 @@ +{ + "name": "OpenShift", + "description": "Set up the oc CLI in your GitHub Actions workflow and deploy your application to OpenShift.", + "creator": "Red Hat", + "iconName": "openshift", + "categories": null +} \ No newline at end of file diff --git a/icons/openshift.svg b/icons/openshift.svg new file mode 100644 index 0000000000..85149ff7d7 --- /dev/null +++ b/icons/openshift.svg @@ -0,0 +1 @@ +plugin_icons_0918_RGB_openshift_color \ No newline at end of file From 12319ff7dedc697d5a8418b79cc3be4ae66e6ea4 Mon Sep 17 00:00:00 2001 From: Luca Stocchi Date: Mon, 28 Sep 2020 17:10:57 +0200 Subject: [PATCH 234/366] update branch Signed-off-by: Luca Stocchi --- ci/openshift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/openshift.yml b/ci/openshift.yml index ce91015296..978d3a150d 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -16,7 +16,7 @@ name: Build and Deploy to OpenShift on: push: branches: - - master + - $default-branch # Environment variables available to all jobs and steps in this workflow env: From 7828f6c354919cd7f99e41e5dcc3f25dc70f83c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Oct 2020 17:38:26 +0000 Subject: [PATCH 235/366] 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] --- script/validate-data/package-lock.json | 6 +++--- script/validate-data/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script/validate-data/package-lock.json b/script/validate-data/package-lock.json index 110d23fbba..8839d6ab1e 100644 --- a/script/validate-data/package-lock.json +++ b/script/validate-data/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@actions/core": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.4.tgz", - "integrity": "sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==" + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz", + "integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==" }, "@types/js-yaml": { "version": "3.12.4", diff --git a/script/validate-data/package.json b/script/validate-data/package.json index a2b867d52c..e6403ee20d 100644 --- a/script/validate-data/package.json +++ b/script/validate-data/package.json @@ -14,7 +14,7 @@ "typescript": "^3.9.2" }, "dependencies": { - "@actions/core": "^1.2.4", + "@actions/core": "^1.2.6", "js-yaml": "^3.13.1", "jsonschema": "^1.2.6" } From ca7b1e42d8ade4820c2c94faa383a3b0e6ab22eb Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Thu, 1 Oct 2020 15:06:20 -0400 Subject: [PATCH 236/366] Update stale to most recent version --- automation/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/stale.yml b/automation/stale.yml index 34045177cb..b671fc094c 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v1 + - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Stale issue message' From e24322bcc09a4984b6122c5de97a6aaa8c8fa6a6 Mon Sep 17 00:00:00 2001 From: kszonek Date: Mon, 19 Oct 2020 21:30:11 +0200 Subject: [PATCH 237/366] Fix docs link in cmake CI file --- ci/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index dae54ec2a9..d5217692c3 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -11,7 +11,7 @@ jobs: # 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/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix + # 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: From b1cd56fafaa7d48d19102ac71dfa0e4a4bf8183a Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Mon, 19 Oct 2020 20:26:29 -0400 Subject: [PATCH 238/366] chore: Remove id for go install The ID isn't used in other steps of the script --- ci/go.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/go.yml b/ci/go.yml index 3fa934869a..55316635d2 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -17,7 +17,6 @@ jobs: uses: actions/setup-go@v2 with: go-version: ^1.13 - id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 From fbdaed8a1ce6d81117badbbfe6fb842dded93f07 Mon Sep 17 00:00:00 2001 From: Tang wiki <51043112+abc52090241@users.noreply.github.com> Date: Fri, 23 Oct 2020 05:20:15 +0800 Subject: [PATCH 239/366] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=A8=B1=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 331b241b36..b50625eb63 100644 --- a/LICENSE +++ b/LICENSE @@ -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 From 8d7b3c7bb7014e0553557a3337258297786f47d3 Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Fri, 23 Oct 2020 15:30:48 +0100 Subject: [PATCH 240/366] add code scanning readme --- code-scanning/README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 code-scanning/README.md diff --git a/code-scanning/README.md b/code-scanning/README.md new file mode 100644 index 0000000000..5b910da578 --- /dev/null +++ b/code-scanning/README.md @@ -0,0 +1,4 @@ +# Code Scanning Workflows + +GitHub code scanning is a developer-first, GitHub-native approach to easily find security vulnerabilities before they reach production. Before you can configure code scanning for a repository, you must enable code scanning by adding a GitHub Actions workflow to the repository. For more information, see [Enabling Code Scanning for a repository](/github/finding-security-vulnerabilities-and-errors-in-your-code/enabling-code-scanning-for-a-repository). + From 5699eea8b26807cbe73f3bd9293de111b3a05c1a Mon Sep 17 00:00:00 2001 From: Sheeri Cabral Date: Tue, 27 Oct 2020 12:25:47 -0400 Subject: [PATCH 241/366] 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. --- automation/greetings.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/greetings.yml b/automation/greetings.yml index 28ee6b2f11..cd3ebe2653 100644 --- a/automation/greetings.yml +++ b/automation/greetings.yml @@ -9,5 +9,5 @@ jobs: - 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 pr' + issue-message: 'Message that will be displayed on users' + pr-message: 'Message that will be displayed on users' From fecbb32bb8564fa1ef4b16ca5edb9e28b2793e17 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Tue, 27 Oct 2020 15:44:22 -0700 Subject: [PATCH 242/366] Rename label-close.yml to label-support.yml --- .github/workflows/{label-close.yml => label-support.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{label-close.yml => label-support.yml} (100%) diff --git a/.github/workflows/label-close.yml b/.github/workflows/label-support.yml similarity index 100% rename from .github/workflows/label-close.yml rename to .github/workflows/label-support.yml From d7ac62140faf23b67c29e892d4ce68342eb09609 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Tue, 27 Oct 2020 15:47:43 -0700 Subject: [PATCH 243/366] Create label-feature.yml --- .github/workflows/label-feature.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/label-feature.yml diff --git a/.github/workflows/label-feature.yml b/.github/workflows/label-feature.yml new file mode 100644 index 0000000000..96ac8c1fff --- /dev/null +++ b/.github/workflows/label-feature.yml @@ -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. From f938476d14e4e0b67d0ef855443ef90760d2739b Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Fri, 30 Oct 2020 12:46:33 -0700 Subject: [PATCH 244/366] Update dart.yml --- ci/dart.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/ci/dart.yml b/ci/dart.yml index 6e1b2e3d89..a009d1d08d 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -1,4 +1,4 @@ -name: Dart CI +name: Dart on: push: @@ -8,15 +8,30 @@ on: 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: Install dependencies - run: pub get - - name: Run tests - run: pub run test + - uses: actions/checkout@v2 + + - name: Install package dependencies + run: pub get + + # Comment this step in to verify the use of 'dart format' on each commit. + # - name: Check formatting + # run: dart format --output=none --set-exit-if-changed . + + - name: Analyze code + 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 From 17e1df2111a39afa88818422bfcf7679fd7d5c14 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 2 Nov 2020 09:07:53 -0800 Subject: [PATCH 245/366] Update dart.yml Review comments from @mit-mit. --- ci/dart.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ci/dart.yml b/ci/dart.yml index a009d1d08d..d3ad4f8e12 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -20,18 +20,22 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install package dependencies - run: pub get + - name: dart --version + run: dart --version - # Comment this step in to verify the use of 'dart format' on each commit. - # - name: Check formatting + - name: dart pub get + run: dart pub get + + # Uncomment this step to verify the use of 'dart format' on each commit. + # - name: dart format # run: dart format --output=none --set-exit-if-changed . - - name: Analyze code + # Consider passing '--fatal-infos' for slightly stricter analysis. + - name: dart analyze 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 + - name: dart test run: dart test From e2510e2a621b7406de1d343fcb3efeb4ed48e579 Mon Sep 17 00:00:00 2001 From: Usha N Date: Tue, 3 Nov 2020 18:21:34 +0530 Subject: [PATCH 246/366] 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. --- ci/azure.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/azure.yml b/ci/azure.yml index a638c4cb3e..2678376095 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -5,10 +5,13 @@ # # To configure this workflow: # -# 1. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. +# 1. For Linux apps, add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set it to true in your app. +# For more instructions see: +# +# 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 # -# 2. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below). +# 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 From dfaa4e420b04976270ea2f53f4de37f47aca6175 Mon Sep 17 00:00:00 2001 From: Nemo Xiong Date: Thu, 5 Nov 2020 01:57:31 +0800 Subject: [PATCH 247/366] remove misleading info python-django.* has renamed to django.*, while the doc remains the same --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fdd9bf81aa..6025c5c3ae 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ These are the workflow files for helping people get started with GitHub Actions. 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/properties/python-django.properties.json`. +For example: `ci/django.yml` and `ci/properties/django.properties.json`. **Valid properties:** * `name`: the name shown in onboarding From f75012de65c4d2e22b548521929b053e5c929737 Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Wed, 4 Nov 2020 16:32:58 -0500 Subject: [PATCH 248/366] Revert "Update Publish Docker template to publish to GitHub Container Registry" --- ci/docker-publish.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index fc5439b517..76756dbf1e 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,13 +50,12 @@ jobs: - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - - name: Log into GitHub Container Registry - # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` - run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin + - name: Log into registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - - name: Push image to GitHub Container Registry + - name: Push image run: | - IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME + 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]') From 5aeeb19100f15129efbaa9025bcffcbd1a674e71 Mon Sep 17 00:00:00 2001 From: Usha N Date: Thu, 5 Nov 2020 22:32:30 +0530 Subject: [PATCH 249/366] Update azure.yml --- ci/azure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/azure.yml b/ci/azure.yml index 2678376095..58423811e9 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -5,8 +5,8 @@ # # 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. -# For more instructions see: +# 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 From 33e4b7e557c644fcc918d862907b5753f4d55152 Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Mon, 9 Nov 2020 10:09:50 +0000 Subject: [PATCH 250/366] add codeql workflow --- code-scanning/codeql.yml | 67 +++++++++++++++++++ .../properties/codeql.properties.json | 7 ++ 2 files changed, 74 insertions(+) create mode 100644 code-scanning/codeql.yml create mode 100644 code-scanning/properties/codeql.properties.json diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml new file mode 100644 index 0000000000..09d68efc38 --- /dev/null +++ b/code-scanning/codeql.yml @@ -0,0 +1,67 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + language: [ $detected-codeql-languages ] + # CodeQL supports [ $supported-codeql-languages ] + # Learn more... + # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/code-scanning/properties/codeql.properties.json b/code-scanning/properties/codeql.properties.json new file mode 100644 index 0000000000..cb9305a9a1 --- /dev/null +++ b/code-scanning/properties/codeql.properties.json @@ -0,0 +1,7 @@ +{ + "name": "CodeQL Analysis", + "creator": "GitHub", + "description": "Security analysis from GitHub for C, C++, C#, Java, JavaScript, TypeScript, Python, and Go developers.", + "iconName": "octicon mark-github", + "categories": ["Code Scanning", "C", "C#", "C++", "Go", "Java", "JavaScript", "TypeScript", "Python"] +} From 1e97b0eba71cf363b419bc663212c01e163359e6 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 9 Nov 2020 09:54:52 -0800 Subject: [PATCH 251/366] Update dart.yml Change to sentence fragment case for the step names --- ci/dart.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/dart.yml b/ci/dart.yml index d3ad4f8e12..138921f500 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -20,22 +20,22 @@ jobs: steps: - uses: actions/checkout@v2 - - name: dart --version + - name: Print Dart SDK version run: dart --version - - name: dart pub get + - name: Install dependencies run: dart pub get # Uncomment this step to verify the use of 'dart format' on each commit. - # - name: dart format + # - name: Verify formatting # run: dart format --output=none --set-exit-if-changed . # Consider passing '--fatal-infos' for slightly stricter analysis. - - name: dart analyze + - 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: dart test + - name: Run tests run: dart test From 33c4d0afcb8b5c43c5bead1cfd2b33d149f65d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= Date: Tue, 10 Nov 2020 13:57:09 +0100 Subject: [PATCH 252/366] 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. --- ci/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/python-package.yml b/ci/python-package.yml index c4a1081379..ca1713a5b7 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: ['3.5', '3.6', '3.7', '3.8'] steps: - uses: actions/checkout@v2 From 85739b01da473f4e2b77b53ffefd42338e600dff Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Wed, 11 Nov 2020 09:30:58 +0000 Subject: [PATCH 253/366] update terms and guidelines to account for code scanning workflows --- .github/pull_request_template.md | 11 ++++++----- CONTRIBUTING.md | 8 ++++---- LICENSE | 3 ++- README.md | 1 + 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index e79272cc2a..67a60a7a63 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,4 @@ -This repository contains configuration for what users see when they click on the `Actions` tab. +This repository contains configuration for what users see when they click on the `Actions` tab and the setup page for Code Scanning. It is not: * A playground to try out scripts @@ -6,7 +6,7 @@ It is not: --- -**Please note that we are not accepting new starter workflows at this time. Updates to existing starter workflows are fine.** +**Please note that at this time we are only accepting new starter workflows for Code Scanning. Updates to existing starter workflows are fine.** --- @@ -21,16 +21,17 @@ In the workflow and properties files: - [ ] Include comments in the workflow for any parts that are not obvious or could use clarification. - [ ] 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. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8f9d704a39..c9e8299e73 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ Contributions to this project are [released](https://help.github.com/articles/gi Please note that this project is released with a [Contributor Code of Conduct]( 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 not accepting any new starter workflows** +**At this time we are only accepting new starter workflows for Code Scanning** ### Previous guidelines for new starter workflows. @@ -17,8 +17,8 @@ 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 diff --git a/LICENSE b/LICENSE index 331b241b36..658b9681f6 100644 --- a/LICENSE +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md index 6025c5c3ae..e2766916c4 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ 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). From 500534878c28b83304ed572c7e9df8efa9ce86d8 Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Thu, 12 Nov 2020 12:42:47 +0000 Subject: [PATCH 254/366] update doc link in codeql template --- code-scanning/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 09d68efc38..3e8f95127e 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -30,8 +30,8 @@ jobs: matrix: language: [ $detected-codeql-languages ] # CodeQL supports [ $supported-codeql-languages ] - # Learn more... - # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection + # Learn more: + # https://docs.github.com/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - name: Checkout repository From 44c50acb70a47e6f3179276ba7ff9b7154a015cf Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Fri, 13 Nov 2020 16:33:01 +0000 Subject: [PATCH 255/366] amend link in codeql workflow --- code-scanning/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 3e8f95127e..d88fe52fc2 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -31,7 +31,7 @@ jobs: language: [ $detected-codeql-languages ] # CodeQL supports [ $supported-codeql-languages ] # Learn more: - # https://docs.github.com/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed + # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - name: Checkout repository From 92d9a2c433f151f38f772748f00edc1c037ec92d Mon Sep 17 00:00:00 2001 From: Ben McMorran Date: Fri, 13 Nov 2020 13:51:08 -0800 Subject: [PATCH 256/366] Add MSBuild C/C++ starter workflow --- ci/msbuild.yml | 32 +++++++++++++++++++++++++++ ci/properties/msbuild.properties.json | 6 +++++ 2 files changed, 38 insertions(+) create mode 100644 ci/msbuild.yml create mode 100644 ci/properties/msbuild.properties.json diff --git a/ci/msbuild.yml b/ci/msbuild.yml new file mode 100644 index 0000000000..4a5d3097d7 --- /dev/null +++ b/ci/msbuild.yml @@ -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}} diff --git a/ci/properties/msbuild.properties.json b/ci/properties/msbuild.properties.json new file mode 100644 index 0000000000..b90cad8c97 --- /dev/null +++ b/ci/properties/msbuild.properties.json @@ -0,0 +1,6 @@ +{ + "name": "MSBuild based projects", + "description": "Build a MSBuild based project.", + "iconName": "c-cpp", + "categories": ["C", "C++"] +} \ No newline at end of file From ef7878c3e6b351a5baf052d25ce729e19680902c Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Thu, 19 Nov 2020 14:07:15 -0800 Subject: [PATCH 257/366] Add workflow_dispatch trigger to the default empty workflow --- ci/blank.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/blank.yml b/ci/blank.yml index f7816e9ade..79ba94834b 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -2,14 +2,17 @@ name: CI -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the $default-branch branch +# Controls when the action will run. on: + # Triggers the workflow on push or pull request events but only for the $default-branch branch push: branches: [ $default-branch ] pull_request: branches: [ $default-branch ] + # This allows you to run this workflow manually from the Actions tab + workflow_dispatch: + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" From bfb45aec418510a5b68ad15395694db7907eca58 Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Thu, 19 Nov 2020 14:21:12 -0800 Subject: [PATCH 258/366] Shorten the description --- ci/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/blank.yml b/ci/blank.yml index 79ba94834b..32142871a4 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ $default-branch ] - # This allows you to run this workflow manually from the Actions tab + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel From 94f134c8ff188c9d5f06af1035595c6ceac0f279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Sun, 22 Nov 2020 15:09:18 +0100 Subject: [PATCH 259/366] Enhance CMake starter workflow This enhances and cleans the previous workflow by: - Using the universal cmake commands - Using `${{env.BUILD_TYPE}}` instead of enforcing bash shell - Adding the install and artifact steps --- ci/cmake.yml | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index d5217692c3..79686c45d6 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -17,30 +17,31 @@ jobs: 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 ${{runner.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: ${{runner.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 + # 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 build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build - working-directory: ${{runner.workspace}}/build - shell: bash - # Execute the build. You can specify a specific target with "--target " - run: cmake --build . --config $BUILD_TYPE + # Build your program with the given configuration + run: cmake --build build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{runner.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 + run: ctest -C ${{env.BUILD_TYPE}} + + - name: Install + # This step will install your cmake package to the `install` subdirectory. + # See https://cmake.org/cmake/help/latest/command/install.html + # You probably would want to also take a look at CPack https://cmake.org/cmake/help/latest/module/CPack.html + run: cmake --install build --prefix install + + - name: Upload artifact + # Upload the installed folder. On linux, you'll want to generate a .tar archive to keep permissions for executables. + # See https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files + uses: actions/upload-artifact@v2.2.1 + with: + path: install/* + From ee5512ec2113689cad97602add13382186ef06d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Sun, 22 Nov 2020 15:37:53 +0100 Subject: [PATCH 260/366] Following the latest guidelines for triggers --- ci/cmake.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 79686c45d6..eb57306ef9 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -1,6 +1,10 @@ name: CMake -on: [push] +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) From 0e2cd77dc8a2aa3769619b37929a26765894e87a Mon Sep 17 00:00:00 2001 From: Robert Rosca <32569096+RobertRosca@users.noreply.github.com> Date: Mon, 23 Nov 2020 11:13:06 +0100 Subject: [PATCH 261/366] 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. --- ci/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/python-package.yml b/ci/python-package.yml index c4a1081379..403cecd542 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest + python -m pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | From 64f653a8091f84182b1aa45ce63b0caaddfb94cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=A4bler?= Date: Tue, 24 Nov 2020 21:16:36 +0100 Subject: [PATCH 262/366] Build/Test all go packages Use the "..." pattern to build/test all go packages in a repository. --- ci/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/go.yml b/ci/go.yml index 55316635d2..16bff707ed 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -30,7 +30,7 @@ jobs: fi - name: Build - run: go build -v . + run: go build -v ./... - name: Test - run: go test -v . + run: go test -v ./... From bb39041a6050fc10291f4cb8ee1b9e219e06c162 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Tue, 24 Nov 2020 13:52:32 -0800 Subject: [PATCH 263/366] Create stale.yml --- .github/workflows/stale.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..dc4882ca41 --- /dev/null +++ b/.github/workflows/stale.yml @@ -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 From 1bf4cbdad89451838894259223220d4b57747cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Tue, 24 Nov 2020 22:56:29 +0100 Subject: [PATCH 264/366] CMake: Remove the install and artifact steps for --- ci/cmake.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index eb57306ef9..0a8b093ff2 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -36,16 +36,3 @@ jobs: # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: ctest -C ${{env.BUILD_TYPE}} - - name: Install - # This step will install your cmake package to the `install` subdirectory. - # See https://cmake.org/cmake/help/latest/command/install.html - # You probably would want to also take a look at CPack https://cmake.org/cmake/help/latest/module/CPack.html - run: cmake --install build --prefix install - - - name: Upload artifact - # Upload the installed folder. On linux, you'll want to generate a .tar archive to keep permissions for executables. - # See https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files - uses: actions/upload-artifact@v2.2.1 - with: - path: install/* - From d41b5571e7a9a718ca15705a8e5c2067082ec91b Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Tue, 24 Nov 2020 14:43:12 -0800 Subject: [PATCH 265/366] Add in codeowners for this repo --- CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000000..5c6704e873 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @actions-experience @advanced-security-code-scanning From 6a074bcdf6f6d5eb2301db8984f18a46c10a193a Mon Sep 17 00:00:00 2001 From: Tim Etchells Date: Mon, 30 Nov 2020 11:15:59 -0500 Subject: [PATCH 266/366] Update OpenShift starter with new actions Signed-off-by: Tim Etchells --- ci/openshift.yml | 177 ++++++++++++++++++------ ci/properties/openshift.properties.json | 4 +- 2 files changed, 140 insertions(+), 41 deletions(-) diff --git a/ci/openshift.yml b/ci/openshift.yml index 978d3a150d..23fffaf167 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -1,48 +1,147 @@ -# This workflow will set up the oc CLI in your GitHub Action workflow and deploy your application to your OpenShift cluster. -# -# This workflow assumes you already have access to an OpenShift cluster. -# For instructions to get started with OpenShift see https://www.openshift.com/try -# -# To configure this workflow: -# -# 1. Set up a secret in your repository named OPENSHIFT_SERVER_URL with the value of your OpenShift server URL. -# -# 2. Set up another secret named API_TOKEN with the value of a valid token to authenticate to OpenShift. -# -# 3. Change the values for the PROJECT and APP_NAME environment variables (below). -# -# For more information on the OpenShift Action, refer to https://github.com/redhat-developer/openshift-actions -name: Build and Deploy to OpenShift -on: - push: - branches: - - $default-branch +### 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. -# Environment variables available to all jobs and steps in this workflow +# 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: - PROJECT: myproject - APP_NAME: myapp + # ⬇️ EDIT with your registry and registry path. + REGISTRY: quay.io/ + # ⬇️ EDIT with your registry username. + REGISTRY_USER: + 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: - build: - name: Setup and Deploy - runs-on: ubuntu-latest + openshift-ci-cd: + name: Build and deploy to OpenShift + runs-on: ubuntu-20.04 steps: - - name: Checkout - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + + - name: Determine app name + if: env.APP_NAME == '' + run: | + echo "APP_NAME=$(basename $PWD)" | tee -a $GITHUB_ENV - # Set up the oc CLI, authenticate and deploy to OpenShift - - name: Set up oc CLI and deploy to OpenShift - uses: redhat-developer/openshift-actions@v2.1.0 + - 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: - version: '4.3' - openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_URL }} - parameters: '{"apitoken": "${{ secrets.API_TOKEN }}", "acceptUntrustedCerts": "true"}' - cmd: | - oc project ${PROJECT} - oc new-app ${GITHUB_WORKSPACE} --name ${APP_NAME} - # Expose the service created by using the oc CLI installed previously - - name: Execute additional oc commands + 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: | - oc expose svc/${{ env.APP_NAME }} \ No newline at end of file + [[ -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 }}'\"" diff --git a/ci/properties/openshift.properties.json b/ci/properties/openshift.properties.json index fd5fc0ecd0..7157849d94 100644 --- a/ci/properties/openshift.properties.json +++ b/ci/properties/openshift.properties.json @@ -1,7 +1,7 @@ { "name": "OpenShift", - "description": "Set up the oc CLI in your GitHub Actions workflow and deploy your application to OpenShift.", + "description": "Build a Docker-based project and deploy it to OpenShift.", "creator": "Red Hat", "iconName": "openshift", "categories": null -} \ No newline at end of file +} From 443491da63e168984f7a45dd3697ac5c050ad6fd Mon Sep 17 00:00:00 2001 From: Tim Etchells Date: Mon, 30 Nov 2020 11:17:47 -0500 Subject: [PATCH 267/366] Add GitHub disclaimer Signed-off-by: Tim Etchells --- ci/openshift.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/openshift.yml b/ci/openshift.yml index 23fffaf167..d34131f9d9 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -1,3 +1,8 @@ +# 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 From cfbd40a9c206e07627cde8e1d349cd9be4d78b59 Mon Sep 17 00:00:00 2001 From: Tim Etchells Date: Mon, 30 Nov 2020 13:03:33 -0500 Subject: [PATCH 268/366] Add Dockerfile category to openshift workflow Signed-off-by: Tim Etchells --- ci/properties/openshift.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/openshift.properties.json b/ci/properties/openshift.properties.json index 7157849d94..53538c716e 100644 --- a/ci/properties/openshift.properties.json +++ b/ci/properties/openshift.properties.json @@ -3,5 +3,5 @@ "description": "Build a Docker-based project and deploy it to OpenShift.", "creator": "Red Hat", "iconName": "openshift", - "categories": null + "categories": [ "Dockerfile" ] } From 04faecd24372e954be44e5fe95093292b8282620 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Tue, 1 Dec 2020 13:40:54 -0800 Subject: [PATCH 269/366] 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/ --- ci/ruby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/ruby.yml b/ci/ruby.yml index 7f3bdd6f98..48242ffcc3 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -24,7 +24,7 @@ jobs: # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): # uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 + uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a with: ruby-version: 2.6 - name: Install dependencies From b247fc699838f97b88e11429d29d416ea75eb284 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Fri, 4 Dec 2020 15:45:26 -0500 Subject: [PATCH 270/366] Fix CODEOWNERS (#730) --- CODEOWNERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 5c6704e873..3732a32a40 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1,3 @@ -* @actions-experience @advanced-security-code-scanning +* @actions/actions-experience + +/code-scanning/ @actions/advanced-security-code-scanning From 778f6e55ec4c085609530cab7e80909d6b031b2e Mon Sep 17 00:00:00 2001 From: David A Roberts Date: Sat, 5 Dec 2020 09:30:21 +1000 Subject: [PATCH 271/366] Add conda to system path --- ci/python-package-conda.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ci/python-package-conda.yml b/ci/python-package-conda.yml index 1567e183a6..7bae7e2475 100644 --- a/ci/python-package-conda.yml +++ b/ci/python-package-conda.yml @@ -14,18 +14,21 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.8 - - name: Install dependencies + - name: Add conda to system path run: | # $CONDA is an environment variable pointing to the root of the miniconda directory - $CONDA/bin/conda env update --file environment.yml --name base + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base - name: Lint with flake8 run: | - $CONDA/bin/conda install flake8 + conda install flake8 # stop the build if there are Python syntax errors or undefined names - $CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - $CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | conda install pytest - $CONDA/bin/pytest + pytest From f344c836c9111887b2f5460a631d7a234e0482c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Sat, 5 Dec 2020 16:06:07 +0100 Subject: [PATCH 272/366] CMake: Use ${{runner.workspace}}/build instead of ./build --- ci/cmake.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 0a8b093ff2..569aa86813 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -24,11 +24,11 @@ jobs: - 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 build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -B ${{runner.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build # Build your program with the given configuration - run: cmake --build build --config ${{env.BUILD_TYPE}} + run: cmake --build ${{runner.workspace}}/build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{runner.workspace}}/build From 32294ec2354ba59641daf08817e05d23642bd932 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 7 Dec 2020 10:11:02 -0800 Subject: [PATCH 273/366] add in a person icon --- automation/properties/manual.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/properties/manual.properties.json b/automation/properties/manual.properties.json index f08cbc36c6..1befabec0a 100644 --- a/automation/properties/manual.properties.json +++ b/automation/properties/manual.properties.json @@ -1,6 +1,6 @@ { "name": "Manual workflow", "description": "Simple workflow that is manually triggered.", - "iconName": "blank", + "iconName": "octicon person", "categories": ["Automation"] } From 4dae3bbf12e6818e83374b9862805590f0f80e30 Mon Sep 17 00:00:00 2001 From: Rainer Sigwald Date: Thu, 10 Dec 2020 17:35:47 +0000 Subject: [PATCH 274/366] Update .NET Core branding to .NET Per the branding that .NET 5.0 is the next release after .NET Core 3.1. --- ci/{dotnet-core-desktop.yml => dotnet-desktop.yml} | 0 ci/{dotnet-core.yml => dotnet.yml} | 4 ++-- ci/properties/dotnet-core.properties.json | 6 ------ ...sktop.properties.json => dotnet-desktop.properties.json} | 6 +++--- ci/properties/dotnet.properties.json | 6 ++++++ icons/dotnetcore.svg | 1 - 6 files changed, 11 insertions(+), 12 deletions(-) rename ci/{dotnet-core-desktop.yml => dotnet-desktop.yml} (100%) rename ci/{dotnet-core.yml => dotnet.yml} (91%) delete mode 100644 ci/properties/dotnet-core.properties.json rename ci/properties/{dotnet-core-desktop.properties.json => dotnet-desktop.properties.json} (56%) create mode 100644 ci/properties/dotnet.properties.json delete mode 100644 icons/dotnetcore.svg diff --git a/ci/dotnet-core-desktop.yml b/ci/dotnet-desktop.yml similarity index 100% rename from ci/dotnet-core-desktop.yml rename to ci/dotnet-desktop.yml diff --git a/ci/dotnet-core.yml b/ci/dotnet.yml similarity index 91% rename from ci/dotnet-core.yml rename to ci/dotnet.yml index 9ee1a7d929..4cb32c0a95 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet.yml @@ -1,4 +1,4 @@ -name: .NET Core +name: .NET on: push: @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup .NET Core + - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.301 diff --git a/ci/properties/dotnet-core.properties.json b/ci/properties/dotnet-core.properties.json deleted file mode 100644 index 3386a3d7ee..0000000000 --- a/ci/properties/dotnet-core.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": ".NET Core", - "description": "Build and test a .NET Core or ASP.NET Core project.", - "iconName": "dotnetcore", - "categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] -} diff --git a/ci/properties/dotnet-core-desktop.properties.json b/ci/properties/dotnet-desktop.properties.json similarity index 56% rename from ci/properties/dotnet-core-desktop.properties.json rename to ci/properties/dotnet-desktop.properties.json index 9b2aa353c2..f6e1cb8428 100644 --- a/ci/properties/dotnet-core-desktop.properties.json +++ b/ci/properties/dotnet-desktop.properties.json @@ -1,6 +1,6 @@ { - "name": ".NET Core Desktop", - "description": "Build, test, sign and publish a desktop application built on .NET Core.", - "iconName": "dotnetcore", + "name": ".NET Desktop", + "description": "Build, test, sign and publish a desktop application built on .NET.", + "iconName": "dotnet", "categories": ["C#", "Visual Basic", "WPF", ".NET"] } \ No newline at end of file diff --git a/ci/properties/dotnet.properties.json b/ci/properties/dotnet.properties.json new file mode 100644 index 0000000000..b3feafb9cf --- /dev/null +++ b/ci/properties/dotnet.properties.json @@ -0,0 +1,6 @@ +{ + "name": ".NET", + "description": "Build and test a .NET or ASP.NET Core project.", + "iconName": "dotnet", + "categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] +} diff --git a/icons/dotnetcore.svg b/icons/dotnetcore.svg deleted file mode 100644 index 6d31060b33..0000000000 --- a/icons/dotnetcore.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From b05136d6b3e487fb91fce91c0f3267de1a532efe Mon Sep 17 00:00:00 2001 From: Rainer Sigwald Date: Thu, 10 Dec 2020 17:41:44 +0000 Subject: [PATCH 275/366] Nit: Title restore step with "restore" This is more like how folks generally refer to it in .NET-land. --- ci/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet.yml b/ci/dotnet.yml index 4cb32c0a95..354d2dc0d3 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -17,7 +17,7 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.301 - - name: Install dependencies + - name: Restore dependencies run: dotnet restore - name: Build run: dotnet build --configuration Release --no-restore From 0c4ccab691ac8790d8682218a943e8ffacc8cf97 Mon Sep 17 00:00:00 2001 From: Rainer Sigwald Date: Thu, 10 Dec 2020 17:44:30 +0000 Subject: [PATCH 276/366] Don't specify configuration for dotnet build Since `dotnet test` below didn't specify the Release configuration, it used the default configuration (generally Debug). --- ci/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet.yml b/ci/dotnet.yml index 354d2dc0d3..198096c62a 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -20,6 +20,6 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build --no-restore - name: Test run: dotnet test --no-restore --verbosity normal From 2c1a53ec9376a511d56922f740749cafaeb92f84 Mon Sep 17 00:00:00 2001 From: Rainer Sigwald Date: Thu, 10 Dec 2020 17:42:57 +0000 Subject: [PATCH 277/366] 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. --- ci/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet.yml b/ci/dotnet.yml index 198096c62a..aa0a093cf0 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -22,4 +22,4 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test - run: dotnet test --no-restore --verbosity normal + run: dotnet test --no-build --verbosity normal From a88b31b693bd5c861d974f4e0b0bd79efd9c0633 Mon Sep 17 00:00:00 2001 From: ljing Date: Fri, 11 Dec 2020 22:49:36 +0800 Subject: [PATCH 278/366] 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. --- ci/alibabacloud.yml | 118 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 ci/alibabacloud.yml diff --git a/ci/alibabacloud.yml b/ci/alibabacloud.yml new file mode 100644 index 0000000000..22266134ef --- /dev/null +++ b/ci/alibabacloud.yml @@ -0,0 +1,118 @@ +# 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. +# +# 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 From a921a9e19d1a3e6bf74ec10808dd9ad38bc5a34a Mon Sep 17 00:00:00 2001 From: ljing Date: Fri, 11 Dec 2020 23:02:57 +0800 Subject: [PATCH 279/366] Update alibabacloud.yml --- ci/alibabacloud.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/alibabacloud.yml b/ci/alibabacloud.yml index 22266134ef..5d457d6742 100644 --- a/ci/alibabacloud.yml +++ b/ci/alibabacloud.yml @@ -1,4 +1,4 @@ -# This workflow will build and push a new container image to Alibaba Cloud Container Reigstry (ACR), +# 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: From b3f8b48094362f3348ce6b9906b17bc58f6284cc Mon Sep 17 00:00:00 2001 From: ljing Date: Fri, 11 Dec 2020 23:17:45 +0800 Subject: [PATCH 280/366] Create alibabacloud.properties.json --- alibabacloud.properties.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 alibabacloud.properties.json diff --git a/alibabacloud.properties.json b/alibabacloud.properties.json new file mode 100644 index 0000000000..67de4c18cb --- /dev/null +++ b/alibabacloud.properties.json @@ -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": "acr", + "categories": null +} From 08c2049aede657b06d8e398a0bc0b192cdf0d5bd Mon Sep 17 00:00:00 2001 From: ljing Date: Fri, 11 Dec 2020 23:26:26 +0800 Subject: [PATCH 281/366] Create alibabacloud.properties.json --- ci/properties/alibabacloud.properties.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ci/properties/alibabacloud.properties.json diff --git a/ci/properties/alibabacloud.properties.json b/ci/properties/alibabacloud.properties.json new file mode 100644 index 0000000000..bbee6dfaab --- /dev/null +++ b/ci/properties/alibabacloud.properties.json @@ -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 +} From 90f8fd731d8251d8e803773036ddb9a817623548 Mon Sep 17 00:00:00 2001 From: ljing Date: Fri, 11 Dec 2020 23:39:46 +0800 Subject: [PATCH 282/366] Add icon --- icons/alibabacloud.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 icons/alibabacloud.svg diff --git a/icons/alibabacloud.svg b/icons/alibabacloud.svg new file mode 100644 index 0000000000..c7acdab9ec --- /dev/null +++ b/icons/alibabacloud.svg @@ -0,0 +1 @@ +AlibabacloudLogoGithub \ No newline at end of file From 14547bfc7977a2c28ac1914328643a671778dd7a Mon Sep 17 00:00:00 2001 From: ljing Date: Fri, 11 Dec 2020 23:40:14 +0800 Subject: [PATCH 283/366] Delete alibabacloud.properties.json --- alibabacloud.properties.json | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 alibabacloud.properties.json diff --git a/alibabacloud.properties.json b/alibabacloud.properties.json deleted file mode 100644 index 67de4c18cb..0000000000 --- a/alibabacloud.properties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Deploy to Alibaba Cloud ACK", - "description": "Deploy a container to Alibaba Cloud Container Service for Kubernetes (ACK).", - "creator": "Alibaba Cloud", - "iconName": "acr", - "categories": null -} From 14acff1f1ef8faf0b93e11598757206f04d9bfc5 Mon Sep 17 00:00:00 2001 From: Bharath KKB Date: Mon, 14 Dec 2020 18:38:42 -0600 Subject: [PATCH 284/366] fix: switch to new google actions org --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index b9313b25a0..3d7f9f5266 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -33,7 +33,7 @@ jobs: uses: actions/checkout@v2 # Setup gcloud CLI - - uses: GoogleCloudPlatform/github-actions/setup-gcloud@0.1.3 + - uses: google-github-actions/setup-gcloud@v0.2.0 with: service_account_key: ${{ secrets.GKE_SA_KEY }} project_id: ${{ secrets.GKE_PROJECT }} From c5e7bc70b545461c00a7e17980d939e3dd81cbca Mon Sep 17 00:00:00 2001 From: Bharath KKB Date: Mon, 14 Dec 2020 18:49:58 -0600 Subject: [PATCH 285/366] use GKE action for credentials --- ci/google.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index 3d7f9f5266..0a53cfd8aa 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -8,7 +8,7 @@ # # 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/GoogleCloudPlatform/github-actions/tree/master/example-workflows/gke +# 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 @@ -44,8 +44,11 @@ jobs: gcloud --quiet auth configure-docker # Get the GKE credentials so we can deploy to the cluster - - run: |- - gcloud container clusters get-credentials "$GKE_CLUSTER" --zone "$GKE_ZONE" + - uses: google-github-actions/get-gke-credentials@v0.2.1 + with: + cluster_name: ${{ secrets.GKE_PROJECT }} + location: ${{ env.GKE_ZONE }} + credentials: ${{ secrets.GKE_SA_KEY }} # Build the Docker image - name: Build From ab930e94bfd8f9196962625bf69b8c406bae15c1 Mon Sep 17 00:00:00 2001 From: Bharath KKB Date: Mon, 14 Dec 2020 18:59:18 -0600 Subject: [PATCH 286/366] fix cluster var --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index 0a53cfd8aa..cc3cffb3a8 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -46,7 +46,7 @@ jobs: # Get the GKE credentials so we can deploy to the cluster - uses: google-github-actions/get-gke-credentials@v0.2.1 with: - cluster_name: ${{ secrets.GKE_PROJECT }} + cluster_name: ${{ env.GKE_CLUSTER }} location: ${{ env.GKE_ZONE }} credentials: ${{ secrets.GKE_SA_KEY }} From 038c492e5dcbab0b022a022f820754565ff8b23a Mon Sep 17 00:00:00 2001 From: Bikram Lama Date: Thu, 17 Dec 2020 01:57:39 +0545 Subject: [PATCH 287/366] Added PHP version (default 8.0) --- ci/laravel.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/laravel.yml b/ci/laravel.yml index b32ad881b8..5f9454cdcb 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -12,6 +12,9 @@ jobs: runs-on: ubuntu-latest steps: + - uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' - uses: actions/checkout@v2 - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" From 916f29234a96c38a81bc253deed12d8d0904f35b Mon Sep 17 00:00:00 2001 From: Yashovardhan Dhanania Date: Sat, 19 Dec 2020 01:31:28 +0530 Subject: [PATCH 288/366] 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 --- ci/android.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/android.yml b/ci/android.yml index c88c515ea9..6954a616dd 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -17,5 +17,7 @@ jobs: 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 From 1611798954e4c1ceda5e9e17e8ffaa30b436fe04 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 18 Dec 2020 12:54:48 -0800 Subject: [PATCH 289/366] Update ci/laravel.yml --- ci/laravel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/laravel.yml b/ci/laravel.yml index 5f9454cdcb..d54921e445 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@v2 + - uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8 with: php-version: '8.0' - uses: actions/checkout@v2 From f9cb2aceea8109a06d08f57d70a55b473af28203 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sat, 2 Jan 2021 16:06:19 -0500 Subject: [PATCH 290/366] haskell: ghc 8.10 and cabal 3.2 Signed-off-by: Rui Chen --- ci/haskell.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/haskell.yml b/ci/haskell.yml index 4c9a50c3d6..c1d7dc7aeb 100644 --- a/ci/haskell.yml +++ b/ci/haskell.yml @@ -15,8 +15,8 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-haskell@v1 with: - ghc-version: '8.8.2' - cabal-version: '3.0' + ghc-version: '8.10.3' + cabal-version: '3.2' - name: Cache uses: actions/cache@v1 From d5de0a136a5d4aa6ea93abebb62aac9180c087c0 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sat, 2 Jan 2021 16:24:13 -0500 Subject: [PATCH 291/366] python: include python 3.9 for the build --- ci/django.yml | 2 +- ci/python-app.yml | 4 ++-- ci/python-package.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/django.yml b/ci/django.yml index 6ed9db830e..dbde2666b0 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -13,7 +13,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.6, 3.7, 3.8] + python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 diff --git a/ci/python-app.yml b/ci/python-app.yml index 3b3e6a6a78..f6ad69af7b 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/ci/python-package.yml b/ci/python-package.yml index d2278f2788..c88f6ce375 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.5', '3.6', '3.7', '3.8'] + python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 From ebda693bc06206f7a6706a7c8c786b9ca5e6e4b6 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Mon, 4 Jan 2021 11:16:33 -0500 Subject: [PATCH 292/366] Add every version of Node.js that is supported upstream (#754) --- ci/node.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index ce0cdcfd8e..632c1a6daa 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -16,7 +16,8 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.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@v2 From f631f1f2a9b6c0f3bb7257185e0c0933752bcdf4 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 4 Jan 2021 08:40:18 -0800 Subject: [PATCH 293/366] Update automation/greetings.yml --- automation/greetings.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/greetings.yml b/automation/greetings.yml index cd3ebe2653..ebb00a05c8 100644 --- a/automation/greetings.yml +++ b/automation/greetings.yml @@ -9,5 +9,5 @@ jobs: - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: 'Message that will be displayed on users' - pr-message: 'Message that will be displayed on users' + issue-message: 'Message that will be displayed on users first issue' + pr-message: 'Message that will be displayed on users first pull request' From 3b047441fd7e7d50e58d19406cc54e5f5b90ff21 Mon Sep 17 00:00:00 2001 From: Jan Jurzitza Date: Mon, 4 Jan 2021 19:44:59 +0100 Subject: [PATCH 294/366] 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 Co-authored-by: Josh Gross --- ci/d.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/d.yml b/ci/d.yml index 8ee1d1cd6f..6086681203 100644 --- a/ci/d.yml +++ b/ci/d.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: dlang-community/setup-dlang@7c3e57bdc1ff2d8994f00e61b3ef400e67d2d7ac + - uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7 - name: 'Build & Test' run: | From c17ea6bad7d675a25e8b97bf8c790f8c01b814ce Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Mon, 4 Jan 2021 18:52:34 +0000 Subject: [PATCH 295/366] fix context references in cmake template (#762) Co-authored-by: Josh Gross --- ci/cmake.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index d5217692c3..005915e6e8 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -20,26 +20,26 @@ jobs: - 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 ${{runner.workspace}}/build + 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: ${{runner.workspace}}/build + 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: ${{runner.workspace}}/build + working-directory: ${{github.workspace}}/build shell: bash # Execute the build. You can specify a specific target with "--target " run: cmake --build . --config $BUILD_TYPE - name: Test - working-directory: ${{runner.workspace}}/build + 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 From d644b9852c31e860b279bea858a6ac4f9d1ae17a Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 4 Jan 2021 21:24:14 +0100 Subject: [PATCH 296/366] 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 --- ci/ruby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/ruby.yml b/ci/ruby.yml index 48242ffcc3..036ba705a0 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -24,7 +24,7 @@ jobs: # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): # uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a + uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e with: ruby-version: 2.6 - name: Install dependencies From d36b72e889fbfca6d7049d03d113a8ae5975eab0 Mon Sep 17 00:00:00 2001 From: chenrui Date: Tue, 5 Jan 2021 11:11:06 -0500 Subject: [PATCH 297/366] 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 --- ci/ruby.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/ruby.yml b/ci/ruby.yml index 036ba705a0..f6ae1e3573 100644 --- a/ci/ruby.yml +++ b/ci/ruby.yml @@ -17,6 +17,9 @@ jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.6', '2.7', '3.0'] steps: - uses: actions/checkout@v2 @@ -26,8 +29,7 @@ jobs: # uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e with: - ruby-version: 2.6 - - name: Install dependencies - run: bundle install + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests run: bundle exec rake From ef1224c2841f7d5b2406861ee4cefba3060dee0f Mon Sep 17 00:00:00 2001 From: chenrui Date: Tue, 5 Jan 2021 11:47:18 -0500 Subject: [PATCH 298/366] go: update starter (#768) Signed-off-by: Rui Chen Co-authored-by: Josh Gross --- ci/go.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/ci/go.yml b/ci/go.yml index 16bff707ed..bcf4489be4 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -9,25 +9,14 @@ on: jobs: build: - name: Build runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 - - name: Set up Go 1.x + - name: Set up Go uses: actions/setup-go@v2 with: - go-version: ^1.13 - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi + go-version: 1.15 - name: Build run: go build -v ./... From b6f43960efe5966477724f236f28cb1fecc74b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Thu, 7 Jan 2021 08:01:43 +0100 Subject: [PATCH 299/366] Fix context references runner.workspace => github.workspace Co-authored-by: Josh Gross --- ci/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 569aa86813..58614a5679 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -24,7 +24,7 @@ jobs: - 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 ${{runner.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build # Build your program with the given configuration From 4978051373fa50aa592c1b3c455cbd0f3eb1cde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Thu, 7 Jan 2021 08:01:58 +0100 Subject: [PATCH 300/366] runner.workspace => github.workspace Co-authored-by: Josh Gross --- ci/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 58614a5679..d251d2e60d 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -28,7 +28,7 @@ jobs: - name: Build # Build your program with the given configuration - run: cmake --build ${{runner.workspace}}/build --config ${{env.BUILD_TYPE}} + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{runner.workspace}}/build From b20b76eb795a7c869d4c2a1adf166d10448ec758 Mon Sep 17 00:00:00 2001 From: arnu515 <52203828+arnu515@users.noreply.github.com> Date: Thu, 7 Jan 2021 21:16:24 +0530 Subject: [PATCH 301/366] Fix grammar error (#773) In the comment on line `1`, it says "This workflows", but I think that "This workflow" makes more sense. --- ci/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/python-publish.yml b/ci/python-publish.yml index 4e1ef42d2b..1a03a7b6c4 100644 --- a/ci/python-publish.yml +++ b/ci/python-publish.yml @@ -1,4 +1,4 @@ -# This workflows will upload a Python Package using Twine when a release is created +# This workflow will upload a Python Package using Twine when a release is created # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries name: Upload Python Package From 5760418d4f378a531680d729f4bf0b73eea45822 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Fri, 15 Jan 2021 21:20:42 +0100 Subject: [PATCH 302/366] dotnet-Workflows: Use latest channel version (#723) * Use latest channel-version * Use latest channel-version --- ci/dotnet-desktop.yml | 2 +- ci/dotnet.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/dotnet-desktop.yml b/ci/dotnet-desktop.yml index 480be78aae..25af73637f 100644 --- a/ci/dotnet-desktop.yml +++ b/ci/dotnet-desktop.yml @@ -71,7 +71,7 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 5.0.x # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe diff --git a/ci/dotnet.yml b/ci/dotnet.yml index aa0a093cf0..c31cf6857f 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.301 + dotnet-version: 5.0.x - name: Restore dependencies run: dotnet restore - name: Build From c59b62dee0eae1f9f368b7011cf05c2fc42cf084 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 20 Jan 2021 11:34:18 -0500 Subject: [PATCH 303/366] Adding new environment tag (#784) --- ci/azure.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/azure.yml b/ci/azure.yml index 58423811e9..407923781b 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -28,6 +28,7 @@ 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 }} From 950da0156827e3d0c607a7413e73d580126cd7dc Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Thu, 11 Feb 2021 16:13:49 -0600 Subject: [PATCH 304/366] Add emphasis to acceptance criteria --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 67a60a7a63..ebd66ad24e 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,7 +6,7 @@ It is not: --- -**Please note that at this time we are only accepting new starter workflows for Code Scanning. Updates to existing starter workflows are fine.** +### **Please note that at this time we are only accepting new starter workflows for Code Scanning. Updates to existing starter workflows are fine.** --- From 06274ce3304986be463fb8c2298049af793674bf Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Thu, 11 Feb 2021 17:50:08 -0600 Subject: [PATCH 305/366] Add comments around general guidance So that they are only visible to the PR author --- .github/pull_request_template.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index ebd66ad24e..5e5859c34b 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,8 +1,13 @@ + + --- From 0e973208b84d14b88eb1b1ef8e8ed1e71b4ea3de Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Thu, 11 Feb 2021 17:51:24 -0600 Subject: [PATCH 306/366] Add pre-requisites section --- .github/pull_request_template.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 5e5859c34b..f80e4f1ad1 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -8,6 +8,9 @@ It is not: * A place for you to create a workflow for your repository --> +## Pre-requisites + +- [ ] Prior to submitting a new workflow, please apply to join the GitHub Technology Partner Program: [partner.github.com/apply](https://partner.github.com/apply?partnershipType=Technology+Partner). --- From cdcc451eadcac85a9f017f05b2658c25ccfa0f8e Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Thu, 11 Feb 2021 17:54:56 -0600 Subject: [PATCH 307/366] Add separate sections based on workflow type --- .github/pull_request_template.md | 34 +++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f80e4f1ad1..60ddcd7560 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -18,23 +18,33 @@ It is not: --- -In the workflow and properties files: +## Tasks -- [ ] The workflow filename of CI workflows should be the name of the language or platform, in lower case. Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET"). +**For _all_ workflows, the workflow:** - The workflow filename of publishing workflows should be the name of the language or platform, in lower case, followed by "-publish". -- [ ] Includes a matching `ci/properties/*.properties.json` file. -- [ ] 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: [ $default-branch ]` and `pull_request` to `branches: [ $default-branch ]`. +- [ ] Should be contained in a file having the name of the language or platform, in lower, [_kebab-cased_](https://en.wikipedia.org/wiki/Kebab_case) format. Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET"). +- [ ] Should use sentence case for the names of workflows and steps (for example, "Run tests"). +- [ ] Should be named _only_ by the name of the language or platform (for example, "Go", not "Go CI" or "Go Build") +- [ ] Should include comments in the workflow for any parts that are not obvious or could use clarification. + +**For _CI_ workflows, the workflow:** + +- [ ] Should be preserved under [the `ci` directory](https://github.com/actions/starter-workflows/tree/main/ci) +- [ ] Should include a matching `ci/properties/*.properties.json` file (for example, [`ci/properties/docker-publish.properties.json`](https://github.com/actions/starter-workflows/blob/main/ci/properties/docker-publish.properties.json)). +- [ ] 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`. +- [ ] Publishing workflows should have a filename that is the name of the language or platform, in lower case, followed by "-publish" (for example, [`docker-publish.yml`](https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml)). + +**For _Code Scanning_ workflows, the workflow:** + +- [ ] Should be preserved under [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/ci) +- [ ] Should include a matching `code-scanning/properties/*.properties.json` file. +- [ ] 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` (for example, [`codeql.yml`](https://github.com/actions/starter-workflows/blob/c59b62dee0eae1f9f368b7011cf05c2fc42cf084/code-scanning/codeql.yml#L14-L21)). -Some general notes: +**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). 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 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). 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 From 14be8c2b5a8b7c56b0400d841f705234487214eb Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Thu, 11 Feb 2021 17:55:44 -0600 Subject: [PATCH 308/366] Ensure consistent line-endings --- .github/pull_request_template.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 60ddcd7560..3eb7bcf1a5 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -24,12 +24,12 @@ It is not: - [ ] Should be contained in a file having the name of the language or platform, in lower, [_kebab-cased_](https://en.wikipedia.org/wiki/Kebab_case) format. Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET"). - [ ] Should use sentence case for the names of workflows and steps (for example, "Run tests"). -- [ ] Should be named _only_ by the name of the language or platform (for example, "Go", not "Go CI" or "Go Build") +- [ ] Should be named _only_ by the name of the language or platform (for example, "Go", not "Go CI" or "Go Build"). - [ ] Should include comments in the workflow for any parts that are not obvious or could use clarification. **For _CI_ workflows, the workflow:** -- [ ] Should be preserved under [the `ci` directory](https://github.com/actions/starter-workflows/tree/main/ci) +- [ ] Should be preserved under [the `ci` directory](https://github.com/actions/starter-workflows/tree/main/ci). - [ ] Should include a matching `ci/properties/*.properties.json` file (for example, [`ci/properties/docker-publish.properties.json`](https://github.com/actions/starter-workflows/blob/main/ci/properties/docker-publish.properties.json)). - [ ] Should run on `push` to `branches: [ $default-branch ]` and `pull_request` to `branches: [ $default-branch ]`. - [ ] Packaging workflows should run on `release` with `types: [ created ]`. @@ -37,7 +37,7 @@ It is not: **For _Code Scanning_ workflows, the workflow:** -- [ ] Should be preserved under [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/ci) +- [ ] Should be preserved under [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/ci). - [ ] Should include a matching `code-scanning/properties/*.properties.json` file. - [ ] 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` (for example, [`codeql.yml`](https://github.com/actions/starter-workflows/blob/c59b62dee0eae1f9f368b7011cf05c2fc42cf084/code-scanning/codeql.yml#L14-L21)). From 23285c07c690607f52471713592e171626c14022 Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Thu, 11 Feb 2021 17:59:41 -0600 Subject: [PATCH 309/366] Add kebab-case example --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3eb7bcf1a5..3c45890def 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -22,7 +22,7 @@ It is not: **For _all_ workflows, the workflow:** -- [ ] Should be contained in a file having the name of the language or platform, in lower, [_kebab-cased_](https://en.wikipedia.org/wiki/Kebab_case) format. Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET"). +- [ ] Should be contained in a `.yml` file with the language or platform as its filename, in lower, [_kebab-cased_](https://en.wikipedia.org/wiki/Kebab_case) format (for example, [`docker-image.yml`](https://github.com/actions/starter-workflows/blob/main/ci/docker-image.yml)). Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET"). - [ ] Should use sentence case for the names of workflows and steps (for example, "Run tests"). - [ ] Should be named _only_ by the name of the language or platform (for example, "Go", not "Go CI" or "Go Build"). - [ ] Should include comments in the workflow for any parts that are not obvious or could use clarification. From f089b6db62c3e01d471902405d2bac8c1ba5befa Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Thu, 11 Feb 2021 18:08:32 -0600 Subject: [PATCH 310/366] Add code scanning instructions for properties.json file --- .github/pull_request_template.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3c45890def..db8f48418a 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -38,7 +38,12 @@ It is not: **For _Code Scanning_ workflows, the workflow:** - [ ] Should be preserved under [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/ci). -- [ ] Should include a matching `code-scanning/properties/*.properties.json` file. +- [ ] Should include a matching `code-scanning/properties/*.properties.json` file, with properties set as follows: + - [ ] `name`: Name of the Code Scanning integration. + - [ ] `organization`: Name of the organization producing the Code Scanning integration. + - [ ] `description`: Short description of the Code Scanning integration. + - [ ] `languages`: Array of languages supported by the Code Scanning integration. + - [ ] `iconName`: Name of the SVG logo representing the Code Scanning integration. This SVG logo must be present in [the `icons` directory](https://github.com/actions/starter-workflows/tree/main/icons). - [ ] 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` (for example, [`codeql.yml`](https://github.com/actions/starter-workflows/blob/c59b62dee0eae1f9f368b7011cf05c2fc42cf084/code-scanning/codeql.yml#L14-L21)). **Some general notes:** From 26b35f5776f1339679a6cf7cfba528227f752370 Mon Sep 17 00:00:00 2001 From: Bharath KKB Date: Sat, 13 Feb 2021 13:39:55 -0600 Subject: [PATCH 311/366] feat: Add new GitHub env tag --- ci/google.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/google.yml b/ci/google.yml index cc3cffb3a8..5e803edba5 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -27,6 +27,7 @@ jobs: setup-build-publish-deploy: name: Setup, Build, Publish, and Deploy runs-on: ubuntu-latest + environment: production steps: - name: Checkout From e0e30a049072e5faa350a978ca488946590534f9 Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Tue, 16 Feb 2021 10:53:00 -0600 Subject: [PATCH 312/366] Add link to codeql.properties.json as example --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index db8f48418a..f7775f6ea7 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -38,7 +38,7 @@ It is not: **For _Code Scanning_ workflows, the workflow:** - [ ] Should be preserved under [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/ci). -- [ ] Should include a matching `code-scanning/properties/*.properties.json` file, with properties set as follows: +- [ ] Should include a matching `code-scanning/properties/*.properties.json` file (for example, [`code-scanning/properties/codeql.properties.json`](https://github.com/actions/starter-workflows/blob/main/code-scanning/properties/codeql.properties.json)), with properties set as follows: - [ ] `name`: Name of the Code Scanning integration. - [ ] `organization`: Name of the organization producing the Code Scanning integration. - [ ] `description`: Short description of the Code Scanning integration. From 9786331c771877627fc201a98cd8cba0cb89b1a4 Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Tue, 16 Feb 2021 10:53:36 -0600 Subject: [PATCH 313/366] Remove languages in favor of categories --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f7775f6ea7..3ca40ef491 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -42,7 +42,7 @@ It is not: - [ ] `name`: Name of the Code Scanning integration. - [ ] `organization`: Name of the organization producing the Code Scanning integration. - [ ] `description`: Short description of the Code Scanning integration. - - [ ] `languages`: Array of languages supported by the Code Scanning integration. + - [ ] `categories`: Array of languages supported by the Code Scanning integration. - [ ] `iconName`: Name of the SVG logo representing the Code Scanning integration. This SVG logo must be present in [the `icons` directory](https://github.com/actions/starter-workflows/tree/main/icons). - [ ] 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` (for example, [`codeql.yml`](https://github.com/actions/starter-workflows/blob/c59b62dee0eae1f9f368b7011cf05c2fc42cf084/code-scanning/codeql.yml#L14-L21)). From ccc4742cb31514684de92f7f779c680aaf076ad5 Mon Sep 17 00:00:00 2001 From: Steve Winton Date: Tue, 16 Feb 2021 10:56:46 -0600 Subject: [PATCH 314/366] Require 40 character SHA of referenced actions Co-authored-by: Andy McKay --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3ca40ef491..6494e8d2b4 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -49,7 +49,7 @@ It is not: **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). 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 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 require 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 From 97a0ce792527c32b1a0a1e006bfec65ac6227c8c Mon Sep 17 00:00:00 2001 From: Manuel Zubieta Date: Wed, 24 Feb 2021 09:13:54 -0600 Subject: [PATCH 315/366] actions/setup-elixir now lives under erlef GH Org github.com/actions/setup-elixir is no longer maintained and now suggests using github.com/erlef/setup-elixir This should be updated to help new Github Actions users to use the supported action. --- ci/elixir.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 76dd26d00b..ddeba6396f 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Elixir - uses: actions/setup-elixir@v1 + uses: erlef/setup-elixir@v1 with: elixir-version: '1.10.3' # Define the elixir version [required] otp-version: '22.3' # Define the OTP version [required] From 3cf906bc1bf47f7da3fafe67423b374774389ee2 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Fri, 26 Feb 2021 23:25:23 +0100 Subject: [PATCH 316/366] Update dart.yml (#820) * Update dart.yml Update Dart starter workflow to use `setup-dart` from the Dart team. This enables testing on more operating systems (Linux, Windows, and macOS), and offers more control over the Dart SDK version to test with. * Update dart.yml Add required disclaimer * Update ci/dart.yml Co-authored-by: Josh Gross Co-authored-by: Josh Gross --- ci/dart.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ci/dart.yml b/ci/dart.yml index 138921f500..7486577484 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -1,3 +1,8 @@ +# 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: Dart on: @@ -10,18 +15,14 @@ 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 + # Note: This workflow uses the latest stable version of the Dart SDK. + # You can specify other versions if desired, see documentation here: + # https://github.com/dart-lang/setup-dart/blob/main/README.md + # - uses: dart-lang/setup-dart@v1 + - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 - name: Install dependencies run: dart pub get From db576e4bf486f3f0592e3d5ed45bcae36d8fa3e5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 26 Feb 2021 23:31:13 +0100 Subject: [PATCH 317/366] Make the validation strict by default (#824) Co-authored-by: Josh Gross --- ci/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/php.yml b/ci/php.yml index 5053b43d44..f811a18d8d 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v2 - name: Validate composer.json and composer.lock - run: composer validate + run: composer validate --strict - name: Cache Composer packages id: composer-cache From a1152703407cf97bb8e3cb39eeb909649f69fa02 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 26 Feb 2021 23:34:09 +0100 Subject: [PATCH 318/366] Always run composer install even if the vendor dir was restored (#825) Co-authored-by: Josh Gross --- ci/php.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/php.yml b/ci/php.yml index f811a18d8d..e1dceefb65 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -27,7 +27,6 @@ jobs: ${{ runner.os }}-php- - name: Install dependencies - 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" From ce889525cc7fd3a56964e5873804bf178349be53 Mon Sep 17 00:00:00 2001 From: AlyonaSviridenko Date: Tue, 2 Mar 2021 18:43:44 +0300 Subject: [PATCH 319/366] updated workflows with new version of setup-java --- ci/android.yml | 8 +++++--- ci/ant.yml | 7 ++++--- ci/gradle-publish.yml | 9 +++++---- ci/gradle.yml | 7 ++++--- ci/maven-publish.yml | 9 +++++---- ci/maven.yml | 7 ++++--- ci/scala.yml | 7 ++++--- 7 files changed, 31 insertions(+), 23 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 6954a616dd..3edebb5efc 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -13,10 +13,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: set up JDK 1.8 - uses: actions/setup-java@v1 + - name: set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adoptium' + - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle diff --git a/ci/ant.yml b/ci/ant.yml index 28fe6d0529..8b8a5bae75 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -16,9 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adoptium' - name: Build with Ant run: ant -noinput -buildfile build.xml diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index cec487ecc5..2faa3aa15c 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -1,5 +1,5 @@ # 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 +# For more information see: https://github.com/actions/setup-java/docs/advanced-usage.md#Publishing-using-gradle name: Gradle Package @@ -14,10 +14,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adoptium' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/ci/gradle.yml b/ci/gradle.yml index 4550f5880d..6ffdc6a413 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -16,10 +16,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adoptium' - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index fb1c7eec77..831b54b1de 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -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#apache-maven-with-a-settings-path +# For more information see: https://github.com/actions/setup-java/docs/advanced-usage.md#apache-maven-with-a-settings-path name: Maven Package @@ -14,10 +14,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adoptium' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/ci/maven.yml b/ci/maven.yml index a46556ab3b..005184b335 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -16,9 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adoptium' - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/ci/scala.yml b/ci/scala.yml index 96bfc70de1..e650d8a28d 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -13,9 +13,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adoptium' - name: Run tests run: sbt test From 559fd976e283ae4e9868ae91407f646da7d6fadd Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Fri, 5 Mar 2021 09:32:54 -0500 Subject: [PATCH 320/366] Update alibabacloud.yml --- ci/alibabacloud.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/alibabacloud.yml b/ci/alibabacloud.yml index 5d457d6742..82e7dc0bae 100644 --- a/ci/alibabacloud.yml +++ b/ci/alibabacloud.yml @@ -16,6 +16,9 @@ # # 4. Change the values for the REGION_ID, REGISTRY, NAMESPACE, IMAGE, ACK_CLUSTER_ID, and ACK_DEPLOYMENT_NAME. # +# 5. Create an environment named "production". +# For instructions see https://docs.github.com/en/actions/reference/environments#creating-an-environment. +# name: Build and Deploy to ACK @@ -42,6 +45,7 @@ env: jobs: build: runs-on: ubuntu-latest + environment: production steps: - name: Checkout From c451f7ec4794b5f8fbf264bfdbd530a77fe12cdc Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Fri, 5 Mar 2021 09:34:17 -0500 Subject: [PATCH 321/366] Update aws.yml --- ci/aws.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/aws.yml b/ci/aws.yml index 40094ae9be..a3defb3ff8 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -22,6 +22,9 @@ # 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. +# +# 5. Create an environment named "production". +# For instructions see https://docs.github.com/en/actions/reference/environments#creating-an-environment. on: release: @@ -33,6 +36,7 @@ jobs: deploy: name: Deploy runs-on: ubuntu-latest + environment: production steps: - name: Checkout @@ -77,4 +81,4 @@ jobs: task-definition: ${{ steps.task-def.outputs.task-definition }} service: sample-app-service cluster: default - wait-for-service-stability: true \ No newline at end of file + wait-for-service-stability: true From 761b09ecde3c6f9772a9b38b86beeccf8e7c7bc0 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Fri, 5 Mar 2021 09:44:31 -0500 Subject: [PATCH 322/366] add production environment --- ci/alibabacloud.yml | 3 --- ci/aws.yml | 3 --- ci/ibm.yml | 1 + ci/openshift.yml | 1 + ci/tencent.yml | 1 + ci/terraform.yml | 1 + 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/alibabacloud.yml b/ci/alibabacloud.yml index 82e7dc0bae..9ccc0333b9 100644 --- a/ci/alibabacloud.yml +++ b/ci/alibabacloud.yml @@ -16,9 +16,6 @@ # # 4. Change the values for the REGION_ID, REGISTRY, NAMESPACE, IMAGE, ACK_CLUSTER_ID, and ACK_DEPLOYMENT_NAME. # -# 5. Create an environment named "production". -# For instructions see https://docs.github.com/en/actions/reference/environments#creating-an-environment. -# name: Build and Deploy to ACK diff --git a/ci/aws.yml b/ci/aws.yml index a3defb3ff8..8b10116fa0 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -22,9 +22,6 @@ # 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. -# -# 5. Create an environment named "production". -# For instructions see https://docs.github.com/en/actions/reference/environments#creating-an-environment. on: release: diff --git a/ci/ibm.yml b/ci/ibm.yml index 8af050f364..a8502cdd0c 100644 --- a/ci/ibm.yml +++ b/ci/ibm.yml @@ -28,6 +28,7 @@ jobs: setup-build-publish-deploy: name: Setup, Build, Publish, and Deploy runs-on: ubuntu-latest + environment: production steps: - name: Checkout diff --git a/ci/openshift.yml b/ci/openshift.yml index d34131f9d9..8a4875decd 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -64,6 +64,7 @@ jobs: openshift-ci-cd: name: Build and deploy to OpenShift runs-on: ubuntu-20.04 + environment: production steps: - uses: actions/checkout@v2 diff --git a/ci/tencent.yml b/ci/tencent.yml index 2d4ad039aa..1a059a6d09 100644 --- a/ci/tencent.yml +++ b/ci/tencent.yml @@ -30,6 +30,7 @@ jobs: setup-build-publish-deploy: name: Setup, Build, Publish, and Deploy runs-on: ubuntu-latest + environment: production steps: - name: Checkout diff --git a/ci/terraform.yml b/ci/terraform.yml index e6cf027b40..589f1f30fc 100644 --- a/ci/terraform.yml +++ b/ci/terraform.yml @@ -54,6 +54,7 @@ jobs: terraform: name: 'Terraform' runs-on: ubuntu-latest + environment: production # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest defaults: From a29df688f22c2a9c68c82771eb37b952a2ac3277 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Fri, 5 Mar 2021 10:04:52 -0500 Subject: [PATCH 323/366] Update ci/elixir.yml Co-authored-by: Andy McKay --- ci/elixir.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index ddeba6396f..e53e9a02e1 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -15,7 +15,8 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Elixir - uses: erlef/setup-elixir@v1 + uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24 + with: elixir-version: '1.10.3' # Define the elixir version [required] otp-version: '22.3' # Define the OTP version [required] From 3116545da6eafa440789b987092574461d7d9c8f Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Fri, 5 Mar 2021 11:43:49 -0500 Subject: [PATCH 324/366] Remove extra line in Elixir workflow (#831) --- ci/elixir.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index e53e9a02e1..3f64657060 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -16,7 +16,6 @@ jobs: - uses: actions/checkout@v2 - name: Set up Elixir uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24 - with: elixir-version: '1.10.3' # Define the elixir version [required] otp-version: '22.3' # Define the OTP version [required] From 20bd227226e068f8052363b9a153c7290a3dcd69 Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Mon, 8 Mar 2021 13:40:39 +0000 Subject: [PATCH 325/366] add kubesec code scanning workflow --- code-scanning/kubesec.yml | 37 +++++++++++++++++++ .../properties/kubesec.properties.json | 7 ++++ icons/kubesec.svg | 16 ++++++++ 3 files changed, 60 insertions(+) create mode 100644 code-scanning/kubesec.yml create mode 100644 code-scanning/properties/kubesec.properties.json create mode 100644 icons/kubesec.svg diff --git a/code-scanning/kubesec.yml b/code-scanning/kubesec.yml new file mode 100644 index 0000000000..8d3d0ebf1f --- /dev/null +++ b/code-scanning/kubesec.yml @@ -0,0 +1,37 @@ +# 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: Kubesec + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + +jobs: + lint: + name: Kubesec + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run kubesec scanner + uses: controlplaneio/kubesec-action@43d0ddff5ffee89a6bb9f29b64cd865411137b14 + with: + input: file.yaml # specify configuration file to scan here + format: template + template: template/sarif.tpl + output: kubesec-results.sarif + exit-code: "0" + + - name: Upload Kubesec scan results to GitHub Security tab + uses: github/codeql-action/upload-sarif@v1 + with: + sarif_file: kubesec-results.sarif \ No newline at end of file diff --git a/code-scanning/properties/kubesec.properties.json b/code-scanning/properties/kubesec.properties.json new file mode 100644 index 0000000000..66d5619f47 --- /dev/null +++ b/code-scanning/properties/kubesec.properties.json @@ -0,0 +1,7 @@ +{ + "name": "Kubesec", + "creator": "Controlplane", + "description": "Security risk analysis for Kubernetes resources. Submit pod-types (such as deployment, cronjob) to receive an itemised security risk score.", + "iconName": "kubesec", + "categories": ["Code Scanning"] +} diff --git a/icons/kubesec.svg b/icons/kubesec.svg new file mode 100644 index 0000000000..828eb09467 --- /dev/null +++ b/icons/kubesec.svg @@ -0,0 +1,16 @@ + + + + + + image/svg+xml + + + + + + + + + + From 16a1b76572ff62d6c4f295b55a88dd27c68eb178 Mon Sep 17 00:00:00 2001 From: Rahul Gunasekaran Date: Tue, 9 Mar 2021 15:57:48 -0500 Subject: [PATCH 326/366] add_listing_to_github_ui --- .../properties/synopsysio.properties.json | 7 ++ code-scanning/synopsys-io-actions.yml | 77 +++++++++++++++++++ icons/synopsys.svg | 1 + 3 files changed, 85 insertions(+) create mode 100644 code-scanning/properties/synopsysio.properties.json create mode 100644 code-scanning/synopsys-io-actions.yml create mode 100644 icons/synopsys.svg diff --git a/code-scanning/properties/synopsysio.properties.json b/code-scanning/properties/synopsysio.properties.json new file mode 100644 index 0000000000..257357e37c --- /dev/null +++ b/code-scanning/properties/synopsysio.properties.json @@ -0,0 +1,7 @@ +{ + "name": "Synopsys Intelligent Security Scan Action", + "creator": "Synopsys", + "description": "The Synopsys Intelligent Security Scan Action helps selectively perform SAST and SCA scans, triggered during a variety of GitHub Platform events for C, C++, C#, Java, JavaScript, TypeScript, Python, and Go developers.", + "iconName": "synopsys", + "categories": ["Code Scanning"] +} diff --git a/code-scanning/synopsys-io-actions.yml b/code-scanning/synopsys-io-actions.yml new file mode 100644 index 0000000000..b5aa5031cc --- /dev/null +++ b/code-scanning/synopsys-io-actions.yml @@ -0,0 +1,77 @@ +name: "Synopsys Intelligent Security Scan" + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + # We must fetch at least the immediate parents so that if this is + # a pull request then we can checkout the head. + fetch-depth: 2 + + # If this run was triggered by a pull request event, then checkout + # the head of the pull request instead of the merge commit. + - run: git checkout HEAD^2 + if: ${{ github.event_name == 'pull_request' }} + + - name: Synopsys Intelligent Security Scan + id: prescription + uses: synopsys-sig/intelligent-security-scan@v1 + with: + ioServerUrl: ${{secrets.IO_SERVER_URL}} + ioServerToken: ${{secrets.IO_SERVER_TOKEN}} + workflowServerUrl: ${{secrets.WORKFLOW_SERVER_URL}} + additionalWorkflowArgs: --polaris.url=${{secrets.POLARIS_SERVER_URL}} --polaris.token=${{secrets.POLARIS_ACCESS_TOKEN}} + stage: "IO" + + # Please note that the ID in previous step was set to prescription + # in order for this logic to work also make sure that POLARIS_ACCESS_TOKEN + # is defined in settings + - name: Static Analysis with Polaris + if: ${{steps.prescription.outputs.sastScan == 'true' }} + run: | + export POLARIS_SERVER_URL=${{ secrets.POLARIS_SERVER_URL}} + export POLARIS_ACCESS_TOKEN=${{ secrets.POLARIS_ACCESS_TOKEN}} + wget -q ${{ secrets.POLARIS_SERVER_URL}}/api/tools/polaris_cli-linux64.zip + unzip -j polaris_cli-linux64.zip -d /tmp + /tmp/polaris analyze -w + + # Please note that the ID in previous step was set to prescription + # in order for this logic to work + - name: Software Composition Analysis with Black Duck + if: ${{steps.prescription.outputs.scaScan == 'true' }} + uses: blackducksoftware/github-action@v2 + with: + args: '--blackduck.url="${{ secrets.BLACKDUCK_URL}}" --blackduck.api.token="${{ secrets.BLACKDUCK_TOKEN}}" --detect.tools="SIGNATURE_SCAN,DETECTOR"' + + - name: Synopsys Intelligent Security Scan + if: ${{ steps.prescription.outputs.sastScan == 'true' || steps.prescription.outputs.scaScan == 'true' }} + uses: synopsys-sig/intelligent-security-scan@v1 + with: + ioServerUrl: ${{secrets.IO_SERVER_URL}} + ioServerToken: ${{secrets.IO_SERVER_TOKEN}} + workflowServerUrl: ${{secrets.WORKFLOW_SERVER_URL}} + additionalWorkflowArgs: --IS_SAST_ENABLED=${{steps.prescription.outputs.sastScan}} --IS_SCA_ENABLED=${{steps.prescription.outputs.scaScan}} + --polaris.project.name={{PROJECT_NAME}} --polaris.url=${{secrets.POLARIS_SERVER_URL}} --polaris.token=${{secrets.POLARIS_ACCESS_TOKEN}} + --blackduck.project.name={{PROJECT_NAME}}:{{PROJECT_VERSION}} --blackduck.url=${{secrets.BLACKDUCK_URL}} --blackduck.api.token=${{secrets.BLACKDUCK_TOKEN}} + stage: "WORKFLOW" + + - name: Upload SARIF file + if: ${{steps.prescription.outputs.sastScan == 'true' }} + uses: github/codeql-action/upload-sarif@v1 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: workflowengine-results.sarif.json diff --git a/icons/synopsys.svg b/icons/synopsys.svg new file mode 100644 index 0000000000..764a3be23c --- /dev/null +++ b/icons/synopsys.svg @@ -0,0 +1 @@ + \ No newline at end of file From 93599e25052bb0825cd15e7fbec78289ce008d49 Mon Sep 17 00:00:00 2001 From: Rahul Gunasekaran <71350204+rahulguna10@users.noreply.github.com> Date: Wed, 10 Mar 2021 08:22:45 -0500 Subject: [PATCH 327/366] Updated suggested changes in code-scanning/synopsys-io-actions.yml Co-authored-by: Nick Fyson --- code-scanning/synopsys-io-actions.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/code-scanning/synopsys-io-actions.yml b/code-scanning/synopsys-io-actions.yml index b5aa5031cc..39ed12ae37 100644 --- a/code-scanning/synopsys-io-actions.yml +++ b/code-scanning/synopsys-io-actions.yml @@ -17,15 +17,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 - - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} - name: Synopsys Intelligent Security Scan id: prescription From a74640c1ec12ff8eced90ca1e13436b09ff3975f Mon Sep 17 00:00:00 2001 From: Rahul Gunasekaran Date: Wed, 10 Mar 2021 08:53:33 -0500 Subject: [PATCH 328/366] updated suggested filename changes --- .../{synopsysio.properties.json => synopsys-io.properties.json} | 2 +- icons/{synopsys.svg => synopsys-io.svg} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename code-scanning/properties/{synopsysio.properties.json => synopsys-io.properties.json} (92%) rename icons/{synopsys.svg => synopsys-io.svg} (100%) diff --git a/code-scanning/properties/synopsysio.properties.json b/code-scanning/properties/synopsys-io.properties.json similarity index 92% rename from code-scanning/properties/synopsysio.properties.json rename to code-scanning/properties/synopsys-io.properties.json index 257357e37c..67aeb09b9f 100644 --- a/code-scanning/properties/synopsysio.properties.json +++ b/code-scanning/properties/synopsys-io.properties.json @@ -2,6 +2,6 @@ "name": "Synopsys Intelligent Security Scan Action", "creator": "Synopsys", "description": "The Synopsys Intelligent Security Scan Action helps selectively perform SAST and SCA scans, triggered during a variety of GitHub Platform events for C, C++, C#, Java, JavaScript, TypeScript, Python, and Go developers.", - "iconName": "synopsys", + "iconName": "synopsys-io", "categories": ["Code Scanning"] } diff --git a/icons/synopsys.svg b/icons/synopsys-io.svg similarity index 100% rename from icons/synopsys.svg rename to icons/synopsys-io.svg From f42ac9c022d58205b5936aa59a174f00962a7070 Mon Sep 17 00:00:00 2001 From: AlyonaSviridenko Date: Thu, 11 Mar 2021 12:56:09 +0300 Subject: [PATCH 329/366] renamed adoptium to adopt --- ci/android.yml | 2 +- ci/ant.yml | 2 +- ci/gradle-publish.yml | 2 +- ci/gradle.yml | 2 +- ci/maven-publish.yml | 2 +- ci/maven.yml | 2 +- ci/scala.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 3edebb5efc..4bbc689631 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -17,7 +17,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adoptium' + distribution: 'adopt' - name: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/ci/ant.yml b/ci/ant.yml index 8b8a5bae75..655a94c90e 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -20,6 +20,6 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adoptium' + distribution: 'adopt' - name: Build with Ant run: ant -noinput -buildfile build.xml diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index 2faa3aa15c..e69fc091a0 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adoptium' + distribution: 'adopt' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/ci/gradle.yml b/ci/gradle.yml index 6ffdc6a413..6e7e922b22 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adoptium' + distribution: 'adopt' - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index 831b54b1de..6538c9eec6 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adoptium' + distribution: 'adopt' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/ci/maven.yml b/ci/maven.yml index 005184b335..923425b43e 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -20,6 +20,6 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adoptium' + distribution: 'adopt' - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/ci/scala.yml b/ci/scala.yml index e650d8a28d..4a3c112725 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -17,6 +17,6 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adoptium' + distribution: 'adopt' - name: Run tests run: sbt test From fe22e77a67382caac9adf68816cc67bc94e82be1 Mon Sep 17 00:00:00 2001 From: Rahul Gunasekaran Date: Thu, 11 Mar 2021 13:18:53 -0500 Subject: [PATCH 330/366] changes for checklist items --- code-scanning/properties/synopsys-io.properties.json | 4 ++-- code-scanning/synopsys-io-actions.yml | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/code-scanning/properties/synopsys-io.properties.json b/code-scanning/properties/synopsys-io.properties.json index 67aeb09b9f..ea7fae7571 100644 --- a/code-scanning/properties/synopsys-io.properties.json +++ b/code-scanning/properties/synopsys-io.properties.json @@ -1,7 +1,7 @@ { "name": "Synopsys Intelligent Security Scan Action", "creator": "Synopsys", - "description": "The Synopsys Intelligent Security Scan Action helps selectively perform SAST and SCA scans, triggered during a variety of GitHub Platform events for C, C++, C#, Java, JavaScript, TypeScript, Python, and Go developers.", + "description": "The Synopsys Intelligent Security Scan Action helps selectively perform SAST and SCA scans, triggered during a variety of GitHub Platform events", "iconName": "synopsys-io", - "categories": ["Code Scanning"] + "categories": ["Code Scanning", "C", "C++", "C#", "Go", "Java", "JavaScript", "Ruby", "PHP", "Swift", "Kotlin" , "Python", "VB.NET", "Objective C"] } diff --git a/code-scanning/synopsys-io-actions.yml b/code-scanning/synopsys-io-actions.yml index 39ed12ae37..edc3cbc737 100644 --- a/code-scanning/synopsys-io-actions.yml +++ b/code-scanning/synopsys-io-actions.yml @@ -1,4 +1,9 @@ -name: "Synopsys Intelligent Security Scan" +# 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: Synopsys Intelligent Security Scan on: push: From ba6a2f292c765fc881d0ffd3472e7101d74ec1e4 Mon Sep 17 00:00:00 2001 From: Rahul Gunasekaran <71350204+rahulguna10@users.noreply.github.com> Date: Thu, 11 Mar 2021 21:33:39 -0500 Subject: [PATCH 331/366] Updated version to commit SHA --- code-scanning/synopsys-io-actions.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/synopsys-io-actions.yml b/code-scanning/synopsys-io-actions.yml index edc3cbc737..75017268bc 100644 --- a/code-scanning/synopsys-io-actions.yml +++ b/code-scanning/synopsys-io-actions.yml @@ -25,7 +25,7 @@ jobs: - name: Synopsys Intelligent Security Scan id: prescription - uses: synopsys-sig/intelligent-security-scan@v1 + uses: synopsys-sig/intelligent-security-scan@48eedfcd42bc342a294dc495ac452797b2d9ff08 with: ioServerUrl: ${{secrets.IO_SERVER_URL}} ioServerToken: ${{secrets.IO_SERVER_TOKEN}} @@ -55,7 +55,7 @@ jobs: - name: Synopsys Intelligent Security Scan if: ${{ steps.prescription.outputs.sastScan == 'true' || steps.prescription.outputs.scaScan == 'true' }} - uses: synopsys-sig/intelligent-security-scan@v1 + uses: synopsys-sig/intelligent-security-scan@48eedfcd42bc342a294dc495ac452797b2d9ff08 with: ioServerUrl: ${{secrets.IO_SERVER_URL}} ioServerToken: ${{secrets.IO_SERVER_TOKEN}} From 5eb695baece07fb726877d04c0e98d3eeb0a63a5 Mon Sep 17 00:00:00 2001 From: Rahul Gunasekaran <71350204+rahulguna10@users.noreply.github.com> Date: Fri, 12 Mar 2021 12:23:28 -0500 Subject: [PATCH 332/366] Updated commit SHA Co-authored-by: Nick Fyson --- code-scanning/synopsys-io-actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/synopsys-io-actions.yml b/code-scanning/synopsys-io-actions.yml index 75017268bc..9b5a080aee 100644 --- a/code-scanning/synopsys-io-actions.yml +++ b/code-scanning/synopsys-io-actions.yml @@ -49,7 +49,7 @@ jobs: # in order for this logic to work - name: Software Composition Analysis with Black Duck if: ${{steps.prescription.outputs.scaScan == 'true' }} - uses: blackducksoftware/github-action@v2 + uses: blackducksoftware/github-action@9ea442b34409737f64743781e9adc71fd8e17d38 with: args: '--blackduck.url="${{ secrets.BLACKDUCK_URL}}" --blackduck.api.token="${{ secrets.BLACKDUCK_TOKEN}}" --detect.tools="SIGNATURE_SCAN,DETECTOR"' From 6e127e8439bd8533948e209ff4379084becc9094 Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Fri, 12 Mar 2021 20:00:40 +0000 Subject: [PATCH 333/366] fix id of synosys-io workflow --- code-scanning/{synopsys-io-actions.yml => synopsys-io.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename code-scanning/{synopsys-io-actions.yml => synopsys-io.yml} (100%) diff --git a/code-scanning/synopsys-io-actions.yml b/code-scanning/synopsys-io.yml similarity index 100% rename from code-scanning/synopsys-io-actions.yml rename to code-scanning/synopsys-io.yml From d3f35ae32d2e17b003fc6428afafc97c1bd50a13 Mon Sep 17 00:00:00 2001 From: pastelmind Date: Sat, 13 Mar 2021 14:34:06 +0900 Subject: [PATCH 334/366] Use actions/setup-node v2 Since actions/setup-node v2 has been declared stable since v2.1.4 (released on 2020-12-16), it should be safe to move everyone to v2. --- .github/workflows/sync_ghes.yaml | 2 +- .github/workflows/validate-data.yaml | 2 +- ci/azure.yml | 2 +- ci/node.js.yml | 2 +- ci/npm-publish.yml | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sync_ghes.yaml b/.github/workflows/sync_ghes.yaml index aa5e741ef7..a3c298a37f 100644 --- a/.github/workflows/sync_ghes.yaml +++ b/.github/workflows/sync_ghes.yaml @@ -14,7 +14,7 @@ jobs: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* git config user.email "cschleiden@github.com" git config user.name "GitHub Actions" - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: '12' - name: Check starter workflows for GHES compat diff --git a/.github/workflows/validate-data.yaml b/.github/workflows/validate-data.yaml index 20eee717e8..745bc25eb3 100644 --- a/.github/workflows/validate-data.yaml +++ b/.github/workflows/validate-data.yaml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: "12" diff --git a/ci/azure.yml b/ci/azure.yml index 407923781b..0262b4920f 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -32,7 +32,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ env.NODE_VERSION }} - name: npm install, build, and test diff --git a/ci/node.js.yml b/ci/node.js.yml index 632c1a6daa..06cd54bc93 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: npm ci diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index b460edca9a..1b4952d8de 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 - run: npm ci @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 registry-url: https://registry.npmjs.org/ @@ -37,7 +37,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 registry-url: $registry-url(npm) From 3d5dfdfe67b1a3b1e69b1425acf2bb1c56b811af Mon Sep 17 00:00:00 2001 From: Geod24 Date: Sun, 14 Mar 2021 16:22:28 +0900 Subject: [PATCH 335/366] Fix wording in README to follow pull request template The wording in the pull request template was changed from recommend to require, but the same change was not made to the README. --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c9e8299e73..2a0e55fff6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,6 +19,6 @@ Before merging a new workflow, the following requirements need to be met: - 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. - 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. +- We require that Actions outside of the `actions` organization be pinned to a specific SHA. Thank you From 019de53cfb24ce35e5b64d47aca87779a47de011 Mon Sep 17 00:00:00 2001 From: Sergey Yakimov Date: Thu, 18 Mar 2021 15:28:14 +0200 Subject: [PATCH 336/366] Remove the deprecated "--no-suggest" option from the Composer install step --- ci/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/php.yml b/ci/php.yml index e1dceefb65..6acfdd17d8 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -27,7 +27,7 @@ jobs: ${{ runner.os }}-php- - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-suggest + run: composer install --prefer-dist --no-progress # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" # Docs: https://getcomposer.org/doc/articles/scripts.md From 7c8569ab2bcbca327d9745f7f77ad89918d68585 Mon Sep 17 00:00:00 2001 From: Divyanshu Agrawal Date: Tue, 9 Mar 2021 19:32:22 +0530 Subject: [PATCH 337/366] Modify openshift workflow with v2 version of actions and add oc-new-app (#1) * Modify openshift workflow with v2 version of actions and add oc-new-app Signed-off-by: divyansh42 --- ci/openshift.yml | 84 +++++++++++++++++++++++++++++++----------------- 1 file changed, 55 insertions(+), 29 deletions(-) diff --git a/ci/openshift.yml b/ci/openshift.yml index 8a4875decd..e25afefe1b 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -27,6 +27,7 @@ # 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/ +# ▶️ See a video of how to set up this workflow at https://www.youtube.com/watch?v=6hgBO-1pKho name: OpenShift @@ -52,6 +53,7 @@ env: # If you wish to manually provide the APP_NAME and TAG, set them here, otherwise they will be auto-detected. APP_NAME: "" + TAG: "" on: @@ -66,7 +68,42 @@ jobs: runs-on: ubuntu-20.04 environment: production + outputs: + ROUTE: ${{ steps.deploy-and-expose.outputs.route }} + SELECTOR: ${{ steps.deploy-and-expose.outputs.selector }} + steps: + - name: Check if secrets exists + uses: actions/github-script@v3 + with: + script: | + const secrets = { + REGISTRY_PASSWORD: `${{ secrets.REGISTRY_PASSWORD }}`, + OPENSHIFT_SERVER: `${{ secrets.OPENSHIFT_SERVER }}`, + OPENSHIFT_TOKEN: `${{ secrets.OPENSHIFT_TOKEN }}`, + }; + + const missingSecrets = Object.entries(secrets).filter(([ name, value ]) => { + if (value.length === 0) { + core.warning(`Secret "${name}" is not set`); + return true; + } + core.info(` ✔️ Secret "${name}" is set`); + return false; + + }); + + if (missingSecrets.length > 0) { + core.setFailed(`❌ At least one required secret is not set in the repository. \n` + + "You can add it using:\n" + + "Github UI: https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository \n" + + "Github CLI: https://cli.github.com/manual/gh_secret_set \n" + + "Also, refer to https://github.com/redhat-actions/oc-login#getting-started-with-the-action-or-see-example"); + } + else { + core.info(`✅ All the required secrets are set`); + } + - uses: actions/checkout@v2 - name: Determine app name @@ -81,12 +118,13 @@ jobs: # https://github.com/redhat-actions/buildah-build#readme - name: Build from Dockerfile - uses: redhat-actions/buildah-build@v1 + id: image-build + uses: redhat-actions/buildah-build@v2 with: image: ${{ env.APP_NAME }} - tag: ${{ env.TAG }} + tags: ${{ env.TAG }} # If you don't have a dockerfile, see: - # https://github.com/redhat-actions/buildah-build#building-from-scratch + # https://github.com/redhat-actions/buildah-build#scratch-build-inputs # Otherwise, point this to your Dockerfile relative to the repository root. dockerfiles: | ./Dockerfile @@ -94,10 +132,10 @@ jobs: # https://github.com/redhat-actions/push-to-registry#readme - name: Push to registry id: push-to-registry - uses: redhat-actions/push-to-registry@v1 + uses: redhat-actions/push-to-registry@v2 with: - image: ${{ env.APP_NAME }} - tag: ${{ env.TAG }} + image: ${{ steps.image-build.outputs.image }} + tags: ${{ steps.image-build.outputs.tags }} registry: ${{ env.REGISTRY }} username: ${{ env.REGISTRY_USER }} password: ${{ env.REGISTRY_PASSWORD }} @@ -118,30 +156,15 @@ jobs: 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. + # https://github.com/redhat-actions/oc-new-app#readme - 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 + id: deploy-and-expose + uses: redhat-actions/oc-new-app@v1 + with: + app_name: ${{ env.APP_NAME }} + image: ${{ steps.push-to-registry.outputs.registry-path }} + namespace: ${{ env.OPENSHIFT_NAMESPACE }} + port: ${{ env.APP_PORT }} - name: View application route run: | @@ -151,3 +174,6 @@ jobs: echo "===================================================================================" echo echo "Your app can be taken down with: \"oc delete all --selector='${{ env.SELECTOR }}'\"" + env: + ROUTE: ${{ steps.deploy-and-expose.outputs.route }} + SELECTOR: ${{ steps.deploy-and-expose.outputs.selector }} From c08e24c17b12e3bc9d346fa5aa745aa8c497fd23 Mon Sep 17 00:00:00 2001 From: divyansh42 Date: Wed, 24 Mar 2021 20:21:19 +0530 Subject: [PATCH 338/366] Resolve reviews Signed-off-by: divyansh42 --- ci/openshift.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ci/openshift.yml b/ci/openshift.yml index e25afefe1b..b9bcd0be6a 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -53,7 +53,6 @@ env: # If you wish to manually provide the APP_NAME and TAG, set them here, otherwise they will be auto-detected. APP_NAME: "" - TAG: "" on: @@ -88,7 +87,7 @@ jobs: core.warning(`Secret "${name}" is not set`); return true; } - core.info(` ✔️ Secret "${name}" is set`); + core.info(`✔️ Secret "${name}" is set`); return false; }); @@ -96,14 +95,14 @@ jobs: if (missingSecrets.length > 0) { core.setFailed(`❌ At least one required secret is not set in the repository. \n` + "You can add it using:\n" + - "Github UI: https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository \n" + - "Github CLI: https://cli.github.com/manual/gh_secret_set \n" + + "GitHub UI: https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository \n" + + "GitHub CLI: https://cli.github.com/manual/gh_secret_set \n" + "Also, refer to https://github.com/redhat-actions/oc-login#getting-started-with-the-action-or-see-example"); } else { core.info(`✅ All the required secrets are set`); } - + - uses: actions/checkout@v2 - name: Determine app name From 1f729c2f025d52b5407657a3fe8130bec1353717 Mon Sep 17 00:00:00 2001 From: Alena Sviridenko Date: Mon, 5 Apr 2021 17:44:33 +0300 Subject: [PATCH 339/366] Fixed docs path Co-authored-by: Konrad Pabjan --- ci/gradle-publish.yml | 2 +- ci/maven-publish.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index e69fc091a0..ef99e13d3f 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -1,5 +1,5 @@ # 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/docs/advanced-usage.md#Publishing-using-gradle +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle name: Gradle Package diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index 6538c9eec6..c3f4855017 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -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/docs/advanced-usage.md#apache-maven-with-a-settings-path +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path name: Maven Package @@ -28,4 +28,4 @@ jobs: - name: Publish to GitHub Packages Apache Maven run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml env: - GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file + GITHUB_TOKEN: ${{ github.token }} From a5afdf402855e60f84f7832f18eb5410b9e31b83 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Mon, 5 Apr 2021 15:01:23 -0400 Subject: [PATCH 340/366] Update openshift.yml --- ci/openshift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/openshift.yml b/ci/openshift.yml index b9bcd0be6a..3e39dea6b0 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -64,7 +64,7 @@ on: jobs: openshift-ci-cd: name: Build and deploy to OpenShift - runs-on: ubuntu-20.04 + runs-on: ubuntu-18.04 environment: production outputs: From 97a16c82c55eb2ed003fbe2a11bc7fbe1dd40493 Mon Sep 17 00:00:00 2001 From: Alexandre Rebert Date: Mon, 12 Apr 2021 14:50:41 -0400 Subject: [PATCH 341/366] Add Mayhem for API code scanning workflow --- code-scanning/mayhem-for-api.yml | 62 +++++++++++++++++++ .../properties/mayhem-for-api.properties.json | 7 +++ icons/mayhem-for-api.svg | 19 ++++++ 3 files changed, 88 insertions(+) create mode 100644 code-scanning/mayhem-for-api.yml create mode 100644 code-scanning/properties/mayhem-for-api.properties.json create mode 100644 icons/mayhem-for-api.svg diff --git a/code-scanning/mayhem-for-api.yml b/code-scanning/mayhem-for-api.yml new file mode 100644 index 0000000000..1601ff51c5 --- /dev/null +++ b/code-scanning/mayhem-for-api.yml @@ -0,0 +1,62 @@ +# 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 starts your API and fuzzes it with ForAllSecure Mayhem for API +# to find reliability, performance and security issues before they reach +# production. +# +# To use this workflow, you will need to: +# +# 1. Create a Mayhem for API account at +# https://mayhem4api.forallsecure.com/signup (30-day free trial) +# +# 2. Create a service account token `mapi organization service-account create +# ` +# +# 3. Add the service account token as a secret in GitHub called "MAPI_TOKEN" +# +# 4. Update the "Start your API" step to run your API in the background before +# starting the Mayhem for API scan, and update the `api-url` & `api-spec` +# field. +# +# If you have any questions, please contact us at mayhem4api@forallsecure.com + +name: "Mayhem for API" + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ $default-branch ] + +jobs: + mayhem-for-api: + name: Mayhem for API + # Mayhem for API runs on linux, mac and windows + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Run your API in the background. Ideally, the API would run in debug + # mode & send stacktraces back on "500 Internal Server Error" responses + # (don't do this in production though!) + - name: Start your API + run: ./run_your_api.sh & # <- ✏️ update this + + - name: Mayhem for API + uses: ForAllSecure/mapi-action@193b709971cc377675e33284aecbf9229853e010 + continue-on-error: true + with: + mapi-token: ${{ secrets.MAPI_TOKEN }} + api-url: http://localhost:8080 # <- ✏️ update this + api-spec: http://localhost:8080/openapi.json # <- ✏️ update this + duration: 60 + sarif-report: mapi.sarif + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v1 + with: + sarif_file: mapi.sarif diff --git a/code-scanning/properties/mayhem-for-api.properties.json b/code-scanning/properties/mayhem-for-api.properties.json new file mode 100644 index 0000000000..ccbb75c1ed --- /dev/null +++ b/code-scanning/properties/mayhem-for-api.properties.json @@ -0,0 +1,7 @@ +{ + "name": "Mayhem for API", + "creator": "ForAllSecure", + "description": "Automatically test your REST APIs with your OpenAPI specs and Postman collections", + "iconName": "mayhem-for-api", + "categories": ["Code Scanning", "C#", "Go", "Java", "Scala", "JavaScript", "TypeScript", "Ruby", "PHP", "Swift", "Kotlin" , "Python", "Rust", "Objective C"] +} diff --git a/icons/mayhem-for-api.svg b/icons/mayhem-for-api.svg new file mode 100644 index 0000000000..af426ff630 --- /dev/null +++ b/icons/mayhem-for-api.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + From 9d7a348464c230b5a34103bbde5049e6d6a1dd56 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Tue, 13 Apr 2021 11:34:49 -0400 Subject: [PATCH 342/366] Update code-scanning/properties/mayhem-for-api.properties.json --- code-scanning/properties/mayhem-for-api.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/properties/mayhem-for-api.properties.json b/code-scanning/properties/mayhem-for-api.properties.json index ccbb75c1ed..b700dae74a 100644 --- a/code-scanning/properties/mayhem-for-api.properties.json +++ b/code-scanning/properties/mayhem-for-api.properties.json @@ -1,7 +1,7 @@ { "name": "Mayhem for API", "creator": "ForAllSecure", - "description": "Automatically test your REST APIs with your OpenAPI specs and Postman collections", + "description": "Automatically test your REST APIs with your OpenAPI specs and Postman collections.", "iconName": "mayhem-for-api", "categories": ["Code Scanning", "C#", "Go", "Java", "Scala", "JavaScript", "TypeScript", "Ruby", "PHP", "Swift", "Kotlin" , "Python", "Rust", "Objective C"] } From a2e5f8e5480715e8fcec103ec5c179ac65bac41b Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 14 Apr 2021 18:37:01 +0100 Subject: [PATCH 343/366] Add tfsec starter action --- .../properties/tfsec.properties.json | 7 ++++ code-scanning/tfsec.yml | 35 +++++++++++++++++++ icons/tfsec.svg | 1 + 3 files changed, 43 insertions(+) create mode 100644 code-scanning/properties/tfsec.properties.json create mode 100644 code-scanning/tfsec.yml create mode 100644 icons/tfsec.svg diff --git a/code-scanning/properties/tfsec.properties.json b/code-scanning/properties/tfsec.properties.json new file mode 100644 index 0000000000..0ecfb53038 --- /dev/null +++ b/code-scanning/properties/tfsec.properties.json @@ -0,0 +1,7 @@ +{ + "name": "tfsec", + "creator": "tfsec", + "description": "Static analysis for Terraform.", + "iconName": "tfsec", + "categories": ["Code Scanning"] +} diff --git a/code-scanning/tfsec.yml b/code-scanning/tfsec.yml new file mode 100644 index 0000000000..d06e719b0d --- /dev/null +++ b/code-scanning/tfsec.yml @@ -0,0 +1,35 @@ +# 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: tfsec + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + +jobs: + tfsec: + name: Run tfsec sarif report + runs-on: ubuntu-latest + + steps: + - name: Clone repo + uses: actions/checkout@master + + - name: Run tfsec + uses: tfsec/tfsec-sarif-action@v0.0.4 + with: + sarif_file: tfsec.sarif + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v1 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: tfsec.sarif \ No newline at end of file diff --git a/icons/tfsec.svg b/icons/tfsec.svg new file mode 100644 index 0000000000..6d78f754c0 --- /dev/null +++ b/icons/tfsec.svg @@ -0,0 +1 @@ + \ No newline at end of file From b80a1555aa6242b8543299266ccbaf38ac49f5ff Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 14 Apr 2021 18:45:51 +0100 Subject: [PATCH 344/366] Update code-scanning/tfsec.yml Co-authored-by: John Bohannon --- code-scanning/tfsec.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/tfsec.yml b/code-scanning/tfsec.yml index d06e719b0d..0b91d26f4a 100644 --- a/code-scanning/tfsec.yml +++ b/code-scanning/tfsec.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Clone repo - uses: actions/checkout@master + uses: actions/checkout@v2 - name: Run tfsec uses: tfsec/tfsec-sarif-action@v0.0.4 @@ -32,4 +32,4 @@ jobs: uses: github/codeql-action/upload-sarif@v1 with: # Path to SARIF file relative to the root of the repository - sarif_file: tfsec.sarif \ No newline at end of file + sarif_file: tfsec.sarif From 4adf815cfcd663e714d9656c85cc9be36f2ea92f Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 14 Apr 2021 18:53:21 +0100 Subject: [PATCH 345/366] update to use the hash rather than tag --- code-scanning/tfsec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/tfsec.yml b/code-scanning/tfsec.yml index 0b91d26f4a..05879a14bc 100644 --- a/code-scanning/tfsec.yml +++ b/code-scanning/tfsec.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v2 - name: Run tfsec - uses: tfsec/tfsec-sarif-action@v0.0.4 + uses: tfsec/tfsec-sarif-action@2ec44316ed27c50d48c931c3c628adc4c8bb1d2b with: sarif_file: tfsec.sarif github_token: ${{ secrets.GITHUB_TOKEN }} From cabc659a07e308ca1cedd4185279b64ed80eddb2 Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 14 Apr 2021 19:16:05 +0100 Subject: [PATCH 346/366] some tweaks for appearance Improve the description, make it more punchy :-) Use a better SVG for the icon --- .../properties/tfsec.properties.json | 2 +- icons/tfsec.svg | 37 ++++++++++++++++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/code-scanning/properties/tfsec.properties.json b/code-scanning/properties/tfsec.properties.json index 0ecfb53038..1a6a2f0d3b 100644 --- a/code-scanning/properties/tfsec.properties.json +++ b/code-scanning/properties/tfsec.properties.json @@ -1,7 +1,7 @@ { "name": "tfsec", "creator": "tfsec", - "description": "Static analysis for Terraform.", + "description": "A static analysis security scanner for your Terraform code. Discover problems with your infrastructure before hackers do.", "iconName": "tfsec", "categories": ["Code Scanning"] } diff --git a/icons/tfsec.svg b/icons/tfsec.svg index 6d78f754c0..a68cb4c3f6 100644 --- a/icons/tfsec.svg +++ b/icons/tfsec.svg @@ -1 +1,36 @@ - \ No newline at end of file + +image/svg+xml \ No newline at end of file From 678e77e33cf6cfafd482dfc6844cf29810fad5ac Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 14 Apr 2021 19:27:00 +0100 Subject: [PATCH 347/366] fix the svg to make it nicer --- icons/tfsec.svg | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/icons/tfsec.svg b/icons/tfsec.svg index a68cb4c3f6..5e04b87707 100644 --- a/icons/tfsec.svg +++ b/icons/tfsec.svg @@ -21,16 +21,16 @@ id="g12"> \ No newline at end of file + d="M 296.3 217.1 c 37.2 16.7 73 31.2 107.5 43.6 c 53 18.9 103.3 32.7 152.1 41.6 v 115.9 C 499.5 407.9 441.2 391 379 367.3 C 343.9 354 307.6 338.5 269.7 320.8 C 276.5 285.7 285.3 251 296.3 217.1" /> \ No newline at end of file From 78f5a8e8b5eac295f3bc3855f0c4d109aaf18cd2 Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 14 Apr 2021 19:35:46 +0100 Subject: [PATCH 348/366] center the icon better --- icons/tfsec.svg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/icons/tfsec.svg b/icons/tfsec.svg index 5e04b87707..60b6014c10 100644 --- a/icons/tfsec.svg +++ b/icons/tfsec.svg @@ -5,7 +5,7 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - viewBox="0 0 180 180" + viewBox="0 0 120 120" height="180" width="180" xml:space="preserve" @@ -21,16 +21,16 @@ id="g12"> \ No newline at end of file + d="M 65.6 456 c 37.2 16.7 73 31.2 107.5 43.6 c 53 18.9 103.3 32.7 152.1 41.6 v 115.9 C 268.8 646.8 210.5 629.9 148.3 606.2 C 113.2 592.9 76.9 577.4 39 559.7 C 45.8 524.6 54.6 489.9 65.6 456" /> \ No newline at end of file From 7dab5895e67103ca158b93552580f6918b6a0524 Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Wed, 14 Apr 2021 20:17:04 +0100 Subject: [PATCH 349/366] add HCL as a category --- code-scanning/properties/tfsec.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/properties/tfsec.properties.json b/code-scanning/properties/tfsec.properties.json index 1a6a2f0d3b..6796d7929d 100644 --- a/code-scanning/properties/tfsec.properties.json +++ b/code-scanning/properties/tfsec.properties.json @@ -3,5 +3,5 @@ "creator": "tfsec", "description": "A static analysis security scanner for your Terraform code. Discover problems with your infrastructure before hackers do.", "iconName": "tfsec", - "categories": ["Code Scanning"] + "categories": ["Code Scanning", "HCL"] } From 7d3cfbd03503bceaa75ac3b07f6302dfd0b341e8 Mon Sep 17 00:00:00 2001 From: sceee Date: Thu, 15 Apr 2021 18:17:57 +0200 Subject: [PATCH 350/366] Add recursive write permissions to "/srv/jekyll" Add recursive write permissions to the site directory to avoid permission denied errors in case of jekyll requiring to create the output directory --- ci/jekyll.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 9449a6efae..71920c128d 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -17,4 +17,4 @@ jobs: run: | docker run \ -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ - jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future" + jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future" From ed015ab7b9a5055065bd3c7a111ea7f623f8c785 Mon Sep 17 00:00:00 2001 From: Stephen Wade Date: Sat, 17 Apr 2021 14:08:56 -0400 Subject: [PATCH 351/366] Fix broken link in README.md --- code-scanning/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code-scanning/README.md b/code-scanning/README.md index 5b910da578..076d57c649 100644 --- a/code-scanning/README.md +++ b/code-scanning/README.md @@ -1,4 +1,3 @@ # Code Scanning Workflows -GitHub code scanning is a developer-first, GitHub-native approach to easily find security vulnerabilities before they reach production. Before you can configure code scanning for a repository, you must enable code scanning by adding a GitHub Actions workflow to the repository. For more information, see [Enabling Code Scanning for a repository](/github/finding-security-vulnerabilities-and-errors-in-your-code/enabling-code-scanning-for-a-repository). - +GitHub code scanning is a developer-first, GitHub-native approach to easily find security vulnerabilities before they reach production. Before you can configure code scanning for a repository, you must enable code scanning by adding a GitHub Actions workflow to the repository. For more information, see [Setting up code scanning for a repository](https://docs.github.com/en/code-security/secure-coding/setting-up-code-scanning-for-a-repository). From 6a69f367db79af78686fc3d2560c28ea29573acc Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 2 Mar 2021 19:59:19 -0600 Subject: [PATCH 352/366] Update starter workflows to specify permissions --- automation/greetings.yml | 3 +++ automation/label.yml | 3 +++ automation/stale.yml | 3 +++ ci/docker-publish.yml | 4 ++++ ci/gem-push.yml | 3 +++ ci/gradle-publish.yml | 3 +++ ci/maven-publish.yml | 3 +++ ci/npm-publish.yml | 3 +++ code-scanning/codeql.yml | 3 +++ code-scanning/kubesec.yml | 3 +++ code-scanning/mayhem-for-api.yml | 3 +++ code-scanning/synopsys-io.yml | 3 +++ code-scanning/tfsec.yml | 3 +++ 13 files changed, 40 insertions(+) diff --git a/automation/greetings.yml b/automation/greetings.yml index ebb00a05c8..ee1cb11677 100644 --- a/automation/greetings.yml +++ b/automation/greetings.yml @@ -5,6 +5,9 @@ on: [pull_request, issues] jobs: greeting: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/first-interaction@v1 with: diff --git a/automation/label.yml b/automation/label.yml index 7c724a62ac..5cdc45e6d4 100644 --- a/automation/label.yml +++ b/automation/label.yml @@ -12,6 +12,9 @@ jobs: label: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - uses: actions/labeler@v2 diff --git a/automation/stale.yml b/automation/stale.yml index b671fc094c..30c3dd9bc9 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -8,6 +8,9 @@ jobs: stale: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/stale@v3 diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 76756dbf1e..ba6974478c 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -44,6 +44,10 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' + permissions: + contents: read + packages: write + steps: - uses: actions/checkout@v2 diff --git a/ci/gem-push.yml b/ci/gem-push.yml index a1edfbc90b..3dc62be3cb 100644 --- a/ci/gem-push.yml +++ b/ci/gem-push.yml @@ -10,6 +10,9 @@ jobs: build: name: Build + Publish runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v2 diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index ef99e13d3f..a74a1ce2eb 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -11,6 +11,9 @@ jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v2 diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index c3f4855017..18dd937d4e 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -11,6 +11,9 @@ jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v2 diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 1b4952d8de..84629029a3 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -35,6 +35,9 @@ jobs: publish-gpr: needs: build runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index d88fe52fc2..99299d6983 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -24,6 +24,9 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + permissions: + contents: read + security-events: write strategy: fail-fast: false diff --git a/code-scanning/kubesec.yml b/code-scanning/kubesec.yml index 8d3d0ebf1f..2d528a5acf 100644 --- a/code-scanning/kubesec.yml +++ b/code-scanning/kubesec.yml @@ -18,6 +18,9 @@ jobs: lint: name: Kubesec runs-on: ubuntu-20.04 + permissions: + contents: read + security-events: write steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/code-scanning/mayhem-for-api.yml b/code-scanning/mayhem-for-api.yml index 1601ff51c5..d084e3ac0f 100644 --- a/code-scanning/mayhem-for-api.yml +++ b/code-scanning/mayhem-for-api.yml @@ -37,6 +37,9 @@ jobs: name: Mayhem for API # Mayhem for API runs on linux, mac and windows runs-on: ubuntu-latest + permissions: + contents: read + security-events: write steps: - uses: actions/checkout@v2 diff --git a/code-scanning/synopsys-io.yml b/code-scanning/synopsys-io.yml index 9b5a080aee..7e0aa09813 100644 --- a/code-scanning/synopsys-io.yml +++ b/code-scanning/synopsys-io.yml @@ -18,6 +18,9 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + permissions: + contents: read + security-events: write steps: - name: Checkout repository diff --git a/code-scanning/tfsec.yml b/code-scanning/tfsec.yml index 05879a14bc..006c985911 100644 --- a/code-scanning/tfsec.yml +++ b/code-scanning/tfsec.yml @@ -17,6 +17,9 @@ jobs: tfsec: name: Run tfsec sarif report runs-on: ubuntu-latest + permissions: + contents: read + security-events: write steps: - name: Clone repo From 2678356764ad3e52573c1cbbf702a56dce2715b9 Mon Sep 17 00:00:00 2001 From: A-Katopodis Date: Thu, 22 Apr 2021 01:41:31 +0300 Subject: [PATCH 353/366] Add psscriptanalyzer code scanning --- code-scanning/powershell.yml | 42 +++++++++++++++++++ .../properties/powershell.properties.json | 7 ++++ icons/powershell.svg | 30 +++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 code-scanning/powershell.yml create mode 100644 code-scanning/properties/powershell.properties.json create mode 100644 icons/powershell.svg diff --git a/code-scanning/powershell.yml b/code-scanning/powershell.yml new file mode 100644 index 0000000000..dfbf452e2b --- /dev/null +++ b/code-scanning/powershell.yml @@ -0,0 +1,42 @@ +# 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. +# +# https://github.com/microsoft/action-psscriptanalyzer +# For more information on PSScriptAnalyzer in general, see +# https://github.com/PowerShell/PSScriptAnalyzer + +name: PSScriptAnalyzer + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + +jobs: + build: + name: PSScriptAnalyzer + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Run PSScriptAnalyzer + uses: microsoft/psscriptanalyzer-action@2044ae068e37d0161fa2127de04c19633882f061 + with: + # Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options. + # The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules. + path: .\ + recurse: true + # Include your own basic security rules. Removing this option will run all the rules + includeRule: '"PSAvoidGlobalAliases", "PSAvoidUsingConvertToSecureStringWithPlainText"' + output: results.sarif + + # Upload the SARIF file generated in the previous step + - name: Upload SARIF results file + uses: github/codeql-action/upload-sarif@v1 + with: + sarif_file: results.sarif diff --git a/code-scanning/properties/powershell.properties.json b/code-scanning/properties/powershell.properties.json new file mode 100644 index 0000000000..98a5a7809b --- /dev/null +++ b/code-scanning/properties/powershell.properties.json @@ -0,0 +1,7 @@ +{ + "name": "PSScriptAnalyzer", + "creator": "Microsoft", + "description": "A static code checker for PowerShell modules and scripts. PSScriptAnalyzer checks the quality of PowerShell code by running a set of rules.", + "iconName": "powershell", + "categories": ["Code Scanning", "PowerShell"] +} \ No newline at end of file diff --git a/icons/powershell.svg b/icons/powershell.svg new file mode 100644 index 0000000000..54c4d89973 --- /dev/null +++ b/icons/powershell.svg @@ -0,0 +1,30 @@ + + + Artboard 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From ccfd55f9c81f7a10066689e83526d0a2ddcde722 Mon Sep 17 00:00:00 2001 From: A-Katopodis Date: Thu, 22 Apr 2021 01:51:14 +0300 Subject: [PATCH 354/366] Updated creator field --- code-scanning/properties/powershell.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/properties/powershell.properties.json b/code-scanning/properties/powershell.properties.json index 98a5a7809b..95420ae194 100644 --- a/code-scanning/properties/powershell.properties.json +++ b/code-scanning/properties/powershell.properties.json @@ -1,6 +1,6 @@ { "name": "PSScriptAnalyzer", - "creator": "Microsoft", + "creator": "Microsoft Corporation", "description": "A static code checker for PowerShell modules and scripts. PSScriptAnalyzer checks the quality of PowerShell code by running a set of rules.", "iconName": "powershell", "categories": ["Code Scanning", "PowerShell"] From 5ac32fc0977190a464c62c63cad5fcb04067c34e Mon Sep 17 00:00:00 2001 From: Ken Luke Date: Fri, 23 Apr 2021 11:33:14 -0700 Subject: [PATCH 355/366] `instruments` is depreacted, update to use `xcrun xctrace` The instruments command is deprecated as of Xcode 12 (https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes). Updated to use the corresponding `xcrun` command. --- ci/ios.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/ios.yml b/ci/ios.yml index 64b14a30a9..74c974d1dc 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -25,7 +25,8 @@ jobs: scheme: ${{ 'default' }} platform: ${{ 'iOS Simulator' }} run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + # 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}'`` 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}'` @@ -35,7 +36,8 @@ jobs: scheme: ${{ 'default' }} platform: ${{ 'iOS Simulator' }} run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + # 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}'`` 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}'` From a0512d36da4f7d2155aaeea8c59a19399a18dbbe Mon Sep 17 00:00:00 2001 From: eric sciple Date: Fri, 23 Apr 2021 14:06:00 -0500 Subject: [PATCH 356/366] include actions:read for all code scanning workflows --- code-scanning/codeql.yml | 1 + code-scanning/kubesec.yml | 1 + code-scanning/mayhem-for-api.yml | 1 + code-scanning/synopsys-io.yml | 1 + code-scanning/tfsec.yml | 1 + 5 files changed, 5 insertions(+) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 99299d6983..b32675e536 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -25,6 +25,7 @@ jobs: name: Analyze runs-on: ubuntu-latest permissions: + actions: read contents: read security-events: write diff --git a/code-scanning/kubesec.yml b/code-scanning/kubesec.yml index 2d528a5acf..1cad70cba8 100644 --- a/code-scanning/kubesec.yml +++ b/code-scanning/kubesec.yml @@ -19,6 +19,7 @@ jobs: name: Kubesec runs-on: ubuntu-20.04 permissions: + actions: read contents: read security-events: write steps: diff --git a/code-scanning/mayhem-for-api.yml b/code-scanning/mayhem-for-api.yml index d084e3ac0f..0aab0b4601 100644 --- a/code-scanning/mayhem-for-api.yml +++ b/code-scanning/mayhem-for-api.yml @@ -38,6 +38,7 @@ jobs: # Mayhem for API runs on linux, mac and windows runs-on: ubuntu-latest permissions: + actions: read contents: read security-events: write steps: diff --git a/code-scanning/synopsys-io.yml b/code-scanning/synopsys-io.yml index 7e0aa09813..0c1ff16a3a 100644 --- a/code-scanning/synopsys-io.yml +++ b/code-scanning/synopsys-io.yml @@ -19,6 +19,7 @@ jobs: name: Analyze runs-on: ubuntu-latest permissions: + actions: read contents: read security-events: write diff --git a/code-scanning/tfsec.yml b/code-scanning/tfsec.yml index 006c985911..51c5639094 100644 --- a/code-scanning/tfsec.yml +++ b/code-scanning/tfsec.yml @@ -18,6 +18,7 @@ jobs: name: Run tfsec sarif report runs-on: ubuntu-latest permissions: + actions: read contents: read security-events: write From 120036944ad5188becaf77cd54042838d290aeb2 Mon Sep 17 00:00:00 2001 From: A-Katopodis Date: Mon, 26 Apr 2021 11:04:15 +0300 Subject: [PATCH 357/366] Updated Powershell Icon --- icons/powershell.svg | 57 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/icons/powershell.svg b/icons/powershell.svg index 54c4d89973..ec01c8cb51 100644 --- a/icons/powershell.svg +++ b/icons/powershell.svg @@ -1,30 +1,29 @@ - - - Artboard 1 - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + \ No newline at end of file From 8ce9196a32834dd16d8b00084d96103aa3a41150 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 27 Apr 2021 22:42:11 +0530 Subject: [PATCH 358/366] Update shivammathur/setup-php in laravel.yml (#886) --- ci/laravel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/laravel.yml b/ci/laravel.yml index d54921e445..5f4e6c9023 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8 + - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e with: php-version: '8.0' - uses: actions/checkout@v2 From 98dbe8f0d1e00919d9ade9ebba51fffd86e36365 Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Thu, 29 Apr 2021 08:28:14 +0100 Subject: [PATCH 359/366] Remove the github token The tfsec action doesn't require the GitHub token so removing it --- code-scanning/tfsec.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/code-scanning/tfsec.yml b/code-scanning/tfsec.yml index 51c5639094..90406592ee 100644 --- a/code-scanning/tfsec.yml +++ b/code-scanning/tfsec.yml @@ -30,7 +30,6 @@ jobs: uses: tfsec/tfsec-sarif-action@2ec44316ed27c50d48c931c3c628adc4c8bb1d2b with: sarif_file: tfsec.sarif - github_token: ${{ secrets.GITHUB_TOKEN }} - name: Upload SARIF file uses: github/codeql-action/upload-sarif@v1 From 0fd345a23cbe10fe2c42956a17920cd344b7667c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Fri, 30 Apr 2021 02:40:37 +0200 Subject: [PATCH 360/366] chore: update `stale.yml` --- .github/workflows/stale.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index dc4882ca41..c116b932c8 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,7 +12,6 @@ jobs: 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' From 86a37d4cad9b4b350d01ca1e998c9e7db796e7b5 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sun, 2 May 2021 05:45:26 +0300 Subject: [PATCH 361/366] Do not use fail-fast when testing multiple Pythons --- ci/python-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/python-package.yml b/ci/python-package.yml index c88f6ce375..b079b1c7a1 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -14,6 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: python-version: [3.7, 3.8, 3.9] From 19bbf1470bc40f54b2269d1b837470352db1ed29 Mon Sep 17 00:00:00 2001 From: liuyuqi-dellpc Date: Tue, 4 May 2021 19:45:29 +0800 Subject: [PATCH 362/366] fix add path bug. --- ci/dotnet-desktop.yml | 2 +- ci/msbuild.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/dotnet-desktop.yml b/ci/dotnet-desktop.yml index 25af73637f..2e55b15519 100644 --- a/ci/dotnet-desktop.yml +++ b/ci/dotnet-desktop.yml @@ -75,7 +75,7 @@ jobs: # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe - uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16 + uses: microsoft/setup-msbuild@v1.0.2 # Execute all unit tests in the solution - name: Execute unit tests diff --git a/ci/msbuild.yml b/ci/msbuild.yml index 4a5d3097d7..29b6acebc1 100644 --- a/ci/msbuild.yml +++ b/ci/msbuild.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - name: Add MSBuild to PATH - uses: microsoft/setup-msbuild@v1 + uses: microsoft/setup-msbuild@v1.0.2 - name: Restore NuGet packages working-directory: ${{env.GITHUB_WORKSPACE}} From dd69301f6fb9aad05c5fffa618d67ddca6b78405 Mon Sep 17 00:00:00 2001 From: Divyanshu Agrawal Date: Thu, 6 May 2021 03:46:37 +0530 Subject: [PATCH 363/366] Remove default value of env 'APP_PORT' (#896) As oc-new-app action now has 'port' as an optional input So, removing default value of env 'APP_PORT' Signed-off-by: divyansh42 --- ci/openshift.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/openshift.yml b/ci/openshift.yml index 3e39dea6b0..6d5c20a2cd 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -45,8 +45,9 @@ env: OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }} OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }} - # ⬇️ EDIT with the port your application should be accessible on. - APP_PORT: 8080 + # ⬇️ EDIT with any additional port your application should expose. + # By default, oc new-app action creates a service to the image's lowest numeric exposed port. + APP_PORT: "" # ⬇️ EDIT if you wish to set the kube context's namespace after login. Leave blank to use the default namespace. OPENSHIFT_NAMESPACE: "" From a188baf4344e4f29212cd40221e46a752158fefe Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Fri, 21 May 2021 08:39:23 +0100 Subject: [PATCH 364/366] Update the tfsec ref point Use the latest commit hash for the action - resolves the issue support code signing --- code-scanning/tfsec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/tfsec.yml b/code-scanning/tfsec.yml index 90406592ee..479f713c96 100644 --- a/code-scanning/tfsec.yml +++ b/code-scanning/tfsec.yml @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v2 - name: Run tfsec - uses: tfsec/tfsec-sarif-action@2ec44316ed27c50d48c931c3c628adc4c8bb1d2b + uses: tfsec/tfsec-sarif-action@9a83b5c3524f825c020e356335855741fd02745f with: sarif_file: tfsec.sarif From 7c29ac248118d9e004eb6776e22cadbca1dd524a Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 24 May 2021 22:02:03 +0200 Subject: [PATCH 365/366] switch to official denoland/setup-deno action (#909) * switch to official denoland/setup-deno action Also adds formatting and linting to the workflow (like dart workflow), and use uniform capitalization. * update commit hash Co-authored-by: Josh Gross --- ci/deno.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/ci/deno.yml b/ci/deno.yml index 178b61f053..cf91f5ee79 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -3,8 +3,8 @@ # 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 +# This workflow will install Deno and run tests across stable and canary builds on Windows, Ubuntu and macOS. +# For more information see: https://github.com/denoland/setup-deno name: Deno @@ -20,7 +20,7 @@ jobs: strategy: matrix: - deno: ["v1.x", "nightly"] + deno: ["v1.x", "canary"] os: [macOS-latest, windows-latest, ubuntu-latest] steps: @@ -28,12 +28,20 @@ jobs: uses: actions/checkout@v2 - name: Setup Deno - uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96 + # uses: denoland/setup-deno@v1 + uses: denoland/setup-deno@4a4e59637fa62bd6c086a216c7e4c5b457ea9e79 with: deno-version: ${{ matrix.deno }} # tests across multiple Deno versions - - name: Cache Dependencies + # Uncomment this step to verify the use of 'deno fmt' on each commit. + # - name: Verify formatting + # run: deno fmt --check + + - name: Run linter + run: deno lint + + - name: Cache dependencies run: deno cache deps.ts - - name: Run Tests + - name: Run tests run: deno test -A --unstable From 7225fb07214e24318b712323580185354724fc82 Mon Sep 17 00:00:00 2001 From: Kornmuas <85044076+kornmuas@users.noreply.github.com> Date: Sun, 30 May 2021 11:44:03 +0700 Subject: [PATCH 366/366] Delete .gitattributes --- .gitattributes | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 176a458f94..0000000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto