-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (60 loc) · 2.12 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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@v4
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/kind-action@v1.10.0
# with:
# install_only: true
- name: Run Test with args ${{ matrix.ARGS }}
env:
TERM: xterm-256color
VERBOSE: false
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 }}"