Merge branch 'main' into feat/scorecardicon
This commit is contained in:
@@ -26,6 +26,7 @@ It is not:
|
||||
- [ ] Should use sentence case for the names of workflows and steps (for example, "Run tests").
|
||||
- [ ] Should be named _only_ by the name of the language or platform (for example, "Go", not "Go CI" or "Go Build").
|
||||
- [ ] Should include comments in the workflow for any parts that are not obvious or could use clarification.
|
||||
- [ ] Should specify least priviledge [permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token) for `GITHUB_TOKEN` so that the workflow runs successfully.
|
||||
|
||||
**For _CI_ workflows, the workflow:**
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
# This workflow will trigger Datadog Synthetic tests within your Datadog organisation
|
||||
# For more information on running Synthetic tests within your GitHub workflows see: https://docs.datadoghq.com/synthetics/cicd_integrations/github_actions/
|
||||
|
||||
# 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.
|
||||
|
||||
# To get started:
|
||||
|
||||
# 1. Add your Datadog API (DD_API_KEY) and Application Key (DD_APP_KEY) as secrets to your GitHub repository. For more information, see: https://docs.datadoghq.com/account_management/api-app-keys/.
|
||||
# 2. Start using the action within your workflow
|
||||
|
||||
name: Run Datadog Synthetic tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ $default-branch ]
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Run Synthetic tests within your GitHub workflow.
|
||||
# For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci
|
||||
- name: Run Datadog Synthetic tests
|
||||
uses: DataDog/synthetics-ci-github-action@2b56dc0cca9daa14ab69c0d1d6844296de8f941e
|
||||
with:
|
||||
api_key: ${{secrets.DD_API_KEY}}
|
||||
app_key: ${{secrets.DD_APP_KEY}}
|
||||
test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Datadog Synthetics",
|
||||
"description": "Run Datadog Synthetic tests within your GitHub Actions workflow",
|
||||
"iconName": "datadog",
|
||||
"categories": ["Continuous integration", "JavaScript", "TypeScript", "Testing"]
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"name": "Rails - Install Dependencies and Run Linters",
|
||||
"description": "Install dependencies and run linters on Rails application",
|
||||
"iconName": "ruby",
|
||||
"categories": ["Continuous integration", "Ruby", "Rails"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Ruby on Rails continuous integration",
|
||||
"description": "Build, lint, and test a Rails application",
|
||||
"iconName": "rails",
|
||||
"categories": ["Continuous integration", "Ruby", "Rails"]
|
||||
}
|
||||
@@ -1,32 +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 linters
|
||||
name: Rails - Install dependencies and run linters
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ $default-branch ]
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
jobs:
|
||||
run-lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Ruby and install gems
|
||||
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
||||
with:
|
||||
bundler-cache: true
|
||||
# Add or Replace any other security checks here
|
||||
- name: Run security checks
|
||||
run: |
|
||||
bin/bundler-audit --update
|
||||
bin/brakeman -q -w2
|
||||
# Add or Replace any other Linters here
|
||||
- name: Run linters
|
||||
run: |
|
||||
bin/rubocop --parallel
|
||||
@@ -0,0 +1,58 @@
|
||||
# This workflow uses actions that are not certified by GitHub. They are
|
||||
# provided by a third-party and are governed by separate terms of service,
|
||||
# privacy policy, and support documentation.
|
||||
#
|
||||
# This workflow will install a prebuilt Ruby version, install dependencies, and
|
||||
# run tests and linters.
|
||||
name: "Ruby on Rails CI"
|
||||
on:
|
||||
push:
|
||||
branches: [ $default-branch ]
|
||||
pull_request:
|
||||
branches: [ $default-branch ]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:11-alpine
|
||||
ports:
|
||||
- "5432:5432"
|
||||
env:
|
||||
POSTGRES_DB: rails_test
|
||||
POSTGRES_USER: rails
|
||||
POSTGRES_PASSWORD: password
|
||||
env:
|
||||
RAILS_ENV: test
|
||||
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
# Add or replace dependency steps here
|
||||
- name: Install Ruby and gems
|
||||
uses: ruby/setup-ruby@8f312efe1262fb463d906e9bf040319394c18d3e # v1.92
|
||||
with:
|
||||
bundler-cache: true
|
||||
# Add or replace database setup steps here
|
||||
- name: Set up database schema
|
||||
run: bin/rails db:schema:load
|
||||
# Add or replace test runners here
|
||||
- name: Run tests
|
||||
run: bin/rake
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Ruby and gems
|
||||
uses: ruby/setup-ruby@8f312efe1262fb463d906e9bf040319394c18d3e # v1.92
|
||||
with:
|
||||
bundler-cache: true
|
||||
# Add or replace any other lints here
|
||||
- name: Security audit dependencies
|
||||
run: bin/bundler-audit --update
|
||||
- name: Security audit application code
|
||||
run: bin/brakeman -q -w2
|
||||
- name: Lint Ruby files
|
||||
run: bin/rubocop --parallel
|
||||
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128">
|
||||
<path d="M118.64,63.09l5.15,50.2-63.08,7.59-1.37-9.78-3.81.55c.33,5.45-.94,10.63-3.35,13.11-2.82,2.89-6.92,3.64-11.24,3-2.9-.39-5.06-2.49-6.66-5.06,6,4.22,13.39,2.27,15.92-1.26a12.65,12.65,0,0,0,2.38-9.42l-35.42,5.14L4.21,12.18,109.27,0l6.16,63.7Z" fill="#632ca6"/>
|
||||
<path d="M63.55,74.32a55.2,55.2,0,0,1-10-8.32c-.31-.23-.26-1.25-.26-1.25A55.81,55.81,0,0,0,68.94,73.1a12.74,12.74,0,0,0,9.81-.83,25,25,0,0,0,7.53-6.64l.34.59a14.93,14.93,0,0,1-1.29,3.06,8,8,0,0,0,2.24.81l6-.93a18.12,18.12,0,0,0,2-14.31c-.93-3-5.79-9.1-6.14-9.43-1.22-1.17.21-5.7-2.21-10.65C84.65,29.54,78,24.09,75.09,21.72c.85.62,6.1,2.74,8.55,5.69.23-.3.32-1.89.53-2.29-2.1-2.76-2.26-7.66-2.26-9A14.87,14.87,0,0,0,80.69,11a8.16,8.16,0,0,1,2.65,4.53,18.51,18.51,0,0,0,3.82,8.34c3.43,4.26,6.52,6.45,8.08,4.88,1.88-1.9-1.89-10.37-6.71-15.1-5.62-5.52-7.09-4.81-10.39-3.63-2.63.94-4,8.4-10.91,8.26-1.16-.14-4.15-.21-5.64-.2C62.36,17,63,16.21,63,16.21a35.61,35.61,0,0,0-4.25,2.09l-.15-.22A12,12,0,0,1,60,15.8a40.56,40.56,0,0,0-3.51,2.43,5.25,5.25,0,0,1,1.45-2.71s-2.32.41-5.28,3.67A36,36,0,0,0,45.8,21.9c-4.35-.95-6.41-2.49-8.37-5.31-1.49-2.15-4.15-2.48-6.85-1.37-4,1.64-9,3.87-9,3.87s1.63-.06,3.33,0a44.68,44.68,0,0,0-4.56,2.09s1.09,0,2.44,0A22.93,22.93,0,0,1,20.5,22.9a33,33,0,0,0-3.85,3.33,22.56,22.56,0,0,1,2.74-1c-.9,2.07-2.7,3.6-2.37,6.14.32,2.33,3.17,7.11,6.85,10,.32.26,5.34,4.91,9.13,3s5.29-3.6,5.91-6.21c.73-3,.32-5.26-1.25-11.75-.52-2.14-1.86-6.56-2.51-8.67l.15-.11A106.06,106.06,0,0,1,41,31.8C43,39,42.36,42.68,41.44,44c-2.75,4-9.8,4.58-13,2.34-.49,7.78,1.24,11.2,1.83,12.92-.29,2,1,5.67,1,5.67A7,7,0,0,1,32,62.4a16.53,16.53,0,0,0,1.14,4.31A8.19,8.19,0,0,1,33.52,64a19.56,19.56,0,0,0,1.71,2.14A11.6,11.6,0,0,0,37,69.8,9.87,9.87,0,0,1,37,67.5c2.94,2.82,3.45,7,3.74,10.12C41.52,86.33,27,93.25,24.13,98.71c-2.14,3.23-3.42,8.33.2,11.35,8.76,7.27,5.4,9.27,9.78,12.47,6,4.38,13.54,2.42,16.1-1.15,3.56-5,2.65-9.65,1.32-14-1-3.43-3.84-9.12-7.32-11.33a15.26,15.26,0,0,0-10-2.37l.27-.31c4.22-.84,8.62-.38,11.81,1.68,3.62,2.32,6.93,6.31,8.66,12.43,2-.28,2.24-.41,4-.66l-4-31.5ZM83.85,35c3.73,1.73,3.24,5,3.34,7a5.25,5.25,0,0,1,0,1.19,5,5,0,0,0-2.62-.43,9.49,9.49,0,0,0-1.1.12,7.78,7.78,0,0,1-3-3.71l-.17-.39-.07-.17,0-.08c-.42-1.31-.14-1.57,0-2s.85-.76-.15-1.1a1.8,1.8,0,0,0-.31-.07C80.47,34.54,82.44,34.34,83.85,35Zm-4.6,21.63c.72-.57,4-1.62,7.09-2,1.6-.19,3.88-.29,4.37,0,1,.53,1,2.18.31,3.72-1,2.22-2.33,4.67-3.88,4.87-2.52.34-4.91-1-7.63-3.06A2.23,2.23,0,0,1,79.25,56.62ZM55.34,39.75c4-2.73,9.16-1.65,8.3-.83-1.65,1.56.54,1.1.78,4a5,5,0,0,1-1.12,4A25.49,25.49,0,0,0,58.7,48a26,26,0,0,0-2.85,1.13,7.32,7.32,0,0,1-.73-.55A5.53,5.53,0,0,1,55.34,39.75Zm60.11,27.82-32.51,5.9a16,16,0,0,1-3.75,3.33,11.75,11.75,0,0,1-9.29.85,20,20,0,0,1-3.71-1.19l-7.95,1.1,4.83,40.2,55.7-10ZM65.88,113.92l-.46-4.37,9.09-13.88,10.33,3,8.88-14.84,10.65,7,8.1-17,2.87,30.91Z" fill="#fff"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1 @@
|
||||
<svg height="32" viewBox="0 0 90 32" width="90" xmlns="http://www.w3.org/2000/svg"><style>path { fill: #D30001; }</style><path d="m418.082357 25.9995403v4.1135034h-7.300339v1.89854h3.684072c1.972509 0 4.072534 1.4664311 4.197997 3.9665124l.005913.2373977v1.5821167c-.087824 3.007959-2.543121 4.1390018-4.071539 4.2011773l-.132371.0027328h-7.390745v-4.0909018l7.481152-.0226016v-1.9889467l-1.190107.0007441-.346911.0008254-.084566.0003251-.127643.0007097-.044785.0003793-.055764.0007949-.016378.0008259c.000518.0004173.013246.0008384.034343.0012518l.052212.000813c.030547.0003979.066903.0007803.105225.0011355l.078131.0006709-.155385-.0004701c-.31438-.001557-.85249-.0041098-1.729029-.0080055-1.775258 0-4.081832-1.3389153-4.219994-3.9549201l-.006518-.24899v-1.423905c0-2.6982402 2.278213-4.182853 4.065464-4.2678491l.161048-.003866zm-18.691579 0v11.8658752h6.170255v4.1361051h-10.735792v-16.0019803zm-6.441475 0v16.0019803h-4.588139v-16.0019803zm-10.803597 0c1.057758 0 4.04923.7305141 4.198142 3.951222l.005768.2526881v11.7980702h-4.271715v-2.8252084h-4.136105v2.8252084h-4.407325v-11.7980702c0-1.3184306 1.004082-4.0468495 3.946899-4.197411l.257011-.0064991zm-24.147177-.0027581 8.580186.0005749c.179372.0196801 4.753355.5702841 4.753355 5.5438436s-3.775694 5.3947112-3.92376 5.4093147l-.004472.0004216 5.00569 5.0505836h-6.374959l-3.726209-3.8608906v3.8608906h-4.309831zm22.418634-2.6971669.033418.0329283s-.384228.27122-.791058.610245c-12.837747-9.4927002-20.680526-5.0175701-23.144107-3.8196818-11.187826 6.2428065-7.954768 21.5678895-7.888988 21.8737669l.001006.0046469h-17.855317s.67805-6.6900935 5.4244-14.600677c4.74635-7.9105834 12.837747-13.9000252 19.414832-14.4876686 12.681632-1.2703535 24.110975 9.7062594 24.805814 10.3864403zm-31.111679 14.1815719 2.44098.881465c.113008.8852319.273103 1.7233771.441046 2.4882761l.101394.4499406-2.7122-.9718717c-.113009-.67805-.226017-1.6499217-.27122-2.84781zm31.506724-7.6619652h-1.514312c-1.128029 0-1.333125.5900716-1.370415.8046431l-.007251.056292-.000906.0152319-.00013 3.9153864h4.136105l-.000316-3.916479c-.004939-.0795522-.08331-.8750744-1.242775-.8750744zm-50.492125.339025 2.599192.94927c-.316423.731729-.719369 1.6711108-1.011998 2.4093289l-.118085.3028712-2.599192-.94927c.226017-.610245.700652-1.7403284 1.130083-2.7122001zm35.445121-.1434449h-3.456844v3.6588673h3.434397s.98767-.3815997.98767-1.8406572-.965223-1.8182101-.965223-1.8182101zm-15.442645-.7606218 1.62732 1.2882951c-.180814.705172-.318232 1.410344-.412255 2.115516l-.06238.528879-1.830735-1.4465067c.180813-.81366.384228-1.6499217.67805-2.4861834zm4.000495-6.3058651 1.017075 1.5369134c-.39779.4158707-.766649.8317413-1.095006 1.2707561l-.238493.3339623-1.08488-1.6273201c.40683-.5198383.881465-1.0396767 1.401304-1.5143117zm-16.182794-3.3450467 1.604719 1.4013034c-.40683.4237812-.800947.8729894-1.172815 1.3285542l-.364099.4569775-1.740328-1.4917101c.519838-.5650416 1.08488-1.1300833 1.672523-1.695125zm22.398252-.0904067.497237 1.4917101c-.524359.162732-1.048717.3688592-1.573076.6068095l-.393269.1842488-.519838-1.559515c.565041-.2486184 1.22049-.4972367 1.988946-.7232534zm5.28879-.54244c.578603.0361627 1.171671.1012555 1.779204.2068505l.458361.0869712-.090406 1.4013034c-.596684-.1265694-1.193368-.2097435-1.790052-.2495224l-.447513-.0216976zm-18.555968-6.2380601 1.017075 1.559515c-.440733.2203663-.868752.4661594-1.303128.7278443l-.437201.2666291-1.039676-1.5821167c.610245-.3616267 1.197888-.67805 1.76293-.9718717zm18.601172-.8588633c1.344799.3842283 1.923513.6474959 2.155025.7707625l.037336.0202958-.090406 1.5143117c-.482169-.1958811-.964338-.381717-1.453204-.5575078l-.739158-.2561522zm-8.633837-1.3334984.452033 1.3787017h-.226016c-.491587 0-.983173.0127134-1.474759.0476754l-.491587.0427313-.429431-1.3334984c.745855-.0904067 1.469108-.13561 2.16976-.13561z" transform="translate(-329 -10)"/></svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
Reference in New Issue
Block a user