-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Run PiT | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version' | ||
required: false | ||
type: string | ||
starters: | ||
description: 'Starters to run, separated by comma' | ||
required: true | ||
default: 'control-center' | ||
type: string | ||
skipcurrent: | ||
description: 'Skip running tests in current version' | ||
required: false | ||
type: boolean | ||
default: false | ||
skipdev: | ||
description: 'Skip running tests in dev mode' | ||
required: false | ||
type: boolean | ||
default: false | ||
debug: | ||
description: 'Be verbose when running PiT steps' | ||
required: false | ||
type: boolean | ||
default: false | ||
push: | ||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
services: | ||
docker: | ||
image: docker:dind | ||
options: --privileged --shm-size=2g | ||
steps: | ||
- name: Check out branch | ||
uses: actions/checkout@v4 | ||
- if: ${{ env.ACT }} | ||
name: ACT - install dependencies | ||
run: | | ||
echo "export PATH='$PATH'" > path.sh | ||
apt-get update | ||
apt-get install -y vim iputils-ping sudo unzip wget jq curl | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
- name: Create k8s Kind Cluster | ||
uses: helm/kind-action@v1 | ||
with: | ||
install_only: false | ||
- name: Run PiT | ||
env: | ||
CC_KEY: ${{ secrets.CC_KEY }} | ||
CC_CERT: ${{ secrets.CC_CERT }} | ||
run: | | ||
[ -n "${{ inputs.skipcurrent }}" ] && A="$A --skip-current" | ||
[ -n "${{ inputs.skipdev }}" ] && A="$A --skip-dev" | ||
[ -n "${{ inputs.debug }}" ] && A="$A --debug" | ||
[ -n "${{ inputs.version }}" ] && A="$A --version=${{ inputs.version }}" | ||
./scripts/pit/run.sh --starter=${{inputs.starters}} $A | ||
- if: ${{ always()}} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: outputs | ||
path: tmp/**/*.out | ||
if-no-files-found: ignore | ||
retention-days: 2 | ||
|
||
|
||
|
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
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