update README with recent parameters #237
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: Run PiT | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version' | |
required: false | |
type: string | |
starters: | |
description: 'Starters to run, separated by comma' | |
required: true | |
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: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- uses: stCarolas/setup-maven@v5 | |
with: | |
maven-version: '3.9.0' | |
- uses: azure/[email protected] | |
- if: ${{ env.ACT }} | |
name: Run install dependencies (only in ACT) | |
run: | | |
for i in PATH CC_KEY CC_CERT GHTK | |
do | |
H=`eval 'echo $'$i` | |
echo "export $i='"$H"'" >> vars.sh | |
done | |
apt-get update -qq | |
apt-get install -qq -y vim iputils-ping curl | |
shell: bash | |
- name: Run Install licenses | |
run: | | |
[ -z "${{secrets.TB_LICENSE}}" ] && echo "TB_LICENSE is not set" && exit 1 | |
mkdir -p ~/.vaadin/ | |
echo '{"username":"'`echo ${{secrets.TB_LICENSE}} | cut -d / -f1`'","proKey":"'`echo ${{secrets.TB_LICENSE}} | cut -d / -f2`'"}' > ~/.vaadin/proKey | |
echo "${{secrets.SS_LICENSE}}" > ~/vaadin.spreadsheet.developer.license | |
shell: bash | |
- name: Run Compute Arguments | |
run: | | |
[ true = "${{ inputs.skipcurrent }}" ] && A="$A --skip-current" | |
[ true = "${{ inputs.skipdev }}" ] && A="$A --skip-dev" | |
[ true = "${{ inputs.debug }}" ] && A="$A --debug" | |
[ -n "${{ inputs.version }}" ] && A="$A --version=${{ inputs.version }}" || A="$A --version=24.7-SNAPSHOT" | |
[ -n "${{ inputs.starters }}" ] && A="$A --starters=${{ inputs.starters }}" || A="$A --starters=control-center,react,latest-java_partial-auth,vaadin-quarkus" | |
echo "A=$A" >> $GITHUB_ENV | |
K=`echo "$A" | perl -pe 's/[^\d\w]/-/g' | tr -s '-'` | |
echo "K=$K" >> $GITHUB_ENV | |
shell: bash | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.m2/repository | |
~/.npm | |
key: pit-${{ env.K }} | |
restore-keys: | | |
pit-${{ env.K }} | |
pit- | |
- uses: helm/kind-action@v1 | |
with: | |
cluster_name: cc-cluster | |
- name: Run PiT | |
env: | |
CC_KEY: ${{ secrets.CC_KEY }} | |
CC_CERT: ${{ secrets.CC_CERT }} | |
GHTK: ${{ secrets.GHTK }} | |
run: | | |
echo ./scripts/pit/run.sh ${{env.A}} | |
./scripts/pit/run.sh ${{env.A}} --test | |
./scripts/pit/run.sh ${{env.A}} | |
shell: bash | |
- if: ${{ always()}} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: outputs | |
path: tmp/**/*.out | |
if-no-files-found: ignore | |
retention-days: 2 | |
- name: Run Delete Previous Cache | |
continue-on-error: true | |
run: | | |
gh extension install actions/gh-actions-cache | |
gh actions-cache list | |
gh actions-cache delete "pit-${{ env.K }}" --confirm || true | |
env: | |
GH_TOKEN: ${{ secrets.GHTK }} | |
shell: bash | |