Updated metrics to include poll metrics #194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
env: | |
OPENTAP_ANSI_COLORS: true | |
OPENTAP_NO_UPDATE_CHECK: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_CONSOLE_ANSI_COLOR: true | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Fix tags | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} # Fixes an issue with actions/checkout@v2. See https://github.com/actions/checkout/issues/290 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Build | |
run: dotnet publish -f netstandard2.0 -c Release | |
- name: Copy TapPackage | |
run: cp OpenTAP.TUI/bin/Release/TUI*.TapPackage . | |
- name: Upload build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
retention-days: 5 | |
path: "TUI*.TapPackage" | |
Build-Pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Pages Cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install | |
run: npm install | |
working-directory: doc | |
- name: Build | |
run: npm run build | |
working-directory: doc | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' || contains(github.ref, 'refs/heads/release') || contains(github.ref, 'refs/tags/v') | |
with: | |
publish_dir: public | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: pages | |
Publish: | |
runs-on: ubuntu-latest | |
needs: Build | |
if: github.ref == 'refs/heads/main' || contains(github.ref, 'refs/heads/release') || contains(github.ref, 'refs/tags/v') | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: build | |
- uses: opentap/[email protected] | |
with: | |
version: 9.17.0 | |
- name: Install PackagePublish | |
run: tap package install PackagePublish --version rc | |
- name: Publish | |
run: tap package publish "TUI*.TapPackage" -k ${{ secrets.REPO_PASS }} |