Skip to content

ci: use card template for teams post #208

ci: use card template for teams post

ci: use card template for teams post #208

Workflow file for this run

name: e2e test regression
on:
schedule:
- cron: "16 6 * * 6" # 6:16 on Saturdays
pull_request:
paths:
- .github/workflows/e2e_regression.yml
- e2e/getdents/**
- e2e/genpolicy/**
- e2e/regression/**
jobs:
regression-test:
strategy:
matrix:
platform:
- name: AKS-CLH-SNP
runner: ubuntu-22.04
self-hosted: false
- name: K3s-QEMU-SNP
runner: SNP
self-hosted: true
- name: K3s-QEMU-TDX
runner: TDX
self-hosted: true
test-name: [getdents, genpolicy, regression]
exclude:
# getdents is a regression test for tardev-snapshotter
- platform:
self-hosted: true
test-name: getdents
# genpolicy is (currently) a regression test for tardev-snapshotter
- platform:
self-hosted: true
test-name: genpolicy
fail-fast: false
steps:
- name: "${{ matrix.platform.name }}"
uses: ./.github/workflows/e2e.yaml
with:
skip-undeploy: false
test-name: ${{ matrix.test-name }}
platform: ${{ matrix.platform.name }}
runner: ${{ matrix.platform.runner }}
self-hosted: ${{ matrix.platform.self-hosted }}
secrets: inherit

Check failure on line 47 in .github/workflows/e2e_regression.yml

View workflow run for this annotation

GitHub Actions / e2e test regression

Invalid workflow file

The workflow is not valid. .github/workflows/e2e_regression.yml (Line: 47, Col: 9): Unexpected value 'secrets' .github/workflows/e2e_regression.yml (Line: 48, Col: 9): Unexpected value 'permissions'
permissions:
contents: read
packages: write
- name: Notify teams channel of failure
if: ${{ failure() && github.ref == 'main' }}
uses: ./.github/actions/post_to_teams
with:
webhook: ${{ secrets.TEAMS_CI_WEBHOOK }}
title: "Regression test ${{ matrix.test-name }} failed"
message: "Regression on ${{ matrix.test-name }} (${{ matrix.platform.name }})"
additionalFields: '[{"title": "Test", "value": "${{ matrix.test-name }}"}, {"title": "Platform", "value": "${{ matrix.platform.name }}"}]'