Compare commits
375 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 200b0c34b1 | |||
| 0debae5ec7 | |||
| 52edf1b580 | |||
| da223f8a03 | |||
| f61ca9907b | |||
| 56c93ff752 | |||
| 1d8891efc2 | |||
| 93ee3d86f6 | |||
| 97d8c1c765 | |||
| 1b52eb3e6f | |||
| 216dc929eb | |||
| ef1ebb2538 | |||
| 440e8daf05 | |||
| 0f5b68ee4f | |||
| d9dc2c2f72 | |||
| 83bdb0fcd6 | |||
| ed8c87df74 | |||
| 09b078fd76 | |||
| 4a9a12a099 | |||
| 3a3f99717d | |||
| 281a35c5ef | |||
| dcdce00205 | |||
| 8a8c5b274c | |||
| 149db50d43 | |||
| c3de16f318 | |||
| 40f0709bd6 | |||
| 9fccb15dc6 | |||
| bafed29a86 | |||
| 042eac3858 | |||
| e3fc80f30e | |||
| c765d6316f | |||
| e6620ddc5b | |||
| 6e44c89176 | |||
| ffef54a02c | |||
| 700743e332 | |||
| a857e4e5a6 | |||
| 6b14bf21cb | |||
| ad91ff259d | |||
| 2e38bc8da2 | |||
| 5b659e82b4 | |||
| 764ebceaf5 | |||
| 122f83ece7 | |||
| 6a1dba2d71 | |||
| a95943d406 | |||
| d07ff38b96 | |||
| 3c200bdb21 | |||
| b258b33234 | |||
| c342a0c6e3 | |||
| b55a65157e | |||
| b7d9f15826 | |||
| 2a1abda503 | |||
| 85d2a866f0 | |||
| 5d273fbcb3 | |||
| d4dccf0b1e | |||
| c705225b8f | |||
| 596b345944 | |||
| 7b9e3b6858 | |||
| 13f632a90b | |||
| 65fef9614f | |||
| 02d91c6ccf | |||
| 6b053712be | |||
| 8c91a4c02f | |||
| 15daabeaa4 | |||
| 4087ed4594 | |||
| 7f30309cce | |||
| f0b8c8ad72 | |||
| 70655750b2 | |||
| cb6678504a | |||
| fd79bd4838 | |||
| b5a43f8049 | |||
| 9426610033 | |||
| b58a4e21c6 | |||
| 4a9a1680df | |||
| 5a1343bb22 | |||
| 97de22b47c | |||
| 835899e531 | |||
| 55f65bcc15 | |||
| 9b4fcbf911 | |||
| 7d41cdb581 | |||
| e4091f2f55 | |||
| 38d4e3bfd2 | |||
| 6dfa11d0c4 | |||
| 45ae2e08fc | |||
| 5e116cb9e8 | |||
| c36ea2c560 | |||
| 59daabb07b | |||
| 9095e7c9d5 | |||
| 1cb322141e | |||
| df5ac56102 | |||
| dda42cb8f2 | |||
| 3175118151 | |||
| 238e55b9b4 | |||
| 149cf11287 | |||
| 48e2865d35 | |||
| 30715e86a4 | |||
| ddf7fe1e94 | |||
| 6d89fb8045 | |||
| 028df69d88 | |||
| 99fae1ecb1 | |||
| b671ee6c7b | |||
| b33f57dde1 | |||
| 84a9757692 | |||
| 29e8b6c38a | |||
| c2cc54a69e | |||
| 7aa1944311 | |||
| e6aff964db | |||
| ff4d33e44b | |||
| 41e3bc11ea | |||
| 79ff92ef6d | |||
| e9f0116056 | |||
| 237e7737ce | |||
| fc748cc482 | |||
| 7b64f44165 | |||
| ac64f9caf5 | |||
| ea5c3f66f6 | |||
| 108dfef5d2 | |||
| dcecd1b59b | |||
| c27ff7a931 | |||
| de71ed7314 | |||
| 94816235a5 | |||
| bb64945011 | |||
| 973d29b6bf | |||
| e4eea0ea9c | |||
| 680b06affc | |||
| c034c62f98 | |||
| 138cc49463 | |||
| 7f3356b05c | |||
| e56cb5c215 | |||
| f5724905e5 | |||
| b2ac199660 | |||
| 671fc9a635 | |||
| 216e9acdac | |||
| 07d3c64757 | |||
| 8bec7d6887 | |||
| 98bde3b31e | |||
| 188b52b51c | |||
| 69184c7484 | |||
| 06f4074d27 | |||
| be437f0ba5 | |||
| 68b47b8e02 | |||
| 380d15a73f | |||
| 9d67bbed4a | |||
| 88c029a192 | |||
| 124226ff32 | |||
| ccf813d3fb | |||
| 0d582377a8 | |||
| c090ea2f1b | |||
| d8d19f1d62 | |||
| 06ae3fa66e | |||
| e3ebfcb93e | |||
| 9267d74ede | |||
| 04b1f539f7 | |||
| 443876fc44 | |||
| 685784690c | |||
| bd814059fc | |||
| 392413861c | |||
| 3b211c9073 | |||
| 7135450ec1 | |||
| 322de7c3ba | |||
| 5e712753c6 | |||
| bc28e7ed6b | |||
| 74200f122d | |||
| 5fa54a2e91 | |||
| e02c6fb241 | |||
| 5ba97df54d | |||
| 8ba0ca0797 | |||
| 5a4ff5225b | |||
| 461a566389 | |||
| c13101078d | |||
| 648a6f0987 | |||
| db54a4d59b | |||
| d2451b84c5 | |||
| 287fdf727c | |||
| db7bb321d0 | |||
| b715fe8782 | |||
| 4ae4e4dcb0 | |||
| 654221f094 | |||
| 3e7eb56f27 | |||
| e12559a4f8 | |||
| 89f121147f | |||
| 5175c33819 | |||
| bcb74bbea1 | |||
| dd423cb25a | |||
| e8d4e37356 | |||
| 55ff908b82 | |||
| 98436d569d | |||
| f6cef1d4ee | |||
| 06731f53f3 | |||
| 6a12971ccb | |||
| 9a5f99cc24 | |||
| a72fa8fd8b | |||
| 1edda09815 | |||
| 3881f701df | |||
| 09bec32a03 | |||
| 27a54d9d4c | |||
| 0f0402f7d6 | |||
| 9482241d4b | |||
| 345e8d6573 | |||
| d268714000 | |||
| 808fc34514 | |||
| acad7b6626 | |||
| b70ebde68c | |||
| 2f86a8abbe | |||
| edd7400d76 | |||
| 3bb230a79a | |||
| ee8dc59f49 | |||
| aa1dc148f7 | |||
| 1dd15d2033 | |||
| 9e53fa6505 | |||
| 81295d6e71 | |||
| ba0243447c | |||
| 89dcaaf2de | |||
| 6daaf84bb3 | |||
| 459c27dca6 | |||
| 0dd0ee5676 | |||
| dd612d895a | |||
| 93e99fd3be | |||
| e254b12b67 | |||
| 85b7086a46 | |||
| 82c4356297 | |||
| d0f93077b7 | |||
| ef2ae0412b | |||
| ff56007cf1 | |||
| a933c15f51 | |||
| 90ba42df70 | |||
| f76dbea38e | |||
| 0c715d6fe2 | |||
| 4c00e7ffc6 | |||
| aaea7d2c91 | |||
| 39a2831576 | |||
| 7b6d03675b | |||
| 9d73235e03 | |||
| 9317366c91 | |||
| 749308b283 | |||
| 6fe53a9ebd | |||
| aa30f1448e | |||
| 41a66c656e | |||
| b574e6db50 | |||
| 282b038713 | |||
| 9c10407107 | |||
| 0fdd36cae1 | |||
| 16a4b62181 | |||
| 1f734b1213 | |||
| 72fb7d8389 | |||
| c0f3fd1127 | |||
| 98db900858 | |||
| d0779b618f | |||
| 1c4f13f881 | |||
| 7c29ac2481 | |||
| 68d67073c3 | |||
| a188baf434 | |||
| c50fae7abe | |||
| 055373ee0b | |||
| 069c83c04b | |||
| dd69301f6f | |||
| a87f3ccb96 | |||
| 19bbf1470b | |||
| 0648edd177 | |||
| 758c82422d | |||
| 86a37d4cad | |||
| cdc95ae299 | |||
| 0fd345a23c | |||
| 5d060a03ec | |||
| 98dbe8f0d1 | |||
| 4e9bf614aa | |||
| 6512983477 | |||
| 8ce9196a32 | |||
| b86977783c | |||
| 225cb8e3c5 | |||
| 536db7f6f5 | |||
| 120036944a | |||
| b6db8893f5 | |||
| a0512d36da | |||
| 5ac32fc097 | |||
| ccfd55f9c8 | |||
| 2678356764 | |||
| 6a69f367db | |||
| ffb4bccd2d | |||
| ed015ab7b9 | |||
| fe49f66316 | |||
| 7d3cfbd035 | |||
| a3d822534a | |||
| 7dab5895e6 | |||
| 78f5a8e8b5 | |||
| 678e77e33c | |||
| cabc659a07 | |||
| 4adf815cfc | |||
| b80a1555aa | |||
| a2e5f8e548 | |||
| 1a9e61817a | |||
| 9d7a348464 | |||
| 97a16c82c5 | |||
| fc65e636f2 | |||
| 01a4b85c82 | |||
| 4c2aa26e36 | |||
| d0084fca76 | |||
| a5afdf4028 | |||
| d9236ebe55 | |||
| 9934c535bb | |||
| 1f729c2f02 | |||
| 804289e1b5 | |||
| 9bca1b7807 | |||
| 2ab72ee403 | |||
| c08e24c17b | |||
| 7c8569ab2b | |||
| e57b8bf79c | |||
| 019de53cfb | |||
| ab8c670faf | |||
| 3d5dfdfe67 | |||
| d3f35ae32d | |||
| b2e786d4e9 | |||
| 6e127e8439 | |||
| bc4826f28a | |||
| 5eb695baec | |||
| ba6a2f292c | |||
| fe22e77a67 | |||
| f42ac9c022 | |||
| 44804bcf66 | |||
| a74640c1ec | |||
| 93599e2505 | |||
| ce86c32a1a | |||
| 16a1b76572 | |||
| 20bd227226 | |||
| 3116545da6 | |||
| 6f1d4e826f | |||
| f5067f01d2 | |||
| de772de4ea | |||
| cd70e3a1c3 | |||
| a29df688f2 | |||
| 761b09ecde | |||
| c451f7ec47 | |||
| 559fd976e2 | |||
| ce889525cc | |||
| 618434daab | |||
| 201fcceef4 | |||
| a115270340 | |||
| db576e4bf4 | |||
| 3cf906bc1b | |||
| 97a0ce7925 | |||
| c6c0c7b5ef | |||
| ccc4742cb3 | |||
| 9786331c77 | |||
| e0e30a0490 | |||
| 26b35f5776 | |||
| f089b6db62 | |||
| 23285c07c6 | |||
| 14be8c2b5a | |||
| cdcc451ead | |||
| 0e973208b8 | |||
| 06274ce330 | |||
| 950da01568 | |||
| 2e8a60b695 | |||
| 4978051373 | |||
| b6f43960ef | |||
| 7ad776e201 | |||
| ace2e21634 | |||
| f344c836c9 | |||
| c088288539 | |||
| 4f53470f32 | |||
| e2f0d8de48 | |||
| 3a4f08c55b | |||
| 1bf4cbdad8 | |||
| ee5512ec21 | |||
| 94f134c8ff | |||
| 6bd0eb9cee | |||
| def8d9d2cb | |||
| 349e3dde95 | |||
| 53ecd5cb8a | |||
| fd28bd2710 | |||
| 194e973f90 | |||
| 1de1e6c777 | |||
| af32ab05c6 | |||
| 29a2e8d1b5 | |||
| 9b42288206 | |||
| 4624b6ee62 |
@@ -1,30 +0,0 @@
|
|||||||
---
|
|
||||||
name: Code Scanning onboarding
|
|
||||||
about: Captures all the information and tasks required to onboard a 3rd party project into Code Scanning
|
|
||||||
title: 'Code Scanning Partner: '
|
|
||||||
labels: 'code scanning'
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
:wave: Thanks for your interest in integrating with Code Scanning! To ensure a swift onboarding of your integration, please provide the following `Requested information` and complete the `Action items` below:
|
|
||||||
|
|
||||||
## Requested information
|
|
||||||
- [ ] Name of your integration:
|
|
||||||
- [ ] Name of your product / company:
|
|
||||||
- [ ] Description of your integration:
|
|
||||||
- [ ] Languages supported by your integration:
|
|
||||||
- [ ] [For integrations leveraging GitHub Actions] PR for your proposed workflow:
|
|
||||||
- [ ] URL to an SVG logo representing your integration / product / company:
|
|
||||||
|
|
||||||
## Action items
|
|
||||||
- [ ] Apply to join the GitHub Technology Partner Program: [partner.github.com/apply](https://partner.github.com/apply?partnershipType=Technology+Partner)
|
|
||||||
- [ ] Develop your integration, by _either_ [following this guide for GitHub Actions](https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/uploading-a-sarif-file-to-github#uploading-a-code-scanning-analysis-with-github-actions), or [integrating directly with the REST API](https://docs.github.com/en/rest/reference/code-scanning#upload-a-sarif-file)
|
|
||||||
- [ ] [For integrations leveraging GitHub Actions] Submit a PR in this repo for your proposed starter workflow. The workflow should:
|
|
||||||
- [ ] Live in [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/code-scanning)
|
|
||||||
- [ ] Have a filename that is in accordance with your product / service / business name, in [_kebab-cased_ format](https://en.wikipedia.org/wiki/Kebab_case), with a `.yml` file extension
|
|
||||||
- [ ] Include comments describing the workflow’s behavior ([example](https://github.com/actions/starter-workflows/blob/c59b62dee0eae1f9f368b7011cf05c2fc42cf084/code-scanning/codeql.yml#L1-L11))
|
|
||||||
- [ ] Trigger on push, pull_request, and schedule events ([example](https://github.com/actions/starter-workflows/blob/c59b62dee0eae1f9f368b7011cf05c2fc42cf084/code-scanning/codeql.yml#L14-L21))
|
|
||||||
- [ ] Reference your GitHub Action using a 40-char commit SHA (e.g. `uses: github/codeql-action@a3a8231e64d3db0e7da0f3b56b9521dcccdfe412`)
|
|
||||||
- [ ] Update the `Requested information` above, ensuring all details are correct
|
|
||||||
- [ ] When ready, please ping `@actions/advanced-security-code-scanning` in a comment below, for a review :bow:
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Add 'code-scanning' label to any changes within 'code-scanning' folder or any subfolders
|
||||||
|
code-scanning:
|
||||||
|
- code-scanning/**/*
|
||||||
@@ -1,32 +1,55 @@
|
|||||||
|
<!--
|
||||||
|
IMPORTANT:
|
||||||
|
|
||||||
This repository contains configuration for what users see when they click on the `Actions` tab and the setup page for Code Scanning.
|
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:
|
It is not:
|
||||||
* A playground to try out scripts
|
* A playground to try out scripts
|
||||||
* A place for you to create a workflow for your repository
|
* 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).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**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.**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
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".
|
- [ ] 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").
|
||||||
- [ ] Includes a matching `ci/properties/*.properties.json` file.
|
- [ ] Should use sentence 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".
|
- [ ] Should be named _only_ by the name of the language or platform (for example, "Go", not "Go CI" or "Go Build").
|
||||||
- [ ] The name of CI workflows should only be 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.
|
||||||
- [ ] 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 ]`.
|
**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 ]`.
|
- [ ] 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)).
|
||||||
|
|
||||||
Some general notes:
|
**For _Code Scanning_ workflows, the workflow:**
|
||||||
|
|
||||||
- [ ] This workflow must only use actions that are produced by GitHub, [in the `actions` organization](https://github.com/actions), **or**
|
- [ ] Should be preserved under [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/ci).
|
||||||
- [ ] 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:
|
- [ ] 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.
|
||||||
|
- [ ] `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)).
|
||||||
|
|
||||||
|
**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 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.
|
# This workflow uses actions that are not certified by GitHub.
|
||||||
# They are provided by a third-party and are governed by
|
# They are provided by a third-party and are governed by
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Close Issue
|
- name: Close Issue
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Close Issue
|
- name: Close Issue
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
name: "Pull Request Labeler"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
- pull_request_target
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
triage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v3
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
@@ -7,12 +7,14 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v3
|
||||||
with:
|
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-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-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-issue-label: 'no-issue-activity'
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -14,7 +16,7 @@ jobs:
|
|||||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
||||||
git config user.email "cschleiden@github.com"
|
git config user.email "cschleiden@github.com"
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "GitHub Actions"
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '12'
|
||||||
- name: Check starter workflows for GHES compat
|
- name: Check starter workflows for GHES compat
|
||||||
|
|||||||
@@ -6,11 +6,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate-data:
|
validate-data:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "12"
|
node-version: "12"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
* @actions/actions-experience
|
* @actions/starter-workflows
|
||||||
|
|
||||||
/code-scanning/ @actions/advanced-security-code-scanning
|
/code-scanning/ @actions/advanced-security-code-scanning
|
||||||
|
|||||||
+1
-1
@@ -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.
|
- 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 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.
|
- 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
|
Thank you
|
||||||
|
|||||||
@@ -10,8 +10,10 @@ These are the workflow files for helping people get started with GitHub Actions.
|
|||||||
|
|
||||||
<img src="https://d3vv6lp55qjaqc.cloudfront.net/items/353A3p3Y2x3c2t2N0c01/Image%202019-08-27%20at%203.25.07%20PM.png" max-width="75%"/>
|
<img src="https://d3vv6lp55qjaqc.cloudfront.net/items/353A3p3Y2x3c2t2N0c01/Image%202019-08-27%20at%203.25.07%20PM.png" max-width="75%"/>
|
||||||
|
|
||||||
**Directory structure:**
|
### Directory structure
|
||||||
* [ci](ci): solutions for Continuous Integration
|
|
||||||
|
* [ci](ci): solutions for Continuous Integration workflows.
|
||||||
|
* [deployments](deployments): solutions for Deployment workflows.
|
||||||
* [automation](automation): solutions for automating workflows.
|
* [automation](automation): solutions for automating workflows.
|
||||||
* [code-scanning](code-scanning): starter workflows for [Code Scanning](https://github.com/features/security)
|
* [code-scanning](code-scanning): starter workflows for [Code Scanning](https://github.com/features/security)
|
||||||
* [icons](icons): svg icons for the relevant template
|
* [icons](icons): svg icons for the relevant template
|
||||||
@@ -20,8 +22,28 @@ Each workflow must be written in YAML and have a `.yml` extension. They also nee
|
|||||||
|
|
||||||
For example: `ci/django.yml` and `ci/properties/django.properties.json`.
|
For example: `ci/django.yml` and `ci/properties/django.properties.json`.
|
||||||
|
|
||||||
**Valid properties:**
|
### Valid properties
|
||||||
* `name`: the name shown in onboarding
|
|
||||||
|
* `name`: the name shown in onboarding. This property is unique within the repository.
|
||||||
* `description`: the description shown in onboarding
|
* `description`: the description shown in onboarding
|
||||||
* `iconName`: the icon name in the relevant folder, for example `django` should have an icon `icons/django.svg`. Only SVG is supported at this time
|
* `iconName`: the icon name in the relevant folder, for example, `django` should have an icon `icons/django.svg`. Only SVG is supported at this time. Another option is to use [octicon](https://primer.style/octicons/). The format to use an octicon is `octicon <<icon name>>`. Example: `octicon person`
|
||||||
* `categories`: the categories that it will be shown under
|
* `creator`: creator of the template shown in onboarding. All the workflow templates from an author will have the same `creator` field.
|
||||||
|
* `categories`: the categories that it will be shown under. Choose at least one category from the list [here](#categories). Further, choose the categories from the list of languages available [here](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml). When a user views the available templates, those templates that match the same language will feature more prominently.
|
||||||
|
|
||||||
|
### Categories
|
||||||
|
* continuous-integration
|
||||||
|
* deployment
|
||||||
|
* testing
|
||||||
|
* code-quality
|
||||||
|
* code-review
|
||||||
|
* dependency-management
|
||||||
|
* monitoring
|
||||||
|
* Automation
|
||||||
|
* utilities
|
||||||
|
|
||||||
|
### Variables
|
||||||
|
These variables can be placed in the starter workflow and will be substituted as detailed below:
|
||||||
|
|
||||||
|
* `$default-branch`: will substitute the branch from the repository, for example `main` and `master`
|
||||||
|
* `$protected-branches`: will substitute any protected branches from the repository
|
||||||
|
* `$cron-daily`: will substitute a valid but random time within the day
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ on: [pull_request, issues]
|
|||||||
jobs:
|
jobs:
|
||||||
greeting:
|
greeting:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/first-interaction@v1
|
- uses: actions/first-interaction@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ jobs:
|
|||||||
label:
|
label:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v2
|
- uses: actions/labeler@v2
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
|
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
||||||
|
#
|
||||||
|
# You can adjust the behavior by modifying this file.
|
||||||
|
# For more information, see:
|
||||||
|
# https://github.com/actions/stale
|
||||||
name: Mark stale issues and pull requests
|
name: Mark stale issues and pull requests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 1 * * *"
|
- cron: $cron-daily
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v3
|
||||||
|
|||||||
+6
-3
@@ -13,10 +13,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: set up JDK 1.8
|
- name: set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: '11'
|
||||||
|
distribution: 'adopt'
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
|
|||||||
+4
-3
@@ -16,9 +16,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: '11'
|
||||||
|
distribution: 'adopt'
|
||||||
- name: Build with Ant
|
- name: Build with Ant
|
||||||
run: ant -noinput -buildfile build.xml
|
run: ant -noinput -buildfile build.xml
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the $default-branch branch
|
# Triggers the workflow on push or pull request events but only for the $default-branch branch
|
||||||
push:
|
push:
|
||||||
|
|||||||
+12
-20
@@ -1,6 +1,10 @@
|
|||||||
name: CMake
|
name: CMake
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||||
@@ -17,30 +21,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Create Build Environment
|
|
||||||
# Some projects don't allow in-source building, so create a separate build directory
|
|
||||||
# We'll use this as our working directory for all subsequent commands
|
|
||||||
run: cmake -E make_directory ${{github.workspace}}/build
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
# Use a bash shell so we can use the same syntax for environment variable
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
# access regardless of the host operating system
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
shell: bash
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
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
|
- name: Build
|
||||||
working-directory: ${{github.workspace}}/build
|
# Build your program with the given configuration
|
||||||
shell: bash
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||||
# Execute the build. You can specify a specific target with "--target <NAME>"
|
|
||||||
run: cmake --build . --config $BUILD_TYPE
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build
|
||||||
shell: bash
|
|
||||||
# Execute tests defined by the CMake configuration.
|
# Execute tests defined by the CMake configuration.
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
# 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}}
|
||||||
|
|
||||||
|
|||||||
+10
-9
@@ -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
|
name: Dart
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -10,18 +15,14 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Print Dart SDK version
|
# Note: This workflow uses the latest stable version of the Dart SDK.
|
||||||
run: dart --version
|
# 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
|
- name: Install dependencies
|
||||||
run: dart pub get
|
run: dart pub get
|
||||||
|
|||||||
+13
-13
@@ -3,8 +3,8 @@
|
|||||||
# separate terms of service, privacy policy, and support
|
# separate terms of service, privacy policy, and support
|
||||||
# documentation.
|
# documentation.
|
||||||
|
|
||||||
# This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS.
|
# This workflow will install Deno then run Deno lint and test.
|
||||||
# For more information see: https://github.com/denolib/setup-deno
|
# For more information see: https://github.com/denoland/setup-deno
|
||||||
|
|
||||||
name: Deno
|
name: Deno
|
||||||
|
|
||||||
@@ -16,24 +16,24 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
deno: ["v1.x", "nightly"]
|
|
||||||
os: [macOS-latest, windows-latest, ubuntu-latest]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup repo
|
- name: Setup repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Deno
|
- name: Setup Deno
|
||||||
uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96
|
# uses: denoland/setup-deno@v1
|
||||||
|
uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e9833173669
|
||||||
with:
|
with:
|
||||||
deno-version: ${{ matrix.deno }} # tests across multiple Deno versions
|
deno-version: v1.x
|
||||||
|
|
||||||
- name: Cache Dependencies
|
# Uncomment this step to verify the use of 'deno fmt' on each commit.
|
||||||
run: deno cache deps.ts
|
# - name: Verify formatting
|
||||||
|
# run: deno fmt --check
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run linter
|
||||||
|
run: deno lint
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
run: deno test -A --unstable
|
run: deno test -A --unstable
|
||||||
|
|||||||
+47
-60
@@ -1,76 +1,63 @@
|
|||||||
name: Docker
|
name: Docker
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: $cron-daily
|
||||||
push:
|
push:
|
||||||
# Publish `$default-branch` as Docker `latest` image.
|
branches: [ $default-branch ]
|
||||||
branches:
|
# Publish semver tags as releases.
|
||||||
- $default-branch
|
tags: [ 'v*.*.*' ]
|
||||||
|
|
||||||
# Publish `v1.2.3` tags as releases.
|
|
||||||
tags:
|
|
||||||
- v*
|
|
||||||
|
|
||||||
# Run tests for any PRs.
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# TODO: Change variable to your image's name.
|
# Use docker.io for Docker Hub if empty
|
||||||
IMAGE_NAME: image
|
REGISTRY: ghcr.io
|
||||||
|
# github.repository as <account>/<repo>
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Run tests.
|
build:
|
||||||
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
if [ -f docker-compose.test.yml ]; then
|
|
||||||
docker-compose --file docker-compose.test.yml build
|
|
||||||
docker-compose --file docker-compose.test.yml run sut
|
|
||||||
else
|
|
||||||
docker build . --file Dockerfile
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Push image to GitHub Packages.
|
|
||||||
# See also https://docs.docker.com/docker-hub/builds/
|
|
||||||
push:
|
|
||||||
# Ensure test job passes before pushing image.
|
|
||||||
needs: test
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'push'
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build image
|
# Login against a Docker registry except on PR
|
||||||
run: docker build . --file Dockerfile --tag $IMAGE_NAME
|
# https://github.com/docker/login-action
|
||||||
|
- name: Log into registry ${{ env.REGISTRY }}
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
||||||
|
with:
|
||||||
|
registry: ${{ env.REGISTRY }}
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Log into registry
|
# Extract metadata (tags, labels) for Docker
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
# https://github.com/docker/metadata-action
|
||||||
|
- name: Extract Docker metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
- name: Push image
|
# Build and push Docker image with Buildx (don't push on PR)
|
||||||
run: |
|
# https://github.com/docker/build-push-action
|
||||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||||
# Change all uppercase to lowercase
|
with:
|
||||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
context: .
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
# Strip git ref prefix from version
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
# Strip "v" prefix from tag name
|
|
||||||
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
|
|
||||||
|
|
||||||
# Use Docker `latest` tag convention
|
|
||||||
[ "$VERSION" == "$default-branch" ] && VERSION=latest
|
|
||||||
|
|
||||||
echo IMAGE_ID=$IMAGE_ID
|
|
||||||
echo VERSION=$VERSION
|
|
||||||
|
|
||||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
|
||||||
docker push $IMAGE_ID:$VERSION
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
|
|
||||||
# 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
|
- name: Setup MSBuild.exe
|
||||||
uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
|
|
||||||
# Execute all unit tests in the solution
|
# Execute all unit tests in the solution
|
||||||
- name: Execute unit tests
|
- name: Execute unit tests
|
||||||
@@ -107,7 +107,7 @@ jobs:
|
|||||||
- name: Remove the pfx
|
- name: Remove the pfx
|
||||||
run: Remove-Item -path $env:Wap_Project_Directory\$env:Signing_Certificate
|
run: Remove-Item -path $env:Wap_Project_Directory\$env:Signing_Certificate
|
||||||
|
|
||||||
# Upload the MSIX package: https://github.com/marketplace/actions/upload-artifact
|
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
+3
-3
@@ -15,10 +15,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Elixir
|
- name: Set up Elixir
|
||||||
uses: actions/setup-elixir@v1
|
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
|
||||||
with:
|
with:
|
||||||
elixir-version: '1.10.3' # Define the elixir version [required]
|
elixir-version: '1.12.3' # Define the elixir version [required]
|
||||||
otp-version: '22.3' # Define the OTP version [required]
|
otp-version: '24.1' # Define the OTP version [required]
|
||||||
- name: Restore dependencies cache
|
- name: Restore dependencies cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build + Publish
|
name: Build + Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: 1.17
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will build a package using Gradle and then publish it to GitHub packages when 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
|
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
|
||||||
|
|
||||||
name: Gradle Package
|
name: Gradle Package
|
||||||
|
|
||||||
@@ -11,13 +11,17 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: '11'
|
||||||
|
distribution: 'adopt'
|
||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
|
|||||||
+6
-4
@@ -1,4 +1,4 @@
|
|||||||
# This workflow will build a Java project with Gradle
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-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
|
name: Java CI with Gradle
|
||||||
@@ -16,10 +16,12 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: '11'
|
||||||
|
distribution: 'adopt'
|
||||||
|
cache: gradle
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
|
|||||||
+4
-2
@@ -25,7 +25,8 @@ jobs:
|
|||||||
scheme: ${{ 'default' }}
|
scheme: ${{ 'default' }}
|
||||||
platform: ${{ 'iOS Simulator' }}
|
platform: ${{ 'iOS Simulator' }}
|
||||||
run: |
|
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 [ $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
|
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}'`
|
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
||||||
@@ -35,7 +36,8 @@ jobs:
|
|||||||
scheme: ${{ 'default' }}
|
scheme: ${{ 'default' }}
|
||||||
platform: ${{ 'iOS Simulator' }}
|
platform: ${{ 'iOS Simulator' }}
|
||||||
run: |
|
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 [ $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
|
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}'`
|
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
||||||
|
|||||||
+1
-1
@@ -17,4 +17,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker run \
|
docker run \
|
||||||
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
|
-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"
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
|
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.0'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
name: Makefile CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: configure
|
||||||
|
run: ./configure
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: make
|
||||||
|
|
||||||
|
- name: Run check
|
||||||
|
run: make check
|
||||||
|
|
||||||
|
- name: Run distcheck
|
||||||
|
run: make distcheck
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will build a package using Maven and then publish it to GitHub packages when 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
|
# 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
|
name: Maven Package
|
||||||
|
|
||||||
@@ -11,13 +11,17 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: '11'
|
||||||
|
distribution: 'adopt'
|
||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
@@ -27,4 +31,4 @@ jobs:
|
|||||||
- name: Publish to GitHub Packages Apache Maven
|
- name: Publish to GitHub Packages Apache Maven
|
||||||
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
|
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|||||||
+6
-4
@@ -1,4 +1,4 @@
|
|||||||
# This workflow will build a Java project with Maven
|
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-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
|
name: Java CI with Maven
|
||||||
@@ -16,9 +16,11 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: '11'
|
||||||
|
distribution: 'adopt'
|
||||||
|
cache: maven
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Add MSBuild to PATH
|
- name: Add MSBuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
|
|
||||||
- name: Restore NuGet packages
|
- name: Restore NuGet packages
|
||||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||||
|
|||||||
+4
-3
@@ -1,4 +1,4 @@
|
|||||||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
# This workflow will do a clean install of node dependencies, cache/restore them, 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
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||||
|
|
||||||
name: Node.js CI
|
name: Node.js CI
|
||||||
@@ -16,15 +16,16 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [10.x, 12.x, 14.x, 15.x]
|
node-version: [12.x, 14.x, 16.x]
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build --if-present
|
- run: npm run build --if-present
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
name: NodeJS with Grunt
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
grunt
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
name: NodeJS with Gulp
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
gulp
|
||||||
+9
-6
@@ -12,9 +12,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 14
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
||||||
@@ -23,9 +23,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 14
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
@@ -35,11 +35,14 @@ jobs:
|
|||||||
publish-gpr:
|
publish-gpr:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 14
|
||||||
registry-url: $registry-url(npm)
|
registry-url: $registry-url(npm)
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
name: Xcode - Build and Analyze
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and analyse default scheme using xcodebuild command
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@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' }}
|
||||||
|
run: |
|
||||||
|
if [ $scheme = default ]; then scheme=$(cat default); fi
|
||||||
|
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
|
||||||
|
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
||||||
|
xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
@@ -1,152 +0,0 @@
|
|||||||
# This workflow uses actions that are not certified by GitHub.
|
|
||||||
# They are provided by a third-party and are governed by
|
|
||||||
# separate terms of service, privacy policy, and support
|
|
||||||
# documentation.
|
|
||||||
|
|
||||||
### The OpenShift Starter workflow will:
|
|
||||||
# - Checkout your repository
|
|
||||||
# - Perform a Docker build
|
|
||||||
# - Push the built image to an image registry
|
|
||||||
# - Log in to your OpenShift cluster
|
|
||||||
# - Create an OpenShift app from the image and expose it to the internet.
|
|
||||||
|
|
||||||
### Before you begin:
|
|
||||||
# - Have write access to a container image registry such as quay.io or Dockerhub.
|
|
||||||
# - Have access to an OpenShift cluster.
|
|
||||||
# - For instructions to get started with OpenShift see https://www.openshift.com/try
|
|
||||||
# - The project you wish to add this workflow to should have a Dockerfile.
|
|
||||||
# - If you don't have a Dockerfile at the repository root, see the buildah-build step.
|
|
||||||
# - Builds from scratch are also available, but require more configuration.
|
|
||||||
|
|
||||||
### To get the workflow running:
|
|
||||||
# 1. Add this workflow to your repository.
|
|
||||||
# 2. Edit the top-level 'env' section, which contains a list of environment variables that must be configured.
|
|
||||||
# 3. Create the secrets referenced in the 'env' section under your repository Settings.
|
|
||||||
# 4. Edit the 'branches' in the 'on' section to trigger the workflow on a push to your branch.
|
|
||||||
# 5. Commit and push your changes.
|
|
||||||
|
|
||||||
# For a more sophisticated example, see https://github.com/redhat-actions/spring-petclinic/blob/main/.github/workflows/petclinic-sample.yaml
|
|
||||||
# Also see our GitHub organization, https://github.com/redhat-actions/
|
|
||||||
|
|
||||||
name: OpenShift
|
|
||||||
|
|
||||||
# ⬇️ Modify the fields marked with ⬇️ to fit your project, and create any secrets that are referenced.
|
|
||||||
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
|
|
||||||
env:
|
|
||||||
# ⬇️ EDIT with your registry and registry path.
|
|
||||||
REGISTRY: quay.io/<username>
|
|
||||||
# ⬇️ EDIT with your registry username.
|
|
||||||
REGISTRY_USER: <username>
|
|
||||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
# ⬇️ EDIT to log into your OpenShift cluster and set up the context.
|
|
||||||
# See https://github.com/redhat-actions/oc-login#readme for how to retrieve these values.
|
|
||||||
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }}
|
|
||||||
OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }}
|
|
||||||
|
|
||||||
# ⬇️ EDIT with the port your application should be accessible on.
|
|
||||||
APP_PORT: 8080
|
|
||||||
|
|
||||||
# ⬇️ EDIT if you wish to set the kube context's namespace after login. Leave blank to use the default namespace.
|
|
||||||
OPENSHIFT_NAMESPACE: ""
|
|
||||||
|
|
||||||
# If you wish to manually provide the APP_NAME and TAG, set them here, otherwise they will be auto-detected.
|
|
||||||
APP_NAME: ""
|
|
||||||
TAG: ""
|
|
||||||
|
|
||||||
on:
|
|
||||||
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
|
|
||||||
push:
|
|
||||||
# Edit to the branch(es) you want to build and deploy on each push.
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
openshift-ci-cd:
|
|
||||||
name: Build and deploy to OpenShift
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Determine app name
|
|
||||||
if: env.APP_NAME == ''
|
|
||||||
run: |
|
|
||||||
echo "APP_NAME=$(basename $PWD)" | tee -a $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Determine tag
|
|
||||||
if: env.TAG == ''
|
|
||||||
run: |
|
|
||||||
echo "TAG=${GITHUB_SHA::7}" | tee -a $GITHUB_ENV
|
|
||||||
|
|
||||||
# https://github.com/redhat-actions/buildah-build#readme
|
|
||||||
- name: Build from Dockerfile
|
|
||||||
uses: redhat-actions/buildah-build@v1
|
|
||||||
with:
|
|
||||||
image: ${{ env.APP_NAME }}
|
|
||||||
tag: ${{ env.TAG }}
|
|
||||||
# If you don't have a dockerfile, see:
|
|
||||||
# https://github.com/redhat-actions/buildah-build#building-from-scratch
|
|
||||||
# Otherwise, point this to your Dockerfile relative to the repository root.
|
|
||||||
dockerfiles: |
|
|
||||||
./Dockerfile
|
|
||||||
|
|
||||||
# https://github.com/redhat-actions/push-to-registry#readme
|
|
||||||
- name: Push to registry
|
|
||||||
id: push-to-registry
|
|
||||||
uses: redhat-actions/push-to-registry@v1
|
|
||||||
with:
|
|
||||||
image: ${{ env.APP_NAME }}
|
|
||||||
tag: ${{ env.TAG }}
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ env.REGISTRY_USER }}
|
|
||||||
password: ${{ env.REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
# The path the image was pushed to is now stored in ${{ steps.push-to-registry.outputs.registry-path }}
|
|
||||||
|
|
||||||
# oc-login works on all platforms, but oc must be installed first.
|
|
||||||
# The GitHub Ubuntu runner already includes oc.
|
|
||||||
# Otherwise, https://github.com/redhat-actions/oc-installer#readme is available.
|
|
||||||
|
|
||||||
# https://github.com/redhat-actions/oc-login#readme
|
|
||||||
- name: Log in to OpenShift
|
|
||||||
uses: redhat-actions/oc-login@v1
|
|
||||||
with:
|
|
||||||
openshift_server_url: ${{ env.OPENSHIFT_SERVER }}
|
|
||||||
openshift_token: ${{ env.OPENSHIFT_TOKEN }}
|
|
||||||
insecure_skip_tls_verify: true
|
|
||||||
namespace: ${{ env.OPENSHIFT_NAMESPACE }}
|
|
||||||
|
|
||||||
# This step should create a deployment, service, and route to run your app and expose it to the internet.
|
|
||||||
# Feel free to replace this with 'oc apply', 'helm install', or however you like to deploy your app.
|
|
||||||
- name: Create and expose app
|
|
||||||
run: |
|
|
||||||
export IMAGE="${{ steps.push-to-registry.outputs.registry-path }}"
|
|
||||||
export PORT=${{ env.APP_PORT }}
|
|
||||||
|
|
||||||
export SELECTOR="app=${{ env.APP_NAME }}"
|
|
||||||
echo "SELECTOR=$SELECTOR" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
set -x
|
|
||||||
# Take down any old deployment
|
|
||||||
oc delete all --selector="$SELECTOR"
|
|
||||||
oc new-app --name $APP_NAME --docker-image="$IMAGE"
|
|
||||||
|
|
||||||
# Make sure the app port is exposed
|
|
||||||
oc patch svc $APP_NAME -p "{ \"spec\": { \"ports\": [{ \"name\": \"$PORT-tcp\", \"port\": $PORT }] } }"
|
|
||||||
oc expose service $APP_NAME --port=$PORT
|
|
||||||
|
|
||||||
oc get all --selector="$SELECTOR"
|
|
||||||
set +x
|
|
||||||
|
|
||||||
export ROUTE="$(oc get route $APP_NAME -o jsonpath='{.spec.host}')"
|
|
||||||
echo "$APP_NAME is exposed at $ROUTE"
|
|
||||||
echo "ROUTE=$ROUTE" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: View application route
|
|
||||||
run: |
|
|
||||||
[[ -n ${{ env.ROUTE }} ]] || (echo "Determining application route failed in previous step"; exit 1)
|
|
||||||
echo "======================== Your application is available at: ========================"
|
|
||||||
echo ${{ env.ROUTE }}
|
|
||||||
echo "==================================================================================="
|
|
||||||
echo
|
|
||||||
echo "Your app can be taken down with: \"oc delete all --selector='${{ env.SELECTOR }}'\""
|
|
||||||
+2
-3
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Validate composer.json and composer.lock
|
- name: Validate composer.json and composer.lock
|
||||||
run: composer validate
|
run: composer validate --strict
|
||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
@@ -27,8 +27,7 @@ jobs:
|
|||||||
${{ runner.os }}-php-
|
${{ runner.os }}-php-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.composer-cache.outputs.cache-hit != 'true'
|
run: composer install --prefer-dist --no-progress
|
||||||
run: composer install --prefer-dist --no-progress --no-suggest
|
|
||||||
|
|
||||||
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
|
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
|
||||||
# Docs: https://getcomposer.org/doc/articles/scripts.md
|
# Docs: https://getcomposer.org/doc/articles/scripts.md
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Ada",
|
"name": "Ada",
|
||||||
"description": "Build Ada project with GPRbuild.",
|
"description": "Build Ada project with GPRbuild.",
|
||||||
"iconName": "ada",
|
"iconName": "ada",
|
||||||
"categories": ["Ada"]
|
"categories": ["Continuous integration", "Ada"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Android CI",
|
"name": "Android CI",
|
||||||
"description": "Build an Android project with Gradle.",
|
"description": "Build an Android project with Gradle.",
|
||||||
"iconName": "android",
|
"iconName": "android",
|
||||||
"categories": ["Java", "Mobile"]
|
"categories": ["Continuous integration", "Java", "Mobile"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Java with Ant",
|
"name": "Java with Ant",
|
||||||
"description": "Build and test a Java project with Apache Ant.",
|
"description": "Build and test a Java project with Apache Ant.",
|
||||||
"iconName": "ant",
|
"iconName": "ant",
|
||||||
"categories": ["Ant", "Java"]
|
"categories": ["Continuous integration", "Ant", "Java"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Simple workflow",
|
"name": "Simple workflow",
|
||||||
"description": "Start with a file with the minimum necessary structure.",
|
"description": "Start with a file with the minimum necessary structure.",
|
||||||
|
"creator": "GitHub",
|
||||||
"iconName": "blank",
|
"iconName": "blank",
|
||||||
"categories": null
|
"categories": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "C/C++ with Make",
|
"name": "C/C++ with Make",
|
||||||
"description": "Build and test a C/C++ project using Make.",
|
"description": "Build and test a C/C++ project using Make.",
|
||||||
"iconName": "c-cpp",
|
"iconName": "c-cpp",
|
||||||
"categories": ["C", "C++"]
|
"categories": ["Continuous integration", "C", "C++"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Clojure",
|
"name": "Clojure",
|
||||||
"description": "Build and test a Clojure project with Leiningen.",
|
"description": "Build and test a Clojure project with Leiningen.",
|
||||||
"iconName": "clojure",
|
"iconName": "clojure",
|
||||||
"categories": ["Clojure", "Java"]
|
"categories": ["Continuous integration", "Clojure", "Java"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "CMake based projects",
|
"name": "CMake based projects",
|
||||||
"description": "Build and test a CMake based project.",
|
"description": "Build and test a CMake based project.",
|
||||||
"iconName": "cmake",
|
"iconName": "cmake",
|
||||||
"categories": ["C", "C++"]
|
"categories": ["Continuous integration", "C", "C++"]
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Crystal",
|
"name": "Crystal",
|
||||||
"description": "Build and test a Crystal project.",
|
"description": "Build and test a Crystal project.",
|
||||||
"iconName": "crystal",
|
"iconName": "crystal",
|
||||||
"categories": ["Crystal"]
|
"categories": ["Continuous integration", "Crystal"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "D",
|
"name": "D",
|
||||||
"description": "Build and test a D project with dub.",
|
"description": "Build and test a D project with dub.",
|
||||||
"iconName": "d",
|
"iconName": "d",
|
||||||
"categories": [ "D" ]
|
"categories": ["Continuous integration", "D"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Dart",
|
"name": "Dart",
|
||||||
"description": "Build and test a Dart project with Pub.",
|
"description": "Build and test a Dart project with Pub.",
|
||||||
"iconName": "dart",
|
"iconName": "dart",
|
||||||
"categories": ["Dart"]
|
"categories": ["Continuous integration", "Dart"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Deno",
|
"name": "Deno",
|
||||||
"description": "Test your Deno project",
|
"description": "Test your Deno project",
|
||||||
"iconName": "deno",
|
"iconName": "deno",
|
||||||
"categories": ["JavaScript", "TypeScript", "Deno"]
|
"categories": ["Continuous integration", "JavaScript", "TypeScript", "Deno"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Django",
|
"name": "Django",
|
||||||
"description": "Build and Test a Django Project",
|
"description": "Build and Test a Django Project",
|
||||||
"iconName": "django",
|
"iconName": "django",
|
||||||
"categories": ["Python", "Django"]
|
"categories": ["Continuous integration", "Python", "Django"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Docker image",
|
"name": "Docker image",
|
||||||
"description": "Build a Docker image to deploy, run, or push to a registry.",
|
"description": "Build a Docker image to deploy, run, or push to a registry.",
|
||||||
"iconName": "docker",
|
"iconName": "docker",
|
||||||
"categories": ["Dockerfile"]
|
"categories": ["Continuous integration", "Dockerfile"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Publish Docker Container",
|
"name": "Publish Docker Container",
|
||||||
"description": "Build, test and push Docker image to GitHub Packages.",
|
"description": "Build, test and push Docker image to GitHub Packages.",
|
||||||
"iconName": "docker",
|
"iconName": "docker",
|
||||||
"categories": ["Dockerfile"]
|
"categories": ["Continuous integration", "Dockerfile"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": ".NET Desktop",
|
"name": ".NET Desktop",
|
||||||
"description": "Build, test, sign and publish a desktop application built on .NET.",
|
"description": "Build, test, sign and publish a desktop application built on .NET.",
|
||||||
"iconName": "dotnet",
|
"iconName": "dotnet",
|
||||||
"categories": ["C#", "Visual Basic", "WPF", ".NET"]
|
"categories": ["Continuous integration", "C#", "Visual Basic", "WPF", ".NET"]
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": ".NET",
|
"name": ".NET",
|
||||||
"description": "Build and test a .NET or ASP.NET Core project.",
|
"description": "Build and test a .NET or ASP.NET Core project.",
|
||||||
"iconName": "dotnet",
|
"iconName": "dotnet",
|
||||||
"categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"]
|
"categories": ["Continuous integration", "C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET", "AspNetCore", "DotNetConsole"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Elixir",
|
"name": "Elixir",
|
||||||
"description": "Build and test an Elixir project with Mix.",
|
"description": "Build and test an Elixir project with Mix.",
|
||||||
"iconName": "elixir",
|
"iconName": "elixir",
|
||||||
"categories": ["Elixir", "Erlang"]
|
"categories": ["Continuous integration", "Elixir", "Erlang"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Erlang",
|
"name": "Erlang",
|
||||||
"description": "Build and test an Erlang project with rebar.",
|
"description": "Build and test an Erlang project with rebar.",
|
||||||
"iconName": "erlang",
|
"iconName": "erlang",
|
||||||
"categories": ["Erlang"]
|
"categories": ["Continuous integration", "Erlang"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Ruby Gem",
|
"name": "Ruby Gem",
|
||||||
"description": "Pushes a Ruby Gem to RubyGems and GitHub Package Registry.",
|
"description": "Pushes a Ruby Gem to RubyGems and GitHub Package Registry.",
|
||||||
"iconName": "ruby-gems",
|
"iconName": "ruby-gems",
|
||||||
"categories": ["Ruby", "SDLC"]
|
"categories": ["Continuous integration", "Ruby"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Go",
|
"name": "Go",
|
||||||
"description": "Build a Go project.",
|
"description": "Build a Go project.",
|
||||||
"iconName": "go",
|
"iconName": "go",
|
||||||
"categories": ["Go"]
|
"categories": ["Continuous integration", "Go"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Publish Java Package with Gradle",
|
"name": "Publish Java Package with Gradle",
|
||||||
"description": "Build a Java Package using Gradle and publish to GitHub Packages.",
|
"description": "Build a Java Package using Gradle and publish to GitHub Packages.",
|
||||||
"iconName": "gradle",
|
"iconName": "gradle",
|
||||||
"categories": ["Java", "Gradle"]
|
"categories": ["Continuous integration", "Java", "Gradle", "Spring", "JSF"]
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Java with Gradle",
|
"name": "Java with Gradle",
|
||||||
"description": "Build and test a Java project using a Gradle wrapper script.",
|
"description": "Build and test a Java project using a Gradle wrapper script.",
|
||||||
"iconName": "gradle",
|
"iconName": "gradle",
|
||||||
"categories": ["Java", "Gradle"]
|
"categories": ["Continuous integration", "Java", "Gradle", "Spring", "JSF"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Haskell",
|
"name": "Haskell",
|
||||||
"description": "Build and test a Haskell project with Cabal.",
|
"description": "Build and test a Haskell project with Cabal.",
|
||||||
"iconName": "haskell",
|
"iconName": "haskell",
|
||||||
"categories": ["Haskell"]
|
"categories": ["Continuous integration", "Haskell"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
"description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.",
|
"description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.",
|
||||||
"iconName": "xcode",
|
"iconName": "xcode",
|
||||||
"categories": [
|
"categories": [
|
||||||
|
"Continuous integration",
|
||||||
"iOS",
|
"iOS",
|
||||||
"Xcode"
|
"Xcode"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Jekyll",
|
"name": "Jekyll",
|
||||||
"description": "Package a Jekyll site using the jekyll/builder Docker image.",
|
"description": "Package a Jekyll site using the jekyll/builder Docker image.",
|
||||||
"iconName": "jekyll",
|
"iconName": "jekyll",
|
||||||
"categories": ["HTML"]
|
"categories": ["Continuous integration", "HTML"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
"description": "Test a Laravel project.",
|
"description": "Test a Laravel project.",
|
||||||
"iconName": "php",
|
"iconName": "php",
|
||||||
"categories": [
|
"categories": [
|
||||||
|
"Continuous integration",
|
||||||
"PHP",
|
"PHP",
|
||||||
"Laravel"
|
"Laravel"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Build projects with Make",
|
||||||
|
"description": "Build and test a project using Make.",
|
||||||
|
"iconName": "makefile",
|
||||||
|
"categories": ["Continuous integration", "Makefile"]
|
||||||
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Publish Java Package with Maven",
|
"name": "Publish Java Package with Maven",
|
||||||
"description": "Build a Java Package using Maven and publish to GitHub Packages.",
|
"description": "Build a Java Package using Maven and publish to GitHub Packages.",
|
||||||
"iconName": "maven",
|
"iconName": "maven",
|
||||||
"categories": ["Java", "Maven"]
|
"categories": ["Continuous integration", "Java", "Maven", "Spring", "JSF"]
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Java with Maven",
|
"name": "Java with Maven",
|
||||||
"description": "Build and test a Java project with Apache Maven.",
|
"description": "Build and test a Java project with Apache Maven.",
|
||||||
"iconName": "maven",
|
"iconName": "maven",
|
||||||
"categories": ["Java", "Maven"]
|
"categories": ["Continuous integration", "Java", "Maven", "Spring", "JSF"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "MSBuild based projects",
|
"name": "MSBuild based projects",
|
||||||
"description": "Build a MSBuild based project.",
|
"description": "Build a MSBuild based project.",
|
||||||
"iconName": "c-cpp",
|
"iconName": "c-cpp",
|
||||||
"categories": ["C", "C++"]
|
"categories": ["Continuous integration", "C", "C++"]
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Node.js",
|
"name": "Node.js",
|
||||||
"description": "Build and test a Node.js project with npm.",
|
"description": "Build and test a Node.js project with npm.",
|
||||||
"iconName": "nodejs",
|
"iconName": "nodejs",
|
||||||
"categories": ["JavaScript", "Node", "Npm"]
|
"categories": ["Continuous integration", "JavaScript", "npm", "React", "Angular", "Vue"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Grunt",
|
||||||
|
"description": "Build a NodeJS project with npm and grunt.",
|
||||||
|
"iconName": "grunt",
|
||||||
|
"categories": ["Continuous integration", "JavaScript", "TypeScript", "npm", "Grunt"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Gulp",
|
||||||
|
"description": "Build a NodeJS project with npm and gulp.",
|
||||||
|
"iconName": "gulp",
|
||||||
|
"categories": ["Continuous integration", "JavaScript", "TypeScript", "npm", "Gulp"]
|
||||||
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Publish Node.js Package",
|
"name": "Publish Node.js Package",
|
||||||
"description": "Publishes a Node.js package to npm and GitHub Packages.",
|
"description": "Publishes a Node.js package to npm and GitHub Packages.",
|
||||||
"iconName": "node-package-transparent",
|
"iconName": "node-package-transparent",
|
||||||
"categories": ["JavaScript", "SDLC"]
|
"categories": ["Continuous integration", "JavaScript", "npm"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Xcode - Build and Analyze",
|
||||||
|
"description": "Build Xcode project using xcodebuild",
|
||||||
|
"iconName": "xcode",
|
||||||
|
"categories": ["Continuous integration", "Xcode", "Objective-C"]
|
||||||
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "PHP",
|
"name": "PHP",
|
||||||
"description": "Build and test a PHP application using Composer",
|
"description": "Build and test a PHP application using Composer",
|
||||||
"iconName": "php",
|
"iconName": "php",
|
||||||
"categories": ["PHP", "Composer"]
|
"categories": ["Continuous integration", "PHP", "Composer"]
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Pylint",
|
"name": "Pylint",
|
||||||
"description": "Lint a Python application with pylint.",
|
"description": "Lint a Python application with pylint.",
|
||||||
"iconName": "python",
|
"iconName": "python",
|
||||||
"categories": ["Python"]
|
"categories": ["Continuous integration", "Python", "Bottle", "Flask"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Python application",
|
"name": "Python application",
|
||||||
"description": "Create and test a Python application.",
|
"description": "Create and test a Python application.",
|
||||||
"iconName": "python",
|
"iconName": "python",
|
||||||
"categories": ["Python"]
|
"categories": ["Continuous integration", "Python", "Bottle", "Flask"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Python Package using Anaconda",
|
"name": "Python Package using Anaconda",
|
||||||
"description": "Create and test a Python package on multiple Python versions using Anaconda for package management.",
|
"description": "Create and test a Python package on multiple Python versions using Anaconda for package management.",
|
||||||
"iconName": "python",
|
"iconName": "python",
|
||||||
"categories": ["Python"]
|
"categories": ["Continuous integration", "Python"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Python package",
|
"name": "Python package",
|
||||||
"description": "Create and test a Python package on multiple Python versions.",
|
"description": "Create and test a Python package on multiple Python versions.",
|
||||||
"iconName": "python",
|
"iconName": "python",
|
||||||
"categories": ["Python"]
|
"categories": ["Continuous integration", "Python", "Bottle", "Flask"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Publish Python Package",
|
"name": "Publish Python Package",
|
||||||
"description": "Publish a Python Package to PyPI on release.",
|
"description": "Publish a Python Package to PyPI on release.",
|
||||||
"iconName": "python",
|
"iconName": "python",
|
||||||
"categories": ["Python"]
|
"categories": ["Continuous integration", "Python"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "R package",
|
"name": "R package",
|
||||||
"description": "Create and test an R package on multiple R versions.",
|
"description": "Create and test an R package on multiple R versions.",
|
||||||
"iconName": "r",
|
"iconName": "r",
|
||||||
"categories": ["R"]
|
"categories": ["Continuous integration", "R"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Ruby",
|
"name": "Ruby",
|
||||||
"description": "Build and test a Ruby project with Rake.",
|
"description": "Build and test a Ruby project with Rake.",
|
||||||
"iconName": "ruby",
|
"iconName": "ruby",
|
||||||
"categories": ["Ruby"]
|
"categories": ["Continuous integration", "Ruby"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Rails - Install Dependencies and Run Linters",
|
||||||
|
"description": "Install dependencies and run linters on Rails application",
|
||||||
|
"iconName": "ruby",
|
||||||
|
"categories": ["Continuous integration", "Ruby", "Rails"]
|
||||||
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Rust",
|
"name": "Rust",
|
||||||
"description": "Build and test a Rust project with Cargo.",
|
"description": "Build and test a Rust project with Cargo.",
|
||||||
"iconName": "rust",
|
"iconName": "rust",
|
||||||
"categories": ["Rust"]
|
"categories": ["Continuous integration", "Rust"]
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Scala",
|
"name": "Scala",
|
||||||
"description": "Build and test a Scala project with SBT.",
|
"description": "Build and test a Scala project with SBT.",
|
||||||
"iconName": "scala",
|
"iconName": "scala",
|
||||||
"categories": ["Scala", "Java"]
|
"categories": ["Continuous integration", "Scala", "Java"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Super Linter - Run Linters for several languages",
|
||||||
|
"description": "Run linters for several languages on your code base for changed files",
|
||||||
|
"iconName": "octicon check-circle",
|
||||||
|
"categories": ["Continuous integration", "code-quality", "code-review"]
|
||||||
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Swift",
|
"name": "Swift",
|
||||||
"description": "Build and test a Swift Package.",
|
"description": "Build and test a Swift Package.",
|
||||||
"iconName": "swift",
|
"iconName": "swift",
|
||||||
"categories": ["Swift"]
|
"categories": ["Continuous integration", "Swift"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"name": "Symfony",
|
||||||
|
"description": "Test a Symfony project.",
|
||||||
|
"iconName": "php",
|
||||||
|
"categories": [
|
||||||
|
"Continuous integration",
|
||||||
|
"PHP",
|
||||||
|
"Symfony"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Webpack",
|
||||||
|
"description": "Build a NodeJS project with npm and webpack.",
|
||||||
|
"iconName": "webpack",
|
||||||
|
"categories": ["Continuous integration", "JavaScript", "TypeScript", "npm", "Webpack"]
|
||||||
|
}
|
||||||
+6
-5
@@ -4,15 +4,16 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: ["3.8", "3.9", "3.10"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|||||||
+2
-2
@@ -16,10 +16,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: "3.10"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.10
|
||||||
- name: Add conda to system path
|
- name: Add conda to system path
|
||||||
run: |
|
run: |
|
||||||
# $CONDA is an environment variable pointing to the root of the miniconda directory
|
# $CONDA is an environment variable pointing to the root of the miniconda directory
|
||||||
|
|||||||
@@ -14,8 +14,9 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.7, 3.8, 3.9]
|
python-version: ["3.8", "3.9", "3.10"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
+14
-9
@@ -1,11 +1,16 @@
|
|||||||
# This workflow 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
|
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
||||||
|
|
||||||
|
# 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: Upload Python Package
|
name: Upload Python Package
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -21,11 +26,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install setuptools wheel twine
|
pip install build
|
||||||
- name: Build and publish
|
- name: Build package
|
||||||
env:
|
run: python -m build
|
||||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
- name: Publish package
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
||||||
run: |
|
with:
|
||||||
python setup.py sdist bdist_wheel
|
user: __token__
|
||||||
twine upload dist/*
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|||||||
@@ -16,15 +16,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: macOS-latest
|
runs-on: macos-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
r-version: [3.5, 3.6]
|
r-version: ['3.6.3', '4.1.1']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up R ${{ matrix.r-version }}
|
- name: Set up R ${{ matrix.r-version }}
|
||||||
uses: r-lib/actions/setup-r@ffe45a39586f073cc2e9af79c4ba563b657dc6e3
|
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
|
||||||
with:
|
with:
|
||||||
r-version: ${{ matrix.r-version }}
|
r-version: ${{ matrix.r-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# 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 linters
|
||||||
|
name: Rails - Install dependencies and run linters
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
jobs:
|
||||||
|
run-lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Ruby and install gems
|
||||||
|
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
# Add or Replace any other security checks here
|
||||||
|
- name: Run security checks
|
||||||
|
run: |
|
||||||
|
bin/bundler-audit --update
|
||||||
|
bin/brakeman -q -w2
|
||||||
|
# Add or Replace any other Linters here
|
||||||
|
- name: Run linters
|
||||||
|
run: |
|
||||||
|
bin/rubocop --parallel
|
||||||
+4
-3
@@ -13,9 +13,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: '11'
|
||||||
|
distribution: 'adopt'
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: sbt test
|
run: sbt test
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user