From 44de3f55def22b01df19e57e0d49435061dc460d Mon Sep 17 00:00:00 2001 From: fjy202 <40914915+fjy202@users.noreply.github.com> Date: Wed, 8 Jan 2020 21:36:19 +0800 Subject: [PATCH 01/21] Pylint --- ci/pylint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ci/pylint.yml diff --git a/ci/pylint.yml b/ci/pylint.yml new file mode 100644 index 0000000..657b06c --- /dev/null +++ b/ci/pylint.yml @@ -0,0 +1,22 @@ +name: Pylint + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Test with pytest + run: | + pylint `ls -R|grep .py$|xargs` From 36ead1ae0dcc488543acf7dc676911c513769f88 Mon Sep 17 00:00:00 2001 From: fjy202 <40914915+fjy202@users.noreply.github.com> Date: Wed, 8 Jan 2020 21:38:25 +0800 Subject: [PATCH 02/21] Delete pylint.yml --- ci/pylint.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 ci/pylint.yml diff --git a/ci/pylint.yml b/ci/pylint.yml deleted file mode 100644 index 657b06c..0000000 --- a/ci/pylint.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Test with pytest - run: | - pylint `ls -R|grep .py$|xargs` From 4d60a5fb725b26cda910cefdd8d3965d0f171a67 Mon Sep 17 00:00:00 2001 From: fjy202 <40914915+fjy202@users.noreply.github.com> Date: Wed, 8 Jan 2020 21:39:31 +0800 Subject: [PATCH 03/21] Create pylint.yml --- ci/pylint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ci/pylint.yml diff --git a/ci/pylint.yml b/ci/pylint.yml new file mode 100644 index 0000000..657b06c --- /dev/null +++ b/ci/pylint.yml @@ -0,0 +1,22 @@ +name: Pylint + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Test with pytest + run: | + pylint `ls -R|grep .py$|xargs` From f30fb6cf24d29be842d2359dfd89a00c1e336557 Mon Sep 17 00:00:00 2001 From: fjy202 <40914915+fjy202@users.noreply.github.com> Date: Wed, 8 Jan 2020 21:41:28 +0800 Subject: [PATCH 04/21] pylint --- ci/properties/pylint.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/pylint.properties.json diff --git a/ci/properties/pylint.properties.json b/ci/properties/pylint.properties.json new file mode 100644 index 0000000..c7d1363 --- /dev/null +++ b/ci/properties/pylint.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Pylint", + "description": "Lint a Python application with pylint.", + "iconName": "python", + "categories": ["Python"] +} From 99a3541086f4c210f74146779f4de814f10ab8ab Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 15 Jan 2020 16:18:25 -0500 Subject: [PATCH 05/21] add Cypress starter workflow --- ci/cypress.yml | 45 +++++++++++++++++++++++++++ ci/properties/cypress.properties.json | 6 ++++ icons/cypress.svg | 16 ++++++++++ 3 files changed, 67 insertions(+) create mode 100644 ci/cypress.yml create mode 100644 ci/properties/cypress.properties.json create mode 100644 icons/cypress.svg diff --git a/ci/cypress.yml b/ci/cypress.yml new file mode 100644 index 0000000..99b4e25 --- /dev/null +++ b/ci/cypress.yml @@ -0,0 +1,45 @@ +name: Cypress + +on: [push] + +env: + CI: 1 # minimal progress output + TERM: xterm # good terminal rendering + +jobs: + e2e: + name: Cypress tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Cache NPM modules + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + - name: Cache Cypress binary + uses: actions/cache@v1 + with: + path: ~/.cache/Cypress + key: ${{ runner.os }}-cypress-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-cypress- + - name: install Cypress + run: | + npm ci + npx cypress verify + - name: E2E tests + run: npx cypress run + # save any error screenshots as test artifacts + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: screenshots + path: cypress/screenshots + # video should always be generated + - uses: actions/upload-artifact@v1 + with: + name: videos + path: cypress/videos diff --git a/ci/properties/cypress.properties.json b/ci/properties/cypress.properties.json new file mode 100644 index 0000000..0fae544 --- /dev/null +++ b/ci/properties/cypress.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Cypress", + "description": "Run end-to-end web application tests using Cypress.io", + "iconName": "cypress", + "categories": ["Testing", "Cypress"] +} diff --git a/icons/cypress.svg b/icons/cypress.svg new file mode 100644 index 0000000..3134aeb --- /dev/null +++ b/icons/cypress.svg @@ -0,0 +1,16 @@ + + + + + + + + From 17d9115a99dac60725eac49ccf37649356f19ad2 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 15 Jan 2020 16:29:35 -0500 Subject: [PATCH 06/21] add comment about cypress gh action --- ci/cypress.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/cypress.yml b/ci/cypress.yml index 99b4e25..c42c930 100644 --- a/ci/cypress.yml +++ b/ci/cypress.yml @@ -7,6 +7,8 @@ env: TERM: xterm # good terminal rendering jobs: + # for simpler configuration you can use 3rd party action + # https://github.com/cypress-io/github-action e2e: name: Cypress tests runs-on: ubuntu-latest From aa2ec78d148d34defae6786f3cfe1b95f85716dc Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Wed, 15 Jul 2020 16:21:25 -0700 Subject: [PATCH 07/21] rename to main --- .github/pull_request_template.md | 2 +- .github/workflows/sync_ghes.yaml | 2 +- CONTRIBUTING.md | 4 ++-- script/sync-ghes/index.ts | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 530b19d..b31d11b 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,7 +6,7 @@ It is not: --- -Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](https://github.com/actions/starter-workflows/blob/master/CONTRIBUTING.md). Here's a few things for you to consider in this pull request. +Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](https://github.com/actions/starter-workflows/blob/main/CONTRIBUTING.md). Here's a few things for you to consider in this pull request. Please **add to this description** at the bottom :point_down: diff --git a/.github/workflows/sync_ghes.yaml b/.github/workflows/sync_ghes.yaml index 54193bd..aa5e741 100644 --- a/.github/workflows/sync_ghes.yaml +++ b/.github/workflows/sync_ghes.yaml @@ -3,7 +3,7 @@ name: Sync workflows for GHES on: push: branches: - - master + - main jobs: sync: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f711b77..91aad39 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,10 +4,10 @@ Hi there 👋 We are excited that you want to contribute a new workflow to this repo. By doing this you are helping people get up and running with GitHub Actions and that's cool 😎. -Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](https://github.com/actions/starter-workflows/blob/master/LICENSE). +Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](https://github.com/actions/starter-workflows/blob/main/LICENSE). Please note that this project is released with a [Contributor Code of Conduct]( -https://github.com/actions/.github/blob/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. +https://github.com/actions/.github/blob/main/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. Before merging a new workflow, the following requirements need to be met: diff --git a/script/sync-ghes/index.ts b/script/sync-ghes/index.ts index ea347cf..0fa3440 100755 --- a/script/sync-ghes/index.ts +++ b/script/sync-ghes/index.ts @@ -148,18 +148,18 @@ async function checkWorkflow( console.log("Switch to GHES branch"); await exec("git", ["checkout", "ghes"]); - // In order to sync from master, we might need to remove some workflows, add some + // In order to sync from main, we might need to remove some workflows, add some // and modify others. The lazy approach is to delete all workflows first, and then - // just bring the compatible ones over from the master branch. We let git figure out + // just bring the compatible ones over from the main branch. We let git figure out // whether it's a deletion, add, or modify and commit the new state. console.log("Remove all workflows"); await exec("rm", ["-fr", ...settings.folders]); await exec("rm", ["-fr", "../../icons"]); - console.log("Sync changes from master for compatible workflows"); + console.log("Sync changes from main for compatible workflows"); await exec("git", [ "checkout", - "master", + "main", "--", ...Array.prototype.concat.apply( [], From 318a078faffca342d7f114f3ad319b4c1e5dec4e Mon Sep 17 00:00:00 2001 From: Steve Desmond Date: Sat, 18 Jul 2020 16:17:03 -0400 Subject: [PATCH 08/21] Update .NET Core SDK version Blazor projects fail to build in 3.1.101 due to a bug in the .NET Core SDK. Updating the SDK to the latest version fixes this bug. --- ci/dotnet-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 03958b6..9ee1a7d 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore - name: Build From 3c570179b76474cc99d4b11c04d7619191872d55 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Wed, 22 Jul 2020 13:44:29 +0200 Subject: [PATCH 09/21] Update artifact actions from v1 to v2 --- ci/dotnet-core-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core-desktop.yml b/ci/dotnet-core-desktop.yml index 341576c..480be78 100644 --- a/ci/dotnet-core-desktop.yml +++ b/ci/dotnet-core-desktop.yml @@ -109,7 +109,7 @@ jobs: # Upload the MSIX package: https://github.com/marketplace/actions/upload-artifact - name: Upload build artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: name: MSIX Package path: ${{ env.Wap_Project_Directory }}\AppPackages From 8f334e85aaaa7ced60daf6174ba818b35768766c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 31 Jul 2020 10:21:41 -0700 Subject: [PATCH 10/21] Use actions/setup-python@v2 --- ci/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/django.yml b/ci/django.yml index b9d5315..6ed9db8 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install Dependencies From e0507e673cae5918f51f7cbc03bd2ade73b629a2 Mon Sep 17 00:00:00 2001 From: Kunwar Toor Date: Mon, 3 Aug 2020 10:47:03 -0700 Subject: [PATCH 11/21] updated google.yml to reflect the more recent gke workflow action given by google in https://github.com/GoogleCloudPlatform/github-actions --- ci/google.yml | 67 +++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index b8d1079..b9d6e74 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -7,69 +7,72 @@ # 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs). # # 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below). +# +# For more support on how to run the workflow, please visit https://github.com/GoogleCloudPlatform/github-actions/tree/master/example-workflows/gke name: Build and Deploy to GKE on: - release: - types: [created] + push: + branches: + - master -# Environment variables available to all jobs and steps in this workflow env: - GKE_PROJECT: ${{ secrets.GKE_PROJECT }} - GKE_EMAIL: ${{ secrets.GKE_EMAIL }} - GITHUB_SHA: ${{ github.sha }} - GKE_ZONE: us-west1-a - GKE_CLUSTER: example-gke-cluster - IMAGE: gke-test - REGISTRY_HOSTNAME: gcr.io - DEPLOYMENT_NAME: gke-test + PROJECT_ID: ${{ secrets.GKE_PROJECT }} + GKE_CLUSTER: cluster-1 # TODO: update to cluster name + GKE_ZONE: us-central1-c # TODO: update to cluster zone + DEPLOYMENT_NAME: gke-test # TODO: update to deployment name + IMAGE: static-site jobs: setup-build-publish-deploy: name: Setup, Build, Publish, and Deploy runs-on: ubuntu-latest - steps: + steps: - name: Checkout uses: actions/checkout@v2 # Setup gcloud CLI - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master with: - version: '270.0.0' - service_account_email: ${{ secrets.GKE_EMAIL }} - service_account_key: ${{ secrets.GKE_KEY }} + version: '290.0.1' + service_account_key: ${{ secrets.GKE_SA_KEY }} + project_id: ${{ secrets.GKE_PROJECT }} + + # Configure Docker to use the gcloud command-line tool as a credential + # helper for authentication + - run: |- + gcloud --quiet auth configure-docker + + # Get the GKE credentials so we can deploy to the cluster + - run: |- + gcloud container clusters get-credentials "$GKE_CLUSTER" --zone "$GKE_ZONE" - # Configure docker to use the gcloud command-line tool as a credential helper - - run: | - # Set up docker to authenticate - # via gcloud command-line tool. - gcloud auth configure-docker - # Build the Docker image - name: Build - run: | - docker build -t "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$IMAGE":"$GITHUB_SHA" \ + run: |- + docker build \ + --tag "gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA" \ --build-arg GITHUB_SHA="$GITHUB_SHA" \ - --build-arg GITHUB_REF="$GITHUB_REF" . + --build-arg GITHUB_REF="$GITHUB_REF" \ + . # Push the Docker image to Google Container Registry - name: Publish - run: | - docker push $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:$GITHUB_SHA - + run: |- + docker push "gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA" + # Set up kustomize - name: Set up Kustomize - run: | - curl -o kustomize --location https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 + run: |- + curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 chmod u+x ./kustomize # Deploy the Docker image to the GKE cluster - name: Deploy - run: | - gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT - ./kustomize edit set image $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:${GITHUB_SHA} + run: |- + ./kustomize edit set image gcr.io/PROJECT_ID/IMAGE:TAG=gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA ./kustomize build . | kubectl apply -f - kubectl rollout status deployment/$DEPLOYMENT_NAME kubectl get services -o wide From 96d4d9913c1959f40e92c5af3549f90cf8cb6e26 Mon Sep 17 00:00:00 2001 From: Kunwar Toor Date: Mon, 3 Aug 2020 10:55:35 -0700 Subject: [PATCH 12/21] updated google.yml to reflect the more recent gke workflow action given by google in https://github.com/GoogleCloudPlatform/github-actions --- ci/google.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index b9d6e74..dc37de4 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -13,9 +13,8 @@ name: Build and Deploy to GKE on: - push: - branches: - - master + release: + types: [created] env: PROJECT_ID: ${{ secrets.GKE_PROJECT }} From 27c4cec0db5be1cbd9d926b157b9319a2c76137e Mon Sep 17 00:00:00 2001 From: ktoor-google <69051209+ktoor-google@users.noreply.github.com> Date: Mon, 10 Aug 2020 16:42:41 -0700 Subject: [PATCH 13/21] Update ci/google.yml Co-authored-by: John Bohannon --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index dc37de4..fb29666 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -4,7 +4,7 @@ # # 1. Ensure that your repository contains the necessary configuration for your Google Kubernetes Engine cluster, including deployment.yml, kustomization.yml, service.yml, etc. # -# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs). +# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project and GKE_SA_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs). # # 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below). # From 0ec52ad66b01f8b0a4e9f22cc71cfab60e70e106 Mon Sep 17 00:00:00 2001 From: ktoor-google <69051209+ktoor-google@users.noreply.github.com> Date: Mon, 10 Aug 2020 16:43:03 -0700 Subject: [PATCH 14/21] Update ci/google.yml Co-authored-by: John Bohannon --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index fb29666..cfbbddb 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -6,7 +6,7 @@ # # 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project and GKE_SA_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs). # -# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below). +# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, and DEPLOYMENT_NAME environment variables (below). # # For more support on how to run the workflow, please visit https://github.com/GoogleCloudPlatform/github-actions/tree/master/example-workflows/gke From ee064c5e4b6c2ff11f25d79ea68d7db195fccf46 Mon Sep 17 00:00:00 2001 From: Kunwar Toor Date: Mon, 10 Aug 2020 17:07:34 -0700 Subject: [PATCH 15/21] updated gcloud action to latest --- ci/google.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index cfbbddb..aaaf6db 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -35,7 +35,6 @@ jobs: # Setup gcloud CLI - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master with: - version: '290.0.1' service_account_key: ${{ secrets.GKE_SA_KEY }} project_id: ${{ secrets.GKE_PROJECT }} From bfe353443a94ed8fb57751d2934b5c3c2f4bd61b Mon Sep 17 00:00:00 2001 From: ktoor-google <69051209+ktoor-google@users.noreply.github.com> Date: Thu, 13 Aug 2020 11:52:11 -0700 Subject: [PATCH 16/21] Update ci/google.yml Co-authored-by: John Bohannon --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index aaaf6db..b9313b2 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -33,7 +33,7 @@ jobs: uses: actions/checkout@v2 # Setup gcloud CLI - - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + - uses: GoogleCloudPlatform/github-actions/setup-gcloud@0.1.3 with: service_account_key: ${{ secrets.GKE_SA_KEY }} project_id: ${{ secrets.GKE_PROJECT }} From ccf96281e91d3f5b88354198a79bf21e25ab959c Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Thu, 19 Sep 2019 16:43:03 +0200 Subject: [PATCH 17/21] Add D workflow D is a statically and strongly typed, multi-paradigm, general-purpose native programming language. D is fully open-source and maintained by a volunteer community. For more information, see https://dlang.org This patch adds a minimal workflow that allows users to compile D projects that use DUB, the official D package manager and build tool. The workflow uses the community-maintained `setup-dlang` action, which can install any version of `dmd` (the reference compiler), or `ldc` (the LLVM-based, performance oriented compiler, on any of the three platforms currently supported by Github free runners. Support for GDC is not yet implemented. The logo used (d.svg) originates from https://github.com/dlang/dlang.org/blob/master/images/dlogo_2015.svg and is available under the BSL-1.0 license (https://github.com/dlang/dlang.org/blob/master/LICENSE.txt) Co-Authored-By: Mathias Lang --- ci/d.yml | 29 +++++ ci/properties/d.properties.json | 6 + icons/d.svg | 216 ++++++++++++++++++++++++++++++++ 3 files changed, 251 insertions(+) create mode 100644 ci/d.yml create mode 100644 ci/properties/d.properties.json create mode 100644 icons/d.svg diff --git a/ci/d.yml b/ci/d.yml new file mode 100644 index 0000000..d5329eb --- /dev/null +++ b/ci/d.yml @@ -0,0 +1,29 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +name: D + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: dlang-community/setup-dlang@7c3e57bdc1ff2d8994f00e61b3ef400e67d2d7ac + + - name: 'Build & Test' + run: | + # Build the project, with its main file included, without unittests + dub build --compiler=$DC + # Build and run tests, as defined by `unittest` configuration + # In this mode, `mainSourceFile` is excluded and `version (unittest)` are included + # See https://dub.pm/package-format-json.html#configurations + dub test --compiler=$DC diff --git a/ci/properties/d.properties.json b/ci/properties/d.properties.json new file mode 100644 index 0000000..5c67054 --- /dev/null +++ b/ci/properties/d.properties.json @@ -0,0 +1,6 @@ +{ + "name": "D", + "description": "Build and test a D project with dub.", + "iconName": "d", + "categories": [ "D" ] +} diff --git a/icons/d.svg b/icons/d.svg new file mode 100644 index 0000000..f2492bc --- /dev/null +++ b/icons/d.svg @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + From e29f776785c11591acff1b59d42ee4135592afc8 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Thu, 20 Aug 2020 18:09:12 -0700 Subject: [PATCH 18/21] updates to starter workflows --- .github/pull_request_template.md | 7 ++----- CONTRIBUTING.md | 4 ++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b31d11b..e79272c 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,12 +6,9 @@ It is not: --- -Thank you for sending in this pull request. Please make sure you take a look at the [contributing file](https://github.com/actions/starter-workflows/blob/main/CONTRIBUTING.md). Here's a few things for you to consider in this pull request. +**Please note that we are not accepting new starter workflows at this time. Updates to existing starter workflows are fine.** -Please **add to this description** at the bottom :point_down: - -- [ ] A good description of the workflow at the bottom of this page. -- [ ] Some links to the language or tool will be nice (unless its really obvious) +--- In the workflow and properties files: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 91aad39..8f9d704 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,6 +9,10 @@ Contributions to this project are [released](https://help.github.com/articles/gi Please note that this project is released with a [Contributor Code of Conduct]( https://github.com/actions/.github/blob/main/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. +**At this time we are not accepting any new starter workflows** + +### Previous guidelines for new starter workflows. + Before merging a new workflow, the following requirements need to be met: - Should be as simple as is needed for the service. From 94759fc6c5d59281f2bbed53bcac8b68c2b5700b Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 21 Aug 2020 11:57:09 -0700 Subject: [PATCH 19/21] Update d.yml --- ci/d.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/d.yml b/ci/d.yml index d5329eb..8ee1d1c 100644 --- a/ci/d.yml +++ b/ci/d.yml @@ -6,9 +6,9 @@ name: D on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: From acf5f6e3fc0e27f1c3e62eea33a2a0831360c567 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 21 Aug 2020 08:27:29 -0700 Subject: [PATCH 20/21] Merge pull request #166 from jimhester/r-starter-workflow Add R starter workflow --- ci/properties/r.properties.json | 6 ++++++ ci/r.yml | 37 +++++++++++++++++++++++++++++++++ icons/r.svg | 14 +++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 ci/properties/r.properties.json create mode 100644 ci/r.yml create mode 100644 icons/r.svg diff --git a/ci/properties/r.properties.json b/ci/properties/r.properties.json new file mode 100644 index 0000000..84ba0ec --- /dev/null +++ b/ci/properties/r.properties.json @@ -0,0 +1,6 @@ +{ + "name": "R package", + "description": "Create and test an R package on multiple R versions.", + "iconName": "r", + "categories": ["R"] +} diff --git a/ci/r.yml b/ci/r.yml new file mode 100644 index 0000000..efc6587 --- /dev/null +++ b/ci/r.yml @@ -0,0 +1,37 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + +name: R + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: macOS-latest + strategy: + matrix: + r-version: [3.5, 3.6] + + steps: + - uses: actions/checkout@v2 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@ffe45a39586f073cc2e9af79c4ba563b657dc6e3 + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} diff --git a/icons/r.svg b/icons/r.svg new file mode 100644 index 0000000..78281f7 --- /dev/null +++ b/icons/r.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + From 1dc9bda71dc6dea61d5c622ce4d00b743af78668 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 21 Aug 2020 15:00:23 -0700 Subject: [PATCH 21/21] Revert "add Cypress starter workflow" --- ci/cypress.yml | 47 --------------------------- ci/properties/cypress.properties.json | 6 ---- icons/cypress.svg | 16 --------- 3 files changed, 69 deletions(-) delete mode 100644 ci/cypress.yml delete mode 100644 ci/properties/cypress.properties.json delete mode 100644 icons/cypress.svg diff --git a/ci/cypress.yml b/ci/cypress.yml deleted file mode 100644 index c42c930..0000000 --- a/ci/cypress.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Cypress - -on: [push] - -env: - CI: 1 # minimal progress output - TERM: xterm # good terminal rendering - -jobs: - # for simpler configuration you can use 3rd party action - # https://github.com/cypress-io/github-action - e2e: - name: Cypress tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Cache NPM modules - uses: actions/cache@v1 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-npm- - - name: Cache Cypress binary - uses: actions/cache@v1 - with: - path: ~/.cache/Cypress - key: ${{ runner.os }}-cypress-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-cypress- - - name: install Cypress - run: | - npm ci - npx cypress verify - - name: E2E tests - run: npx cypress run - # save any error screenshots as test artifacts - - uses: actions/upload-artifact@v1 - if: failure() - with: - name: screenshots - path: cypress/screenshots - # video should always be generated - - uses: actions/upload-artifact@v1 - with: - name: videos - path: cypress/videos diff --git a/ci/properties/cypress.properties.json b/ci/properties/cypress.properties.json deleted file mode 100644 index 0fae544..0000000 --- a/ci/properties/cypress.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Cypress", - "description": "Run end-to-end web application tests using Cypress.io", - "iconName": "cypress", - "categories": ["Testing", "Cypress"] -} diff --git a/icons/cypress.svg b/icons/cypress.svg deleted file mode 100644 index 3134aeb..0000000 --- a/icons/cypress.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - -