ci: add PR template #2
Workflow file for this run
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: E2E Job | |
# on: | |
# workflow_dispatch: | |
# inputs: | |
# tests_to_run: | |
# description: 'Comma-separated list of chain names to run (e.g., archway,icon,foundry)' | |
# required: true | |
# default: '' | |
# type: string | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Validate input | |
id: validate_input | |
run: | | |
tests_to_run="${{ github.event.inputs.tests_to_run }}" | |
if [[ ! "$tests_to_run" =~ ^([a-zA-Z]+,)*[a-zA-Z]+$ ]]; then | |
echo "Invalid input format. Please provide a comma-separated list of test names (e.g., archway,icon,foundry)." | |
exit 1 | |
fi | |
echo "Validated input: $tests_to_run" | |
echo "::set-output name=tests::$tests_to_run" | |
- name: Build xcall-multi contracts | |
run: | | |
bash ./scripts/execute-test.sh --build-xcall --test e2e | |
- name: Run E2E Tests | |
run: | | |
echo "Running E2E Tests" | |
./scripts/execute-test.sh --test e2e | |