Skip to content

feat: add JOB_COMPLETION_INDEX #1612

feat: add JOB_COMPLETION_INDEX

feat: add JOB_COMPLETION_INDEX #1612

Workflow file for this run

name: CI Tests
# cancel any prior runs for this workflow and this PR (or branch)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
# GitHub Actions run without a TTY device. This is a workaround to get one,
# based on https://github.com/actions/runner/issues/241#issuecomment-2019042651
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci:
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
LUNCHPAIL_TARGET:
- kubernetes
- local
SCRIPT:
- ./tests/bin/ci.sh -e 'test(7.*|8.*)|python.*' # baseline tests
- ./tests/bin/ci.sh -i 'test7.*' -e 'test7(b.*|c.*|d.*|e.*|f.*|g.*|h.*)'
- ./tests/bin/ci.sh -i 'test7(b.*|c.*|d.*|e.*|g.*|h.*)'
- ./tests/bin/ci.sh -i 'test7f.*'
- ./tests/bin/ci.sh -i 'test8.*'
- ./tests/bin/ci.sh -i 'python-code.*'
- ./tests/bin/ci.sh -i 'python-language.*'
- ./tests/bin/ci.sh -i 'python-universal.*'
- ./tests/bin/go.sh
- ./tests/bin/pipelines.sh
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Cache minio
uses: actions/cache@v3
id: cache-minio
with:
path: /home/runner/.cache/lunchpail/bin
key: ${{ runner.os }}-minio
- name: Build Lunchpail CLI
run: ./hack/setup/cli.sh /tmp/lunchpail
# we will also be testing installing kind, so we don't want to do
# this as part of the github action workflow
#- name: Create k8s Kind Cluster
# uses: helm/[email protected]
# with:
# install_only: true
- name: Run Test with args ${{ matrix.ARGS }}
env:
TERM: xterm-256color
LUNCHPAIL_TARGET: ${{ matrix.LUNCHPAIL_TARGET }}
LUNCHPAIL_BUILD_NOT_NEEDED: true # we did this in the "Build Lunchpail CLI" step above
run: bash -c "${{matrix.SCRIPT}} ${{matrix.ARGS }}"