Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ jobs:

pr_title_format_check:
uses: ./.github/workflows/pr_title_check.yml

regression_tests:
uses: ./.github/workflows/regression_tests.yml
with:
environment: 'dev'
log_level: 'INFO'
tags: '@regression'
id: 'Run during opened pull request'
github_tag: ${{ github.event.pull_request.head.ref }}
secrets: inherit
29 changes: 28 additions & 1 deletion .github/workflows/regression_tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
name: Regression Tests
on:
workflow_dispatch:
workflow_call:
inputs:
environment:
description: 'Environment to run tests against'
type: string
required: false
default: "dev"
tags:
description: 'Test scenario tags. If you want to specify multiple tags, you should separate them with a colon :'
required: false
type: string
default: "@regression"
log_level:
description: 'Log level to output to console'
type: string
required: false
default: "INFO"
id:
description: "Run identifier (Don't change - Only used for CI)"
type: string
required: false
default: "Run during opened pull request"
github_tag:
description: 'The github tag to run the test pack from'
type: string
required: true

workflow_dispatch:
inputs:
tags:
description: 'Test scenario tags. If you want to specify multiple tags, you should separate them with a colon :'
required: false
type: string
default: "@regression"
environment:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
hooks:
- id: lint-githubactions
name: Lint github actions
entry: actionlint
entry: scripts/lint-githubactions.sh
language: system
files: ^.github
types_or: [yaml]
Expand Down
7 changes: 7 additions & 0 deletions scripts/lint-githubactions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
# This loads the shims directory directly, as there is no asdf.sh to source.
# The `:-` syntax provides a default value if ASDF_DATA_DIR is not set.
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:${ASDF_DATA_DIR:-$HOME/.asdf}/bin:$PATH"

# Execute actionlint
exec actionlint