Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
193749b5aa | ||
|
|
c79b395ae3 | ||
|
|
4afa7ab9ef | ||
|
|
9d2ef9d746 | ||
|
|
920aa0286c | ||
|
|
7ed78293f7 | ||
|
|
abf7f258d1 | ||
|
|
7e9fc80858 | ||
|
|
d84eed709f | ||
|
|
4aa38dfed2 | ||
|
|
b79be1ea1a | ||
|
|
be562a7239 | ||
|
|
9995e35e75 | ||
|
|
cb6cee5157 | ||
|
|
97ae763335 | ||
|
|
b4f1aae32f | ||
|
|
3dc05114be | ||
|
|
ac240939ca | ||
|
|
b0521d7270 | ||
|
|
0159b6df78 | ||
|
|
e4f46dac76 | ||
|
|
7ce8ea570d | ||
|
|
f1fa7ed328 | ||
|
|
3c3736f598 | ||
|
|
330ca7d1bd | ||
|
|
0170fa5239 | ||
|
|
b4362decc9 | ||
|
|
2ffdd0654e | ||
|
|
4ad3f70666 | ||
|
|
ef82cf1b1a | ||
|
|
b7eff1ebe9 | ||
|
|
87a8d83e30 | ||
|
|
9fd65b230c | ||
|
|
297af984ba | ||
|
|
acf744fba2 | ||
|
|
a6347ae487 | ||
|
|
95df65269a | ||
|
|
e99fd3f99c | ||
|
|
74d3867049 | ||
|
|
54a75270fc | ||
|
|
0195d47eee | ||
|
|
5f92f1fdcc | ||
|
|
26cd848b53 | ||
|
|
861a79590c | ||
|
|
9d886e00f9 | ||
|
|
b188e5bd5b | ||
|
|
c36e34100d | ||
|
|
9171a83a7a | ||
|
|
15d943af34 | ||
|
|
b109c5bb93 | ||
|
|
f7188c3581 | ||
|
|
05c6db96ec | ||
|
|
958d73b16f | ||
|
|
de4411e097 | ||
|
|
0ac0954673 | ||
|
|
bf6f0d9476 | ||
|
|
4828a683d0 | ||
|
|
249441a642 | ||
|
|
75ab82ca92 | ||
|
|
ec3fe32d43 | ||
|
|
c63b77dfb3 | ||
|
|
727a831173 | ||
|
|
15c78f8802 | ||
|
|
60749c6653 | ||
|
|
9a0a11423d | ||
|
|
74c1e87c6b | ||
|
|
9ea914b370 | ||
|
|
1bb7228652 | ||
|
|
3dd92068cf | ||
|
|
a83abcc872 | ||
|
|
70c22e93a3 | ||
|
|
e16f45a27f | ||
|
|
641db8990d | ||
|
|
6eb7d7ec62 | ||
|
|
e4d7e16da8 | ||
|
|
7176a039ba | ||
|
|
fc935ad052 | ||
|
|
6ea0e1fa16 | ||
|
|
dd7519f49e | ||
|
|
f543db49db | ||
|
|
951dfd0da3 | ||
|
|
4411c79d20 | ||
|
|
f1662044f7 | ||
|
|
1a5f94bc68 |
@@ -1,7 +1,17 @@
|
|||||||
Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](https://github.com/actions/starter-workflows/blob/master/CONTRIBUTING.md). Here's a few things for you to consider in this pull request:
|
This repository contains configuration for what users see when they click on the `Actions` tab.
|
||||||
|
|
||||||
- [ ] Include a good description of the workflow.
|
It is not:
|
||||||
- [ ] Links to the language or tool will be nice (unless its really obvious)
|
* A playground to try out scripts
|
||||||
|
* A place for you to create a workflow for your repository
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](https://github.com/actions/starter-workflows/blob/master/CONTRIBUTING.md). Here's a few things for you to consider in this pull request.
|
||||||
|
|
||||||
|
Please **add to this description** at the bottom :point_down:
|
||||||
|
|
||||||
|
- [ ] A good description of the workflow at the bottom of this page.
|
||||||
|
- [ ] Some links to the language or tool will be nice (unless its really obvious)
|
||||||
|
|
||||||
In the workflow and properties files:
|
In the workflow and properties files:
|
||||||
|
|
||||||
@@ -13,14 +23,12 @@ In the workflow and properties files:
|
|||||||
- [ ] The name of CI workflows should only be the name of the language or platform: for example "Go" (not "Go CI" or "Go Build")
|
- [ ] The name of CI workflows should only be the name of the language or platform: for example "Go" (not "Go CI" or "Go Build")
|
||||||
- [ ] Include comments in the workflow for any parts that are not obvious or could use clarification.
|
- [ ] Include comments in the workflow for any parts that are not obvious or could use clarification.
|
||||||
- [ ] CI workflows should run on `push` to `branches: [ master ]` and `pull_request` to `branches: [ master ]`.
|
- [ ] CI workflows should run on `push` to `branches: [ master ]` and `pull_request` to `branches: [ master ]`.
|
||||||
|
- [ ] Packaging workflows should run on `release` with `types: [ created ]`.
|
||||||
Packaging workflows should run on `release` with `types: [ created ]`.
|
|
||||||
|
|
||||||
Some general notes:
|
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 GitHub, [in the `actions` organization](https://github.com/actions), **or**
|
||||||
|
- [ ] This workflow must only use actions that are produced by the language or ecosystem that the workflow supports. These actions must be [published to the GitHub Marketplace](https://github.com/marketplace?type=actions). Workflows using these actions must reference the action using the full 40 character hash of the action's commit instead of a tag. Additionally, workflows must include the following comment at the top of the workflow file:
|
||||||
This workflow must only use actions that are produced by the language or ecosystem that the workflow supports. These actions must be [published to the GitHub Marketplace](https://github.com/marketplace?type=actions). Workflows using these actions must reference the action using the full 40 character hash of the action's commit instead of a tag. Additionally, workflows must include the following comment at the top of the workflow file:
|
|
||||||
```
|
```
|
||||||
# This workflow uses actions that are not certified by GitHub.
|
# 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
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
name: Close as a support issue
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [labeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Close Issue
|
||||||
|
uses: peter-evans/close-issue@v1
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'support')
|
||||||
|
with:
|
||||||
|
comment: |
|
||||||
|
Sorry, but we'd like to keep issues related to code in this repository. Thank you 🙇
|
||||||
|
|
||||||
|
If you have questions about writing workflows or action files, then please [visit the GitHub Community Forum's Actions Board](https://github.community/t5/GitHub-Actions/bd-p/actions)
|
||||||
|
|
||||||
|
If you are having an issue or question about GitHub Actions then please [contact customer support](https://help.github.com/en/articles/about-github-actions#contacting-support)
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
name: Sync workflows for GHES
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -22,5 +24,9 @@ jobs:
|
|||||||
working-directory: ./script/sync-ghes
|
working-directory: ./script/sync-ghes
|
||||||
- run: |
|
- run: |
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Updating GHES workflows"
|
if [ -z "$(git status --porcelain)" ]; then
|
||||||
- run: git push
|
echo "No changes to commit"
|
||||||
|
else
|
||||||
|
git commit -m "Updating GHES workflows"
|
||||||
|
fi
|
||||||
|
- run: git push
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
name: Validate Data
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate-data:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: "12"
|
||||||
|
|
||||||
|
- name: Validate workflows
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npx ts-node-script ./index.ts
|
||||||
|
working-directory: ./script/validate-data
|
||||||
@@ -17,7 +17,7 @@ These are the workflow files for helping people get started with GitHub Actions.
|
|||||||
|
|
||||||
Each workflow must be written in YAML and have a `.yml` extension. They also need a corresponding `.properties.json` file that contains extra metadata about the workflow (this is displayed in the GitHub.com UI).
|
Each workflow must be written in YAML and have a `.yml` extension. They also need a corresponding `.properties.json` file that contains extra metadata about the workflow (this is displayed in the GitHub.com UI).
|
||||||
|
|
||||||
For example: `ci/python-django.yml` and `ci/python-django.properties.json`.
|
For example: `ci/python-django.yml` and `ci/properties/python-django.properties.json`.
|
||||||
|
|
||||||
**Valid properties:**
|
**Valid properties:**
|
||||||
* `name`: the name shown in onboarding
|
* `name`: the name shown in onboarding
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
name: Greetings
|
||||||
|
|
||||||
|
on: [pull_request, issues]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
greeting:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/first-interaction@v1
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
issue-message: 'Message that will be displayed on users'' first issue'
|
||||||
|
pr-message: 'Message that will be displayed on users'' first pr'
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# This workflow will triage pull requests and apply a label based on the
|
||||||
|
# paths that are modified in the pull request.
|
||||||
|
#
|
||||||
|
# To use this workflow, you will need to set up a .github/labeler.yml
|
||||||
|
# file with configuration. For more information, see:
|
||||||
|
# https://github.com/actions/labeler
|
||||||
|
|
||||||
|
name: Labeler
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
label:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v2
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
@@ -15,8 +15,6 @@ on:
|
|||||||
default: 'World'
|
default: 'World'
|
||||||
# Input has to be provided for the workflow to run
|
# Input has to be provided for the workflow to run
|
||||||
required: true
|
required: true
|
||||||
# The data type of the input
|
|
||||||
type: string
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
@@ -29,4 +27,4 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Runs a single command using the runners shell
|
# Runs a single command using the runners shell
|
||||||
- name: Send greeting
|
- name: Send greeting
|
||||||
run: echo "Hello ${{ inputs.name }}"
|
run: echo "Hello ${{ github.event.inputs.name }}"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Greetings",
|
||||||
|
"description": "Greets users who are first time contributors to the repo",
|
||||||
|
"iconName": "octicon smiley",
|
||||||
|
"categories": ["Automation", "SDLC"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Labeler",
|
||||||
|
"description": "Labels pull requests based on the files changed",
|
||||||
|
"iconName": "octicon tag",
|
||||||
|
"categories": ["Automation", "SDLC"]
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Manual workflow",
|
"name": "Manual workflow",
|
||||||
"description": "Simple workflow that is manually triggered.",
|
"description": "Simple workflow that is manually triggered.",
|
||||||
"iconName": "octicon person",
|
"iconName": "blank",
|
||||||
"categories": ["Automation"]
|
"categories": ["Automation"]
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-10
@@ -1,24 +1,16 @@
|
|||||||
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
|
||||||
#
|
|
||||||
# You can adjust the behavior by modifying this file.
|
|
||||||
# For more information, see:
|
|
||||||
# https://github.com/actions/stale
|
|
||||||
name: Mark stale issues and pull requests
|
name: Mark stale issues and pull requests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: $cron-daily
|
- cron: "30 1 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v5
|
- uses: actions/stale@v1
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-issue-message: 'Stale issue message'
|
stale-issue-message: 'Stale issue message'
|
||||||
|
|||||||
-24
@@ -1,24 +0,0 @@
|
|||||||
name: Ada (GNAT)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up GNAT toolchain
|
|
||||||
run: >
|
|
||||||
sudo apt-get update &&
|
|
||||||
sudo apt-get install gnat gprbuild
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: gprbuild -j0 -p
|
|
||||||
+4
-9
@@ -12,15 +12,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: set up JDK 11
|
- name: set up JDK 1.8
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: 1.8
|
||||||
distribution: 'temurin'
|
|
||||||
cache: gradle
|
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
|
||||||
run: chmod +x gradlew
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
|||||||
+5
-6
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will build a Java project with Ant
|
# This workflow will build a Java project with Ant
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
|
||||||
|
|
||||||
name: Java CI
|
name: Java CI
|
||||||
|
|
||||||
@@ -15,11 +15,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: 1.8
|
||||||
distribution: 'temurin'
|
|
||||||
- name: Build with Ant
|
- name: Build with Ant
|
||||||
run: ant -noinput -buildfile build.xml
|
run: ant -noinput -buildfile build.xml
|
||||||
|
|||||||
+80
@@ -0,0 +1,80 @@
|
|||||||
|
# This workflow will build and push a new container image to Amazon ECR,
|
||||||
|
# and then will deploy a new task definition to Amazon ECS, when a release is created
|
||||||
|
#
|
||||||
|
# To use this workflow, you will need to complete the following set-up steps:
|
||||||
|
#
|
||||||
|
# 1. Create an ECR repository to store your images.
|
||||||
|
# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`.
|
||||||
|
# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name.
|
||||||
|
# Replace the value of `aws-region` in the workflow below with your repository's region.
|
||||||
|
#
|
||||||
|
# 2. Create an ECS task definition, an ECS cluster, and an ECS service.
|
||||||
|
# For example, follow the Getting Started guide on the ECS console:
|
||||||
|
# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun
|
||||||
|
# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names.
|
||||||
|
#
|
||||||
|
# 3. Store your ECS task definition as a JSON file in your repository.
|
||||||
|
# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`.
|
||||||
|
# Replace the value of `task-definition` in the workflow below with your JSON file's name.
|
||||||
|
# Replace the value of `container-name` in the workflow below with the name of the container
|
||||||
|
# in the `containerDefinitions` section of the task definition.
|
||||||
|
#
|
||||||
|
# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
|
||||||
|
# See the documentation for each action used below for the recommended IAM policies for this IAM user,
|
||||||
|
# and best practices on handling the access key credentials.
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
name: Deploy to Amazon ECS
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-2
|
||||||
|
|
||||||
|
- name: Login to Amazon ECR
|
||||||
|
id: login-ecr
|
||||||
|
uses: aws-actions/amazon-ecr-login@v1
|
||||||
|
|
||||||
|
- name: Build, tag, and push image to Amazon ECR
|
||||||
|
id: build-image
|
||||||
|
env:
|
||||||
|
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
||||||
|
ECR_REPOSITORY: my-ecr-repo
|
||||||
|
IMAGE_TAG: ${{ github.sha }}
|
||||||
|
run: |
|
||||||
|
# Build a docker container and
|
||||||
|
# push it to ECR so that it can
|
||||||
|
# be deployed to ECS.
|
||||||
|
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
|
||||||
|
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
|
||||||
|
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
|
||||||
|
|
||||||
|
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||||
|
id: task-def
|
||||||
|
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||||
|
with:
|
||||||
|
task-definition: task-definition.json
|
||||||
|
container-name: sample-app
|
||||||
|
image: ${{ steps.build-image.outputs.image }}
|
||||||
|
|
||||||
|
- name: Deploy Amazon ECS task definition
|
||||||
|
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||||
|
with:
|
||||||
|
task-definition: ${{ steps.task-def.outputs.task-definition }}
|
||||||
|
service: sample-app-service
|
||||||
|
cluster: default
|
||||||
|
wait-for-service-stability: true
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
# This workflow will build and push a node.js application to an Azure Web App when a release is created.
|
||||||
|
#
|
||||||
|
# This workflow assumes you have already created the target Azure App Service web app.
|
||||||
|
# For instructions see https://docs.microsoft.com/azure/app-service/app-service-plan-manage#create-an-app-service-plan
|
||||||
|
#
|
||||||
|
# To configure this workflow:
|
||||||
|
#
|
||||||
|
# 1. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile.
|
||||||
|
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
|
||||||
|
#
|
||||||
|
# 2. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below).
|
||||||
|
#
|
||||||
|
# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions
|
||||||
|
# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
env:
|
||||||
|
AZURE_WEBAPP_NAME: your-app-name # set this to your application's name
|
||||||
|
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
|
||||||
|
NODE_VERSION: '10.x' # set this to the node version to use
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
name: Build and Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
- name: npm install, build, and test
|
||||||
|
run: |
|
||||||
|
# Build and test the project, then
|
||||||
|
# deploy to Azure Web App.
|
||||||
|
npm install
|
||||||
|
npm run build --if-present
|
||||||
|
npm run test --if-present
|
||||||
|
- name: 'Deploy to Azure WebApp'
|
||||||
|
uses: azure/webapps-deploy@v2
|
||||||
|
with:
|
||||||
|
app-name: ${{ env.AZURE_WEBAPP_NAME }}
|
||||||
|
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
|
||||||
|
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
|
||||||
+12
-15
@@ -2,17 +2,14 @@
|
|||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Controls when the workflow will run
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||||
|
# events but only for the $default-branch branch
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the $default-branch branch
|
|
||||||
push:
|
push:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
# This workflow contains a single job called "build"
|
||||||
@@ -22,15 +19,15 @@ jobs:
|
|||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# Runs a single command using the runners shell
|
# Runs a single command using the runners shell
|
||||||
- name: Run a one-line script
|
- name: Run a one-line script
|
||||||
run: echo Hello, world!
|
run: echo Hello, world!
|
||||||
|
|
||||||
# Runs a set of commands using the runners shell
|
# Runs a set of commands using the runners shell
|
||||||
- name: Run a multi-line script
|
- name: Run a multi-line script
|
||||||
run: |
|
run: |
|
||||||
echo Add other actions to build,
|
echo Add other actions to build,
|
||||||
echo test, and deploy your project.
|
echo test, and deploy your project.
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: configure
|
- name: configure
|
||||||
run: ./configure
|
run: ./configure
|
||||||
- name: make
|
- name: make
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: lein deps
|
run: lein deps
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
@@ -1,75 +0,0 @@
|
|||||||
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
|
|
||||||
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
|
|
||||||
name: CMake on multiple platforms
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
|
|
||||||
fail-fast: false
|
|
||||||
|
|
||||||
# Set up a matrix to run the following 3 configurations:
|
|
||||||
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
|
|
||||||
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
|
|
||||||
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
|
|
||||||
#
|
|
||||||
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest]
|
|
||||||
build_type: [Release]
|
|
||||||
c_compiler: [gcc, clang, cl]
|
|
||||||
include:
|
|
||||||
- os: windows-latest
|
|
||||||
c_compiler: cl
|
|
||||||
cpp_compiler: cl
|
|
||||||
- os: ubuntu-latest
|
|
||||||
c_compiler: gcc
|
|
||||||
cpp_compiler: g++
|
|
||||||
- os: ubuntu-latest
|
|
||||||
c_compiler: clang
|
|
||||||
cpp_compiler: clang++
|
|
||||||
exclude:
|
|
||||||
- os: windows-latest
|
|
||||||
c_compiler: gcc
|
|
||||||
- os: windows-latest
|
|
||||||
c_compiler: clang
|
|
||||||
- os: ubuntu-latest
|
|
||||||
c_compiler: cl
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set reusable strings
|
|
||||||
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
|
|
||||||
id: strings
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: >
|
|
||||||
cmake -B ${{ steps.strings.outputs.build-output-dir }}
|
|
||||||
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
|
|
||||||
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
|
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
|
||||||
-S ${{ github.workspace }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
|
|
||||||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ steps.strings.outputs.build-output-dir }}
|
|
||||||
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
|
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
run: ctest --build-config ${{ matrix.build_type }}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
|
|
||||||
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
|
|
||||||
name: CMake on a single platform
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
||||||
BUILD_TYPE: Release
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
|
||||||
# You can convert this to a matrix build if you need cross-platform coverage.
|
|
||||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration
|
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
# Execute tests defined by the CMake configuration.
|
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
run: ctest -C ${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
+1
-1
@@ -15,7 +15,7 @@ jobs:
|
|||||||
image: crystallang/crystal
|
image: crystallang/crystal
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: shards install
|
run: shards install
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
name: Dart CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: google/dart:latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pub get
|
||||||
|
- name: Run tests
|
||||||
|
run: pub run test
|
||||||
+3
-3
@@ -13,12 +13,12 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
max-parallel: 4
|
max-parallel: 4
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.7, 3.8, 3.9]
|
python-version: [3.6, 3.7, 3.8]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
|||||||
+1
-1
@@ -13,6 +13,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
||||||
|
|||||||
@@ -0,0 +1,76 @@
|
|||||||
|
name: Docker
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
# Publish `$default-branch` as Docker `latest` image.
|
||||||
|
branches:
|
||||||
|
- $default-branch
|
||||||
|
|
||||||
|
# Publish `v1.2.3` tags as releases.
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
|
||||||
|
# Run tests for any PRs.
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
# TODO: Change variable to your image's name.
|
||||||
|
IMAGE_NAME: image
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Run tests.
|
||||||
|
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
if [ -f docker-compose.test.yml ]; then
|
||||||
|
docker-compose --file docker-compose.test.yml build
|
||||||
|
docker-compose --file docker-compose.test.yml run sut
|
||||||
|
else
|
||||||
|
docker build . --file Dockerfile
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Push image to GitHub Packages.
|
||||||
|
# See also https://docs.docker.com/docker-hub/builds/
|
||||||
|
push:
|
||||||
|
# Ensure test job passes before pushing image.
|
||||||
|
needs: test
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: docker build . --file Dockerfile --tag $IMAGE_NAME
|
||||||
|
|
||||||
|
- name: Log into registry
|
||||||
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
|
- name: Push image
|
||||||
|
run: |
|
||||||
|
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||||
|
|
||||||
|
# Change all uppercase to lowercase
|
||||||
|
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||||
|
|
||||||
|
# Strip git ref prefix from version
|
||||||
|
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
|
||||||
|
|
||||||
|
# Strip "v" prefix from tag name
|
||||||
|
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
|
||||||
|
|
||||||
|
# Use Docker `latest` tag convention
|
||||||
|
[ "$VERSION" == "$default-branch" ] && VERSION=latest
|
||||||
|
|
||||||
|
echo IMAGE_ID=$IMAGE_ID
|
||||||
|
echo VERSION=$VERSION
|
||||||
|
|
||||||
|
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||||
|
docker push $IMAGE_ID:$VERSION
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
# This workflow uses actions that are not certified by GitHub.
|
||||||
|
# They are provided by a third-party and are governed by
|
||||||
|
# separate terms of service, privacy policy, and support
|
||||||
|
# documentation.
|
||||||
|
|
||||||
|
# This workflow will build, test, sign and package a WPF or Windows Forms desktop application
|
||||||
|
# built on .NET Core.
|
||||||
|
# To learn how to migrate your existing application to .NET Core,
|
||||||
|
# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework
|
||||||
|
#
|
||||||
|
# To configure this workflow:
|
||||||
|
#
|
||||||
|
# 1. Configure environment variables
|
||||||
|
# GitHub sets default environment variables for every workflow run.
|
||||||
|
# Replace the variables relative to your project in the "env" section below.
|
||||||
|
#
|
||||||
|
# 2. Signing
|
||||||
|
# Generate a signing certificate in the Windows Application
|
||||||
|
# Packaging Project or add an existing signing certificate to the project.
|
||||||
|
# Next, use PowerShell to encode the .pfx file using Base64 encoding
|
||||||
|
# by running the following Powershell script to generate the output string:
|
||||||
|
#
|
||||||
|
# $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte
|
||||||
|
# [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt'
|
||||||
|
#
|
||||||
|
# Open the output file, SigningCertificate_Encoded.txt, and copy the
|
||||||
|
# string inside. Then, add the string to the repo as a GitHub secret
|
||||||
|
# and name it "Base64_Encoded_Pfx."
|
||||||
|
# For more information on how to configure your signing certificate for
|
||||||
|
# this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing
|
||||||
|
#
|
||||||
|
# Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key".
|
||||||
|
# See "Build the Windows Application Packaging project" below to see how the secret is used.
|
||||||
|
#
|
||||||
|
# For more information on GitHub Actions, refer to https://github.com/features/actions
|
||||||
|
# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications,
|
||||||
|
# refer to https://github.com/microsoft/github-actions-for-desktop-apps
|
||||||
|
|
||||||
|
name: .NET Core Desktop
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
configuration: [Debug, Release]
|
||||||
|
|
||||||
|
runs-on: windows-latest # For a list of available runner types, refer to
|
||||||
|
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
|
||||||
|
|
||||||
|
env:
|
||||||
|
Solution_Name: your-solution-name # Replace with your solution name, i.e. MyWpfApp.sln.
|
||||||
|
Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
|
||||||
|
Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
|
||||||
|
Wap_Project_Path: your-wap-project-path # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj.
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
# Install the .NET Core workload
|
||||||
|
- name: Install .NET Core
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: 3.1.101
|
||||||
|
|
||||||
|
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
||||||
|
- name: Setup MSBuild.exe
|
||||||
|
uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16
|
||||||
|
|
||||||
|
# Execute all unit tests in the solution
|
||||||
|
- name: Execute unit tests
|
||||||
|
run: dotnet test
|
||||||
|
|
||||||
|
# Restore the application to populate the obj folder with RuntimeIdentifiers
|
||||||
|
- name: Restore the application
|
||||||
|
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
|
||||||
|
env:
|
||||||
|
Configuration: ${{ matrix.configuration }}
|
||||||
|
|
||||||
|
# Decode the base 64 encoded pfx and save the Signing_Certificate
|
||||||
|
- name: Decode the pfx
|
||||||
|
run: |
|
||||||
|
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
|
||||||
|
$certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
|
||||||
|
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
|
||||||
|
|
||||||
|
# Create the app package by building and packaging the Windows Application Packaging project
|
||||||
|
- name: Create the app package
|
||||||
|
run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }}
|
||||||
|
env:
|
||||||
|
Appx_Bundle: Always
|
||||||
|
Appx_Bundle_Platforms: x86|x64
|
||||||
|
Appx_Package_Build_Mode: StoreUpload
|
||||||
|
Configuration: ${{ matrix.configuration }}
|
||||||
|
|
||||||
|
# Remove the pfx
|
||||||
|
- name: Remove the pfx
|
||||||
|
run: Remove-Item -path $env:Wap_Project_Directory\$env:Signing_Certificate
|
||||||
|
|
||||||
|
# Upload the MSIX package: https://github.com/marketplace/actions/upload-artifact
|
||||||
|
- name: Upload build artifacts
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: MSIX Package
|
||||||
|
path: ${{ env.Wap_Project_Directory }}\AppPackages
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
name: .NET Core
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup .NET Core
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: 3.1.101
|
||||||
|
- name: Install dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
- name: Build
|
||||||
|
run: dotnet build --configuration Release --no-restore
|
||||||
|
- name: Test
|
||||||
|
run: dotnet test --no-restore --verbosity normal
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
# This workflow will build a .NET project
|
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
|
||||||
|
|
||||||
name: .NET
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Setup .NET
|
|
||||||
uses: actions/setup-dotnet@v4
|
|
||||||
with:
|
|
||||||
dotnet-version: 8.0.x
|
|
||||||
- name: Restore dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
- name: Build
|
|
||||||
run: dotnet build --no-restore
|
|
||||||
- name: Test
|
|
||||||
run: dotnet test --no-build --verbosity normal
|
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
name: Elixir CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
name: Build and test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Elixir
|
||||||
|
uses: actions/setup-elixir@v1
|
||||||
|
with:
|
||||||
|
elixir-version: '1.10.3' # Define the elixir version [required]
|
||||||
|
otp-version: '22.3' # Define the OTP version [required]
|
||||||
|
- name: Restore dependencies cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: deps
|
||||||
|
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-mix-
|
||||||
|
- name: Install dependencies
|
||||||
|
run: mix deps.get
|
||||||
|
- name: Run tests
|
||||||
|
run: mix test
|
||||||
+1
-4
@@ -6,9 +6,6 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@@ -19,7 +16,7 @@ jobs:
|
|||||||
image: erlang:22.0.7
|
image: erlang:22.0.7
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: rebar3 compile
|
run: rebar3 compile
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
name: Ruby Gem
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build + Publish
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Ruby 2.6
|
||||||
|
uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
version: 2.6.x
|
||||||
|
|
||||||
|
- name: Publish to GPR
|
||||||
|
run: |
|
||||||
|
mkdir -p $HOME/.gem
|
||||||
|
touch $HOME/.gem/credentials
|
||||||
|
chmod 0600 $HOME/.gem/credentials
|
||||||
|
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
||||||
|
gem build *.gemspec
|
||||||
|
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
||||||
|
env:
|
||||||
|
GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
|
||||||
|
OWNER: username
|
||||||
|
|
||||||
|
- name: Publish to RubyGems
|
||||||
|
run: |
|
||||||
|
mkdir -p $HOME/.gem
|
||||||
|
touch $HOME/.gem/credentials
|
||||||
|
chmod 0600 $HOME/.gem/credentials
|
||||||
|
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
||||||
|
gem build *.gemspec
|
||||||
|
gem push *.gem
|
||||||
|
env:
|
||||||
|
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
# This workflow uses actions that are not certified by GitHub.
|
|
||||||
# They are provided by a third-party and are governed by
|
|
||||||
# separate terms of service, privacy policy, and support
|
|
||||||
# documentation.
|
|
||||||
|
|
||||||
# This workflow lets you generate SLSA provenance file for your project.
|
|
||||||
# The generation satisfies level 3 for the provenance requirements - see https://slsa.dev/spec/v0.1/requirements
|
|
||||||
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
|
|
||||||
# https://github.com/slsa-framework/slsa-github-generator.
|
|
||||||
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
|
|
||||||
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
|
|
||||||
|
|
||||||
name: SLSA generic generator
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
release:
|
|
||||||
types: [created]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
digests: ${{ steps.hash.outputs.digests }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
# ========================================================
|
|
||||||
#
|
|
||||||
# Step 1: Build your artifacts.
|
|
||||||
#
|
|
||||||
# ========================================================
|
|
||||||
- name: Build artifacts
|
|
||||||
run: |
|
|
||||||
# These are some amazing artifacts.
|
|
||||||
echo "artifact1" > artifact1
|
|
||||||
echo "artifact2" > artifact2
|
|
||||||
|
|
||||||
# ========================================================
|
|
||||||
#
|
|
||||||
# Step 2: Add a step to generate the provenance subjects
|
|
||||||
# as shown below. Update the sha256 sum arguments
|
|
||||||
# to include all binaries that you generate
|
|
||||||
# provenance for.
|
|
||||||
#
|
|
||||||
# ========================================================
|
|
||||||
- name: Generate subject for provenance
|
|
||||||
id: hash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# List the artifacts the provenance will refer to.
|
|
||||||
files=$(ls artifact*)
|
|
||||||
# Generate the subjects (base64 encoded).
|
|
||||||
echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}"
|
|
||||||
|
|
||||||
provenance:
|
|
||||||
needs: [build]
|
|
||||||
permissions:
|
|
||||||
actions: read # To read the workflow path.
|
|
||||||
id-token: write # To sign the provenance.
|
|
||||||
contents: write # To add assets to a release.
|
|
||||||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
|
|
||||||
with:
|
|
||||||
base64-subjects: "${{ needs.build.outputs.digests }}"
|
|
||||||
upload-assets: true # Optional: Upload to a new release
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
# This workflow uses actions that are not certified by GitHub.
|
|
||||||
# They are provided by a third-party and are governed by
|
|
||||||
# separate terms of service, privacy policy, and support
|
|
||||||
# documentation.
|
|
||||||
|
|
||||||
# This workflow lets you compile your Go project using a SLSA3 compliant builder.
|
|
||||||
# This workflow will generate a so-called "provenance" file describing the steps
|
|
||||||
# that were performed to generate the final binary.
|
|
||||||
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
|
|
||||||
# https://github.com/slsa-framework/slsa-github-generator.
|
|
||||||
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
|
|
||||||
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
|
|
||||||
|
|
||||||
name: SLSA Go releaser
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
release:
|
|
||||||
types: [created]
|
|
||||||
|
|
||||||
permissions: read-all
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# ========================================================================================================================================
|
|
||||||
# Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project.
|
|
||||||
# See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file
|
|
||||||
#=========================================================================================================================================
|
|
||||||
build:
|
|
||||||
permissions:
|
|
||||||
id-token: write # To sign.
|
|
||||||
contents: write # To upload release assets.
|
|
||||||
actions: read # To read workflow path.
|
|
||||||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
|
|
||||||
with:
|
|
||||||
go-version: 1.17
|
|
||||||
# =============================================================================================================
|
|
||||||
# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects
|
|
||||||
# =============================================================================================================
|
|
||||||
|
|
||||||
@@ -1,6 +1,3 @@
|
|||||||
# This workflow will build a golang project
|
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
|
||||||
|
|
||||||
name: Go
|
name: Go
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -12,17 +9,29 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: ^1.13
|
||||||
|
id: go
|
||||||
|
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get dependencies
|
||||||
|
run: |
|
||||||
|
go get -v -t -d ./...
|
||||||
|
if [ -f Gopkg.toml ]; then
|
||||||
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
|
dep ensure
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: go build -v .
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v ./...
|
run: go test -v .
|
||||||
|
|||||||
@@ -0,0 +1,75 @@
|
|||||||
|
# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE when a release is created
|
||||||
|
#
|
||||||
|
# To configure this workflow:
|
||||||
|
#
|
||||||
|
# 1. Ensure that your repository contains the necessary configuration for your Google Kubernetes Engine cluster, including deployment.yml, kustomization.yml, service.yml, etc.
|
||||||
|
#
|
||||||
|
# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs).
|
||||||
|
#
|
||||||
|
# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below).
|
||||||
|
|
||||||
|
name: Build and Deploy to GKE
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
# Environment variables available to all jobs and steps in this workflow
|
||||||
|
env:
|
||||||
|
GKE_PROJECT: ${{ secrets.GKE_PROJECT }}
|
||||||
|
GKE_EMAIL: ${{ secrets.GKE_EMAIL }}
|
||||||
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
|
GKE_ZONE: us-west1-a
|
||||||
|
GKE_CLUSTER: example-gke-cluster
|
||||||
|
IMAGE: gke-test
|
||||||
|
REGISTRY_HOSTNAME: gcr.io
|
||||||
|
DEPLOYMENT_NAME: gke-test
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup-build-publish-deploy:
|
||||||
|
name: Setup, Build, Publish, and Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Setup gcloud CLI
|
||||||
|
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||||
|
with:
|
||||||
|
version: '270.0.0'
|
||||||
|
service_account_email: ${{ secrets.GKE_EMAIL }}
|
||||||
|
service_account_key: ${{ secrets.GKE_KEY }}
|
||||||
|
|
||||||
|
# Configure docker to use the gcloud command-line tool as a credential helper
|
||||||
|
- run: |
|
||||||
|
# Set up docker to authenticate
|
||||||
|
# via gcloud command-line tool.
|
||||||
|
gcloud auth configure-docker
|
||||||
|
|
||||||
|
# Build the Docker image
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
docker build -t "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$IMAGE":"$GITHUB_SHA" \
|
||||||
|
--build-arg GITHUB_SHA="$GITHUB_SHA" \
|
||||||
|
--build-arg GITHUB_REF="$GITHUB_REF" .
|
||||||
|
|
||||||
|
# Push the Docker image to Google Container Registry
|
||||||
|
- name: Publish
|
||||||
|
run: |
|
||||||
|
docker push $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:$GITHUB_SHA
|
||||||
|
|
||||||
|
# Set up kustomize
|
||||||
|
- name: Set up Kustomize
|
||||||
|
run: |
|
||||||
|
curl -o kustomize --location https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64
|
||||||
|
chmod u+x ./kustomize
|
||||||
|
|
||||||
|
# Deploy the Docker image to the GKE cluster
|
||||||
|
- name: Deploy
|
||||||
|
run: |
|
||||||
|
gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT
|
||||||
|
./kustomize edit set image $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:${GITHUB_SHA}
|
||||||
|
./kustomize build . | kubectl apply -f -
|
||||||
|
kubectl rollout status deployment/$DEPLOYMENT_NAME
|
||||||
|
kubectl get services -o wide
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
|
||||||
|
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle
|
||||||
|
|
||||||
|
name: Gradle Package
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
|
- name: Build with Gradle
|
||||||
|
run: gradle build
|
||||||
|
|
||||||
|
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
|
||||||
|
# the publishing section of your build.gradle
|
||||||
|
- name: Publish to GitHub Packages
|
||||||
|
run: gradle publish
|
||||||
|
env:
|
||||||
|
USERNAME: ${{ github.actor }}
|
||||||
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# This workflow will build a Java project with Gradle
|
||||||
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
||||||
|
|
||||||
|
name: Java CI with Gradle
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
- name: Grant execute permission for gradlew
|
||||||
|
run: chmod +x gradlew
|
||||||
|
- name: Build with Gradle
|
||||||
|
run: ./gradlew build
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
name: Haskell CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-haskell@v1
|
||||||
|
with:
|
||||||
|
ghc-version: '8.8.2'
|
||||||
|
cabal-version: '3.0'
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v1
|
||||||
|
env:
|
||||||
|
cache-name: cache-cabal
|
||||||
|
with:
|
||||||
|
path: ~/.cabal
|
||||||
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-build-
|
||||||
|
${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
cabal update
|
||||||
|
cabal build --only-dependencies --enable-tests --enable-benchmarks
|
||||||
|
- name: Build
|
||||||
|
run: cabal build --enable-tests --enable-benchmarks all
|
||||||
|
- name: Run tests
|
||||||
|
run: cabal test all
|
||||||
+74
@@ -0,0 +1,74 @@
|
|||||||
|
# This workflow will build a docker container, publish it to IBM Container Registry, and deploy it to IKS when a release is created
|
||||||
|
#
|
||||||
|
# To configure this workflow:
|
||||||
|
#
|
||||||
|
# 1. Ensure that your repository contains a Dockerfile
|
||||||
|
# 2. Setup secrets in your repository by going to settings: Create ICR_NAMESPACE and IBM_CLOUD_API_KEY
|
||||||
|
# 3. Change the values for the IBM_CLOUD_REGION, REGISTRY_HOSTNAME, IMAGE_NAME, IKS_CLUSTER, DEPLOYMENT_NAME, and PORT
|
||||||
|
|
||||||
|
name: Build and Deploy to IKS
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
# Environment variables available to all jobs and steps in this workflow
|
||||||
|
env:
|
||||||
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
|
IBM_CLOUD_API_KEY: ${{ secrets.IBM_CLOUD_API_KEY }}
|
||||||
|
IBM_CLOUD_REGION: us-south
|
||||||
|
ICR_NAMESPACE: ${{ secrets.ICR_NAMESPACE }}
|
||||||
|
REGISTRY_HOSTNAME: us.icr.io
|
||||||
|
IMAGE_NAME: iks-test
|
||||||
|
IKS_CLUSTER: example-iks-cluster-name-or-id
|
||||||
|
DEPLOYMENT_NAME: iks-test
|
||||||
|
PORT: 5001
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup-build-publish-deploy:
|
||||||
|
name: Setup, Build, Publish, and Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Download and Install IBM Cloud CLI
|
||||||
|
- name: Install IBM Cloud CLI
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
|
||||||
|
ibmcloud --version
|
||||||
|
ibmcloud config --check-version=false
|
||||||
|
ibmcloud plugin install -f kubernetes-service
|
||||||
|
ibmcloud plugin install -f container-registry
|
||||||
|
|
||||||
|
# Authenticate with IBM Cloud CLI
|
||||||
|
- name: Authenticate with IBM Cloud CLI
|
||||||
|
run: |
|
||||||
|
ibmcloud login --apikey "${IBM_CLOUD_API_KEY}" -r "${IBM_CLOUD_REGION}" -g default
|
||||||
|
ibmcloud cr region-set "${IBM_CLOUD_REGION}"
|
||||||
|
ibmcloud cr login
|
||||||
|
|
||||||
|
# Build the Docker image
|
||||||
|
- name: Build with Docker
|
||||||
|
run: |
|
||||||
|
docker build -t "$REGISTRY_HOSTNAME"/"$ICR_NAMESPACE"/"$IMAGE_NAME":"$GITHUB_SHA" \
|
||||||
|
--build-arg GITHUB_SHA="$GITHUB_SHA" \
|
||||||
|
--build-arg GITHUB_REF="$GITHUB_REF" .
|
||||||
|
|
||||||
|
# Push the image to IBM Container Registry
|
||||||
|
- name: Push the image to ICR
|
||||||
|
run: |
|
||||||
|
docker push $REGISTRY_HOSTNAME/$ICR_NAMESPACE/$IMAGE_NAME:$GITHUB_SHA
|
||||||
|
|
||||||
|
# Deploy the Docker image to the IKS cluster
|
||||||
|
- name: Deploy to IKS
|
||||||
|
run: |
|
||||||
|
ibmcloud ks cluster config --cluster $IKS_CLUSTER
|
||||||
|
kubectl config current-context
|
||||||
|
kubectl create deployment $DEPLOYMENT_NAME --image=$REGISTRY_HOSTNAME/$ICR_NAMESPACE/$IMAGE_NAME:$GITHUB_SHA --dry-run -o yaml > deployment.yaml
|
||||||
|
kubectl apply -f deployment.yaml
|
||||||
|
kubectl rollout status deployment/$DEPLOYMENT_NAME
|
||||||
|
kubectl create service loadbalancer $DEPLOYMENT_NAME --tcp=80:$PORT --dry-run -o yaml > service.yaml
|
||||||
|
kubectl apply -f service.yaml
|
||||||
|
kubectl get services -o wide
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
name: iOS starter workflow
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and Test default scheme using any available iPhone simulator
|
|
||||||
runs-on: macos-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Set Default Scheme
|
|
||||||
run: |
|
|
||||||
scheme_list=$(xcodebuild -list -json | tr -d "\n")
|
|
||||||
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
|
|
||||||
echo $default | cat >default
|
|
||||||
echo Using default scheme: $default
|
|
||||||
- name: Build
|
|
||||||
env:
|
|
||||||
scheme: ${{ 'default' }}
|
|
||||||
platform: ${{ 'iOS Simulator' }}
|
|
||||||
run: |
|
|
||||||
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
|
|
||||||
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
|
|
||||||
if [ $scheme = default ]; then scheme=$(cat default); fi
|
|
||||||
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
|
|
||||||
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
|
||||||
xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
|
|
||||||
- name: Test
|
|
||||||
env:
|
|
||||||
scheme: ${{ 'default' }}
|
|
||||||
platform: ${{ 'iOS Simulator' }}
|
|
||||||
run: |
|
|
||||||
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
|
|
||||||
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
|
|
||||||
if [ $scheme = default ]; then scheme=$(cat default); fi
|
|
||||||
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
|
|
||||||
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
|
||||||
xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
|
|
||||||
@@ -12,9 +12,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Build the site in the jekyll/builder container
|
- name: Build the site in the jekyll/builder container
|
||||||
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 -R 777 /srv/jekyll && jekyll build --future"
|
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
name: Laravel
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
laravel-tests:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Copy .env
|
||||||
|
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
||||||
|
- name: Generate key
|
||||||
|
run: php artisan key:generate
|
||||||
|
- name: Directory Permissions
|
||||||
|
run: chmod -R 777 storage bootstrap/cache
|
||||||
|
- name: Create Database
|
||||||
|
run: |
|
||||||
|
mkdir -p database
|
||||||
|
touch database/database.sqlite
|
||||||
|
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
||||||
|
env:
|
||||||
|
DB_CONNECTION: sqlite
|
||||||
|
DB_DATABASE: database/database.sqlite
|
||||||
|
run: vendor/bin/phpunit
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
name: Makefile CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: configure
|
|
||||||
run: ./configure
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: make
|
|
||||||
|
|
||||||
- name: Run check
|
|
||||||
run: make check
|
|
||||||
|
|
||||||
- name: Run distcheck
|
|
||||||
run: make distcheck
|
|
||||||
+6
-10
@@ -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/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
|
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
|
||||||
|
|
||||||
name: Maven Package
|
name: Maven Package
|
||||||
|
|
||||||
@@ -11,17 +11,13 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: 1.8
|
||||||
distribution: 'temurin'
|
|
||||||
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
|
||||||
|
|
||||||
@@ -31,4 +27,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 }}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# This workflow will build a Java project with Maven
|
||||||
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
||||||
|
|
||||||
|
name: Java CI with Maven
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
- name: Build with Maven
|
||||||
|
run: mvn -B package --file pom.xml
|
||||||
+5
-7
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
|
# 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,16 +16,14 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [18.x, 20.x, 22.x]
|
node-version: [10.x, 12.x, 14.x]
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v1
|
||||||
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
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
||||||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
||||||
|
|
||||||
name: Node.js Package
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [created]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm test
|
|
||||||
|
|
||||||
publish-gpr:
|
|
||||||
needs: build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
registry-url: $registry-url(npm)
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm publish
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
+21
-7
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
||||||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
||||||
|
|
||||||
name: Node.js Package
|
name: Node.js Package
|
||||||
|
|
||||||
@@ -11,10 +11,10 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 12
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
||||||
@@ -22,12 +22,26 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 12
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||||
|
|
||||||
|
publish-gpr:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
registry-url: https://npm.pkg.github.com/
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm publish
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
name: Xcode - Build and Analyze
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and analyse default scheme using xcodebuild command
|
|
||||||
runs-on: macos-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- 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]}
|
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
name: Phoenix
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [$default-branch]
|
||||||
|
pull_request:
|
||||||
|
branches: [$default-branch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env: {MIX_ENV: test}
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:13
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
# NOTE: Replace "phoenix_test" with your DB name from config/test.exs.
|
||||||
|
POSTGRES_DB: phoenix_test
|
||||||
|
options: >-
|
||||||
|
--health-cmd pg_isready
|
||||||
|
--health-interval 10s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
|
ports: ['5432:5432']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Elixir
|
||||||
|
uses: actions/setup-elixir@v1
|
||||||
|
with:
|
||||||
|
elixir-version: '1.10.3' # Define the elixir version [required]
|
||||||
|
otp-version: '22.3' # Define the OTP version [required]
|
||||||
|
- name: Restore dependencies cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: deps
|
||||||
|
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-mix-
|
||||||
|
- name: Install dependencies
|
||||||
|
run: mix deps.get
|
||||||
|
- name: Run tests
|
||||||
|
run: mix test
|
||||||
+5
-7
@@ -6,23 +6,20 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Validate composer.json and composer.lock
|
- name: Validate composer.json and composer.lock
|
||||||
run: composer validate --strict
|
run: composer validate
|
||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||||
@@ -30,7 +27,8 @@ jobs:
|
|||||||
${{ runner.os }}-php-
|
${{ runner.os }}-php-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install --prefer-dist --no-progress
|
if: steps.composer-cache.outputs.cache-hit != 'true'
|
||||||
|
run: composer install --prefer-dist --no-progress --no-suggest
|
||||||
|
|
||||||
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
|
# 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
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Ada",
|
|
||||||
"description": "Build Ada project with GPRbuild.",
|
|
||||||
"iconName": "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": ["Continuous integration", "Java", "Mobile"]
|
"categories": ["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": ["Continuous integration", "Ant", "Java"]
|
"categories": ["Ant", "Java"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "Deploy to Amazon ECS",
|
||||||
|
"description": "Deploy a container to an Amazon ECS service powered by AWS Fargate or Amazon EC2.",
|
||||||
|
"creator": "Amazon Web Services",
|
||||||
|
"iconName": "aws",
|
||||||
|
"categories": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "Deploy Node.js to Azure Web App",
|
||||||
|
"description": "Build a Node.js project and deploy it to an Azure Web App.",
|
||||||
|
"creator": "Microsoft Azure",
|
||||||
|
"iconName": "azure",
|
||||||
|
"categories": null
|
||||||
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"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": ["Continuous integration", "C", "C++"]
|
"categories": ["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": ["Continuous integration", "Clojure", "Java"]
|
"categories": ["Clojure", "Java"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "CMake based, multi-platform projects",
|
|
||||||
"description": "Build and test a CMake based project on multiple platforms.",
|
|
||||||
"iconName": "cmake",
|
|
||||||
"categories": ["Continuous integration", "C", "C++"]
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "CMake based, single-platform projects",
|
|
||||||
"description": "Build and test a CMake based project on a single-platform.",
|
|
||||||
"iconName": "cmake",
|
|
||||||
"categories": ["Continuous integration", "C", "C++"]
|
|
||||||
}
|
|
||||||
@@ -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": ["Continuous integration", "Crystal"]
|
"categories": ["Crystal"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Dart",
|
||||||
|
"description": "Build and test a Dart project with Pub.",
|
||||||
|
"iconName": "dart",
|
||||||
|
"categories": ["Dart"]
|
||||||
|
}
|
||||||
@@ -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": ["Continuous integration", "Python", "Django"]
|
"categories": ["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": ["Continuous integration", "Dockerfile"]
|
"categories": ["Dockerfile"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Publish Docker Container",
|
||||||
|
"description": "Build, test and push Docker image to GitHub Packages.",
|
||||||
|
"iconName": "docker",
|
||||||
|
"categories": ["Dockerfile"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": ".NET Core Desktop",
|
||||||
|
"description": "Build, test, sign and publish a desktop application built on .NET Core.",
|
||||||
|
"iconName": "dotnetcore",
|
||||||
|
"categories": ["C#", "Visual Basic", "WPF", ".NET"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": ".NET Core",
|
||||||
|
"description": "Build and test a .NET Core or ASP.NET Core project.",
|
||||||
|
"iconName": "dotnetcore",
|
||||||
|
"categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"]
|
||||||
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": ".NET",
|
|
||||||
"description": "Build and test a .NET or ASP.NET Core project.",
|
|
||||||
"iconName": "dotnet",
|
|
||||||
"categories": ["Continuous integration", "C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET", "AspNetCore", "DotNetConsole"]
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Elixir",
|
||||||
|
"description": "Build and test an Elixir project with Mix.",
|
||||||
|
"iconName": "elixir",
|
||||||
|
"categories": ["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": ["Continuous integration", "Erlang"]
|
"categories": ["Erlang"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Ruby Gem",
|
||||||
|
"description": "Pushes a Ruby Gem to RubyGems and GitHub Package Registry.",
|
||||||
|
"iconName": "ruby-gems",
|
||||||
|
"categories": ["Ruby", "SDLC"]
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "SLSA Generic generator",
|
|
||||||
"creator": "Open Source Security Foundation (OpenSSF)",
|
|
||||||
"description": "Generate SLSA3 provenance for your existing release workflows",
|
|
||||||
"iconName": "generator-generic-ossf-slsa3-publish",
|
|
||||||
"categories": ["Continuous integration", "Go", "Elixir", "Erlang", "PHP", "Haskell", "Rust", "Java", "Scala", "Gradle", "Maven", "Python", "C", "C++", "TypeScript", "JavaScript", "npm", "Ruby", "HTML", "Composer", "Makefile", "Ada"]
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "SLSA Go releaser",
|
|
||||||
"creator": "Open Source Security Foundation (OpenSSF)",
|
|
||||||
"description": "Compile your Go project using a SLSA3 compliant builder",
|
|
||||||
"iconName": "go-ossf-slsa3-publish",
|
|
||||||
"categories": ["Continuous integration", "Go"]
|
|
||||||
}
|
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
"name": "Go",
|
"name": "Go",
|
||||||
"description": "Build a Go project.",
|
"description": "Build a Go project.",
|
||||||
"iconName": "go",
|
"iconName": "go",
|
||||||
"categories": ["Continuous integration", "Go"]
|
"categories": ["Go"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "Build and Deploy to GKE",
|
||||||
|
"description": "Build a docker container, publish it to Google Container Registry, and deploy to GKE.",
|
||||||
|
"creator": "Google Cloud",
|
||||||
|
"iconName": "googlegke",
|
||||||
|
"categories": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Publish Java Package with Gradle",
|
||||||
|
"description": "Build a Java Package using Gradle and publish to GitHub Packages.",
|
||||||
|
"iconName": "gradle",
|
||||||
|
"categories": ["Java", "Gradle"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Java with Gradle",
|
||||||
|
"description": "Build and test a Java project using a Gradle wrapper script.",
|
||||||
|
"iconName": "gradle",
|
||||||
|
"categories": ["Java", "Gradle"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Haskell",
|
||||||
|
"description": "Build and test a Haskell project with Cabal.",
|
||||||
|
"iconName": "haskell",
|
||||||
|
"categories": ["Haskell"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "Deploy to IBM Cloud Kubernetes Service",
|
||||||
|
"description": "Build a docker container, publish it to IBM Cloud Container Registry, and deploy to IBM Cloud Kubernetes Service.",
|
||||||
|
"creator": "IBM",
|
||||||
|
"iconName": "ibm",
|
||||||
|
"categories": null
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "iOS",
|
|
||||||
"description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.",
|
|
||||||
"iconName": "xcode",
|
|
||||||
"categories": [
|
|
||||||
"Continuous integration",
|
|
||||||
"iOS",
|
|
||||||
"Xcode"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Jekyll using Docker image",
|
"name": "Jekyll",
|
||||||
"description": "Package a Jekyll site using the jekyll/builder Docker image.",
|
"description": "Package a Jekyll site using the jekyll/builder Docker image.",
|
||||||
"iconName": "jekyll",
|
"iconName": "jekyll",
|
||||||
"categories": ["Continuous integration", "HTML"]
|
"categories": ["HTML"]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "Laravel",
|
||||||
|
"description": "Test a Laravel project.",
|
||||||
|
"iconName": "php",
|
||||||
|
"categories": [
|
||||||
|
"PHP",
|
||||||
|
"Laravel"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"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": ["Continuous integration", "Java", "Maven", "Spring", "JSF"]
|
"categories": ["Java", "Maven"]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Java with Maven",
|
||||||
|
"description": "Build and test a Java project with Apache Maven.",
|
||||||
|
"iconName": "maven",
|
||||||
|
"categories": ["Java", "Maven"]
|
||||||
|
}
|
||||||
@@ -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": ["Continuous integration", "JavaScript", "npm", "React", "Angular", "Vue"]
|
"categories": ["JavaScript", "Node", "Npm"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Publish Node.js Package to GitHub Packages",
|
|
||||||
"description": "Publishes a Node.js package to GitHub Packages.",
|
|
||||||
"iconName": "node-package-transparent",
|
|
||||||
"categories": ["Continuous integration", "JavaScript", "npm"]
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Publish Node.js Package",
|
"name": "Publish Node.js Package",
|
||||||
"description": "Publishes a Node.js package to npm.",
|
"description": "Publishes a Node.js package to npm and GitHub Packages.",
|
||||||
"iconName": "node-package-transparent",
|
"iconName": "node-package-transparent",
|
||||||
"categories": ["Continuous integration", "JavaScript", "npm"]
|
"categories": ["JavaScript", "SDLC"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Xcode - Build and Analyze",
|
|
||||||
"description": "Build Xcode project using xcodebuild",
|
|
||||||
"iconName": "xcode",
|
|
||||||
"categories": ["Continuous integration", "Xcode", "Objective-C"]
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Phoenix",
|
||||||
|
"description": "Build and test an Elixir Phoenix project.",
|
||||||
|
"iconName": "phoenix",
|
||||||
|
"categories": ["Elixir", "Erlang", "Phoenix"]
|
||||||
|
}
|
||||||
@@ -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": ["Continuous integration", "PHP", "Composer"]
|
"categories": ["PHP", "Composer"]
|
||||||
}
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Pylint",
|
|
||||||
"description": "Lint a Python application with pylint.",
|
|
||||||
"iconName": "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": ["Continuous integration", "Python", "Bottle", "Flask"]
|
"categories": ["Python"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Python Package using Anaconda",
|
|
||||||
"description": "Create and test a Python package on multiple Python versions using Anaconda for package management.",
|
|
||||||
"iconName": "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": ["Continuous integration", "Python", "Bottle", "Flask"]
|
"categories": ["Python"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Publish Python Package",
|
||||||
|
"description": "Publish a Python Package to PyPI on release.",
|
||||||
|
"iconName": "python",
|
||||||
|
"categories": ["Python"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Ruby",
|
||||||
|
"description": "Build and test a Ruby project with Rake.",
|
||||||
|
"iconName": "ruby",
|
||||||
|
"categories": ["Ruby"]
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user