diff --git a/automation/greetings.yml b/automation/greetings.yml deleted file mode 100644 index 28ee6b2..0000000 --- a/automation/greetings.yml +++ /dev/null @@ -1,13 +0,0 @@ -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' diff --git a/automation/label.yml b/automation/label.yml deleted file mode 100644 index e90b599..0000000 --- a/automation/label.yml +++ /dev/null @@ -1,19 +0,0 @@ -# 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/blob/master/README.md - -name: Labeler -on: [pull_request] - -jobs: - label: - - runs-on: ubuntu-latest - - steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/automation/properties/greetings.properties.json b/automation/properties/greetings.properties.json deleted file mode 100644 index 743afe3..0000000 --- a/automation/properties/greetings.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Greetings", - "description": "Greets users who are first time contributors to the repo", - "iconName": "octicon smiley", - "categories": ["Automation", "SDLC"] -} diff --git a/automation/properties/label.properties.json b/automation/properties/label.properties.json deleted file mode 100644 index 87a00c8..0000000 --- a/automation/properties/label.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Labeler", - "description": "Labels pull requests based on the files changed", - "iconName": "octicon tag", - "categories": ["Automation", "SDLC"] -} diff --git a/ci/aws.yml b/ci/aws.yml deleted file mode 100644 index 40094ae..0000000 --- a/ci/aws.yml +++ /dev/null @@ -1,80 +0,0 @@ -# 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 \ No newline at end of file diff --git a/ci/azure.yml b/ci/azure.yml deleted file mode 100644 index a638c4c..0000000 --- a/ci/azure.yml +++ /dev/null @@ -1,46 +0,0 @@ -# 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 }} diff --git a/ci/django.yml b/ci/django.yml deleted file mode 100644 index c806047..0000000 --- a/ci/django.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Django CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.6, 3.7, 3.8] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install Dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Run Tests - run: | - python manage.py test diff --git a/ci/elixir.yml b/ci/elixir.yml deleted file mode 100644 index 4de7dcb..0000000 --- a/ci/elixir.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Elixir CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Setup elixir - uses: actions/setup-elixir@v1 - with: - elixir-version: 1.9.4 # Define the elixir version [required] - otp-version: 22.2 # Define the OTP version [required] - - name: Install Dependencies - run: mix deps.get - - name: Run Tests - run: mix test diff --git a/ci/gem-push.yml b/ci/gem-push.yml deleted file mode 100644 index 08733c7..0000000 --- a/ci/gem-push.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Ruby Gem - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -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}} diff --git a/ci/google.yml b/ci/google.yml deleted file mode 100644 index b8d1079..0000000 --- a/ci/google.yml +++ /dev/null @@ -1,75 +0,0 @@ -# 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 diff --git a/ci/haskell.yml b/ci/haskell.yml deleted file mode 100644 index 4bc2d16..0000000 --- a/ci/haskell.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Haskell CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-haskell@v1 - with: - ghc-version: '8.8.2' - cabal-version: '3.0' - - - name: 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 diff --git a/ci/properties/aws.properties.json b/ci/properties/aws.properties.json deleted file mode 100644 index 2988e7c..0000000 --- a/ci/properties/aws.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Deploy to Amazon ECS", - "description": "Deploy a container to an Amazon ECS service powered by AWS Fargate or Amazon EC2.", - "iconName": "aws", - "categories": null -} \ No newline at end of file diff --git a/ci/properties/azure.properties.json b/ci/properties/azure.properties.json deleted file mode 100644 index ba92f6f..0000000 --- a/ci/properties/azure.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Deploy Node.js to Azure Web App", - "description": "Build a Node.js project and deploy it to an Azure Web App.", - "iconName": "azure", - "categories": null -} \ No newline at end of file diff --git a/ci/properties/django.properties.json b/ci/properties/django.properties.json deleted file mode 100644 index 3015441..0000000 --- a/ci/properties/django.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Django", - "description": "Build and Test a Django Project", - "iconName": "django", - "categories": ["Python", "Django"] -} diff --git a/ci/properties/elixir.properties.json b/ci/properties/elixir.properties.json deleted file mode 100644 index 572992d..0000000 --- a/ci/properties/elixir.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Elixir", - "description": "Build and test an Elixir project with Mix.", - "iconName": "elixir", - "categories": ["Elixir", "Erlang"] -} diff --git a/ci/properties/gem-push.properties.json b/ci/properties/gem-push.properties.json deleted file mode 100644 index c54e7b5..0000000 --- a/ci/properties/gem-push.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Ruby Gem", - "description": "Pushes a Ruby Gem to RubyGems and GitHub Package Registry.", - "iconName": "ruby-gems", - "categories": ["Ruby", "SDLC"] -} diff --git a/ci/properties/google.properties.json b/ci/properties/google.properties.json deleted file mode 100644 index dee44b9..0000000 --- a/ci/properties/google.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Build and Deploy to GKE", - "description": "Build a docker container, publish it to Google Container Registry, and deploy to GKE.", - "iconName": "googlegke", - "categories": null -} \ No newline at end of file diff --git a/ci/properties/haskell.properties.json b/ci/properties/haskell.properties.json deleted file mode 100644 index 2dedbf2..0000000 --- a/ci/properties/haskell.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Haskell", - "description": "Build and test a Haskell project with Cabal.", - "iconName": "haskell", - "categories": ["Haskell"] -} diff --git a/ci/properties/python-app.properties.json b/ci/properties/python-app.properties.json deleted file mode 100644 index 34e4a57..0000000 --- a/ci/properties/python-app.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Python application", - "description": "Create and test a Python application.", - "iconName": "python", - "categories": ["Python"] -} diff --git a/ci/properties/python-package.properties.json b/ci/properties/python-package.properties.json deleted file mode 100644 index 4e09d40..0000000 --- a/ci/properties/python-package.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Python package", - "description": "Create and test a Python package on multiple Python versions.", - "iconName": "python", - "categories": ["Python"] -} diff --git a/ci/properties/python-publish.properties.json b/ci/properties/python-publish.properties.json deleted file mode 100644 index 4fd9ece..0000000 --- a/ci/properties/python-publish.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Publish Python Package", - "description": "Publish a Python Package to PyPI on release.", - "iconName": "python", - "categories": ["Python"] -} diff --git a/ci/properties/ruby.properties.json b/ci/properties/ruby.properties.json deleted file mode 100644 index 904f12f..0000000 --- a/ci/properties/ruby.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Ruby", - "description": "Build and test a Ruby project with Rake.", - "iconName": "ruby", - "categories": ["Ruby"] -} diff --git a/ci/properties/tencent.properties.json b/ci/properties/tencent.properties.json deleted file mode 100644 index b3d9d3f..0000000 --- a/ci/properties/tencent.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Tencent Kubernetes Engine", - "description": "This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE).", - "iconName": "tencentcloud", - "categories": null -} diff --git a/ci/properties/terraform.properties.json b/ci/properties/terraform.properties.json deleted file mode 100644 index 34fa16e..0000000 --- a/ci/properties/terraform.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Terraform", - "description": "Set up Terraform CLI in your GitHub Actions workflow.", - "iconName": "terraform", - "categories": null -} diff --git a/ci/properties/wpf-dotnet-core.properties.json b/ci/properties/wpf-dotnet-core.properties.json deleted file mode 100644 index f43ea35..0000000 --- a/ci/properties/wpf-dotnet-core.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "WPF .NET Core", - "description": "Build, test and publish a Wpf application built on .NET Core.", - "iconName": "dotnetcore", - "categories": ["C#", "Visual Basic", "WPF", ".NET"] -} \ No newline at end of file diff --git a/ci/python-app.yml b/ci/python-app.yml deleted file mode 100644 index c7f5067..0000000 --- a/ci/python-app.yml +++ /dev/null @@ -1,36 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python application - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest diff --git a/ci/python-package.yml b/ci/python-package.yml deleted file mode 100644 index f1abc2f..0000000 --- a/ci/python-package.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python package - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.5, 3.6, 3.7, 3.8] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest diff --git a/ci/python-publish.yml b/ci/python-publish.yml deleted file mode 100644 index 4e1ef42..0000000 --- a/ci/python-publish.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: Upload Python Package - -on: - release: - types: [created] - -jobs: - deploy: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* diff --git a/ci/ruby.yml b/ci/ruby.yml deleted file mode 100644 index 76c166e..0000000 --- a/ci/ruby.yml +++ /dev/null @@ -1,33 +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 will download a prebuilt Ruby version, install dependencies and run tests with Rake -# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby - -name: Ruby - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - test: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Ruby - # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, - # change this to (see https://github.com/ruby/setup-ruby#versioning): - # uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 - with: - ruby-version: 2.6 - - name: Install dependencies - run: bundle install - - name: Run tests - run: bundle exec rake diff --git a/ci/tencent.yml b/ci/tencent.yml deleted file mode 100644 index 2d4ad03..0000000 --- a/ci/tencent.yml +++ /dev/null @@ -1,75 +0,0 @@ -# This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE). -# -# To configure this workflow: -# -# 1. Ensure that your repository contains the necessary configuration for your Tencent Kubernetes Engine cluster, -# including deployment.yml, kustomization.yml, service.yml, etc. -# -# 2. Set up secrets in your workspace: -# - TENCENT_CLOUD_SECRET_ID with Tencent Cloud secret id -# - TENCENT_CLOUD_SECRET_KEY with Tencent Cloud secret key -# - TENCENT_CLOUD_ACCOUNT_ID with Tencent Cloud account id -# - TKE_REGISTRY_PASSWORD with TKE registry password -# -# 3. Change the values for the TKE_IMAGE_URL, TKE_REGION, TKE_CLUSTER_ID and DEPLOYMENT_NAME environment variables (below). - -name: Tencent Kubernetes Engine - -on: - release: - types: [created] - -# Environment variables available to all jobs and steps in this workflow -env: - TKE_IMAGE_URL: ccr.ccs.tencentyun.com/demo/mywebapp - TKE_REGION: ap-guangzhou - TKE_CLUSTER_ID: cls-mywebapp - DEPLOYMENT_NAME: tke-test - -jobs: - setup-build-publish-deploy: - name: Setup, Build, Publish, and Deploy - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - # Build - - name: Build Docker image - run: | - docker build -t ${TKE_IMAGE_URL}:${GITHUB_SHA} . - - - name: Login TKE Registry - run: | - docker login -u ${{ secrets.TENCENT_CLOUD_ACCOUNT_ID }} -p ${{ secrets.TKE_REGISTRY_PASSWORD }} ${TKE_IMAGE_URL} - - # Push the Docker image to TKE Registry - - name: Publish - run: | - docker push ${TKE_IMAGE_URL}:${GITHUB_SHA} - - - name: Set up Kustomize - run: | - curl -o kustomize --location https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 - chmod u+x ./kustomize - - - name: Set up ~/.kube/config for connecting TKE cluster - uses: TencentCloud/tke-cluster-credential-action@v1 - with: - secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} - secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} - tke_region: ${{ env.TKE_REGION }} - cluster_id: ${{ env.TKE_CLUSTER_ID }} - - - name: Switch to TKE context - run: | - kubectl config use-context ${TKE_CLUSTER_ID}-context-default - - # Deploy the Docker image to the TKE cluster - - name: Deploy - run: | - ./kustomize edit set image ${TKE_IMAGE_URL}:${GITHUB_SHA} - ./kustomize build . | kubectl apply -f - - kubectl rollout status deployment/${DEPLOYMENT_NAME} - kubectl get services -o wide \ No newline at end of file diff --git a/ci/terraform.yml b/ci/terraform.yml deleted file mode 100644 index 148f2e2..0000000 --- a/ci/terraform.yml +++ /dev/null @@ -1,90 +0,0 @@ -# This workflow installs the latest version of Terraform CLI and configures the Terraform CLI configuration file -# with an API token for Terraform Cloud (app.terraform.io). On pull request events, this workflow will run -# `terraform init`, `terraform fmt`, and `terraform plan` (speculative plan via Terraform Cloud). On push events -# to the master branch, `terraform apply` will be executed. -# -# Documentation for `hashicorp/setup-terraform` is located here: https://github.com/hashicorp/setup-terraform -# -# To use this workflow, you will need to complete the following setup steps. -# -# 1. Create a `main.tf` file in the root of this repository with the `remote` backend and one or more resources defined. -# Example `main.tf`: -# # The configuration for the `remote` backend. -# terraform { -# backend "remote" { -# # The name of your Terraform Cloud organization. -# organization = "example-organization" -# -# # The name of the Terraform Cloud workspace to store Terraform state files in. -# workspaces { -# name = "example-workspace" -# } -# } -# } -# -# # An example resource that does nothing. -# resource "null_resource" "example" { -# triggers = { -# value = "A example resource that does nothing!" -# } -# } -# -# -# 2. Generate a Terraform Cloud user API token and store it as a GitHub secret (e.g. TF_API_TOKEN) on this repository. -# Documentation: -# - https://www.terraform.io/docs/cloud/users-teams-organizations/api-tokens.html -# - https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets -# -# 3. Reference the GitHub secret in step using the `hashicorp/setup-terraform` GitHub Action. -# Example: -# - name: Setup Terraform -# uses: hashicorp/setup-terraform@v1 -# with: -# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - -name: 'Terraform' - -on: - push: - branches: - - master - pull_request: - -jobs: - terraform: - name: 'Terraform' - runs-on: ubuntu-latest - - # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest - defaults: - run: - shell: bash - - # Checkout the repository to the GitHub Actions runner - steps: - - name: Checkout - uses: actions/checkout@v2 - - # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token - - name: Setup Terraform - uses: hashicorp/setup-terraform@v1 - with: - cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - - # Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc. - - name: Terraform Init - run: terraform init - - # Checks that all Terraform configuration files adhere to a canonical format - - name: Terraform Format - run: terraform fmt -check - - # Generates an execution plan for Terraform - - name: Terraform Plan - run: terraform plan - - # On push to master, build or change infrastructure according to Terraform configuration files - # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - - name: Terraform Apply - if: github.ref == 'refs/heads/master' && github.event_name == 'push' - run: terraform apply -auto-approve diff --git a/ci/wpf-dotnet-core.yml b/ci/wpf-dotnet-core.yml deleted file mode 100644 index 80ec3e5..0000000 --- a/ci/wpf-dotnet-core.yml +++ /dev/null @@ -1,115 +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 will build, test and package a WPF desktop application -# built on .NET Core. -# To learn how to migrate your existing WPF application to .NET Core, -# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework -# -# To configure this workflow: -# -# 1. Configure environment variables -# GitHub sets default environment variables for every workflow run. -# Replace the variables relative to your project in the "env" section below. -# -# 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: WPF .NET Core - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -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 WPF application to populate the obj folder with RuntimeIdentifiers - - name: Restore the WPF application - run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration - env: - Configuration: ${{ matrix.configuration }} - - # Decode the 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 diff --git a/icons/angular.svg b/icons/angular.svg deleted file mode 100644 index 4669274..0000000 --- a/icons/angular.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/aspdotnet.svg b/icons/aspdotnet.svg deleted file mode 100644 index 468a082..0000000 --- a/icons/aspdotnet.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/django.svg b/icons/django.svg deleted file mode 100644 index 68cda56..0000000 --- a/icons/django.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/dotnet.svg b/icons/dotnet.svg deleted file mode 100644 index 9cb09d7..0000000 --- a/icons/dotnet.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/elixir.svg b/icons/elixir.svg deleted file mode 100644 index bed439e..0000000 --- a/icons/elixir.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/grunt.svg b/icons/grunt.svg deleted file mode 100644 index ce8e4a6..0000000 --- a/icons/grunt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/gulp.svg b/icons/gulp.svg deleted file mode 100644 index a99af85..0000000 --- a/icons/gulp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/haskell.svg b/icons/haskell.svg deleted file mode 100644 index 02830e8..0000000 --- a/icons/haskell.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/html.svg b/icons/html.svg deleted file mode 100644 index b7c6bb9..0000000 --- a/icons/html.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/python.svg b/icons/python.svg deleted file mode 100644 index 8e2a35b..0000000 --- a/icons/python.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/ruby-gems.svg b/icons/ruby-gems.svg deleted file mode 100644 index 6728ef5..0000000 --- a/icons/ruby-gems.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/ruby.svg b/icons/ruby.svg deleted file mode 100644 index 68b0c8b..0000000 --- a/icons/ruby.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/tencentcloud.svg b/icons/tencentcloud.svg deleted file mode 100644 index af729a4..0000000 --- a/icons/tencentcloud.svg +++ /dev/null @@ -1,29 +0,0 @@ - - - - 矩形 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/terraform.svg b/icons/terraform.svg deleted file mode 100644 index 718fc0f..0000000 --- a/icons/terraform.svg +++ /dev/null @@ -1 +0,0 @@ -terraform-icon logo \ No newline at end of file diff --git a/icons/uwp.svg b/icons/uwp.svg deleted file mode 100644 index 644e266..0000000 --- a/icons/uwp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/webpack.svg b/icons/webpack.svg deleted file mode 100644 index 3e94424..0000000 --- a/icons/webpack.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/xamarin.svg b/icons/xamarin.svg deleted file mode 100644 index ca3c4b7..0000000 --- a/icons/xamarin.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/xcode.svg b/icons/xcode.svg deleted file mode 100644 index a09ea44..0000000 --- a/icons/xcode.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file