Skip to content

Add grafana dashboard layouts (#52) #1

Add grafana dashboard layouts (#52)

Add grafana dashboard layouts (#52) #1

Workflow file for this run

# Copyright (c) Microsoft Corporation
# SPDX-License-Identifier: MIT
# Main YML file for the CICD pipeline
name: CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Run on a daily schedule to perform the full set of tests.
schedule:
- cron: '00 21 * * *'
permissions:
id-token: write
contents: read
packages: write
concurrency:
# Cancel any CI/CD workflow currently in progress for the same PR.
# Allow running concurrently with any other commits.
group: cicd-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build_and_test:
strategy:
matrix:
configuration: [ 'Release', 'Debug' ]
platform: [ 'ubuntu-22.04', 'windows-2019', 'windows-2022' ]
option: [ none, sanitizer, coverage, jit ]
exclude:
- platform: windows-2019
option: sanitizer
- platform: windows-2019
option: coverage
- platform: windows-2022
option: sanitizer
- platform: windows-2022
option: coverage
- platform: ubuntu-22.04
option: jit
uses: ./.github/workflows/Build.yml
with:
platform: ${{ matrix.platform }}
configuration: ${{ matrix.configuration }}
option: ${{ matrix.option }}
finish:
needs:
- build_and_test
runs-on: ubuntu-22.04
steps:
- name: Coveralls Finished
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
# Note: This can't be in a workflow_call as the login action doesn't work.
upload_results:
needs:
- build_and_test
strategy:
matrix:
platform: [ 'ubuntu-22.04', 'windows-2019', 'windows-2022' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download performance result artifacts
uses: actions/download-artifact@v2
with:
name: results-Release-${{matrix.platform}}-none
path: results
- name: Post-process results
run: |
python3 scripts/process_results.py --csv-directory ${{github.workspace}}/results --sql-script-file ${{github.workspace}}/results/upload.sql --commit_id ${{github.sha}} --platform ${{matrix.platform}}
- name: Upload results to POSTGRES
env:
PGHOST: ${{secrets.PGHOST}}
PGUSER: ${{secrets.PGUSER}}
PGPORT: ${{secrets.PGPORT}}
PGDATABASE: ${{secrets.PGDATABASE}}
PGPASSWORD: ${{secrets.PGPASSWORD}}
run: |
psql -f ${{github.workspace}}/results/upload.sql