-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (63 loc) · 1.92 KB
/
cloud.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
69
70
71
72
73
name: Fluvio Cloud CI
concurrency:
group: cloud-ci-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: [ main ]
schedule:
- cron: '0 14 * * *'
jobs:
smoke_test:
name: Smoke test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rust: [stable]
java: [8, 11, 16, 17]
exclude:
- os: macos-latest
java: 8
- os: macos-latest
java: 16
steps:
- uses: actions/checkout@v4
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Setup java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
cache: 'gradle'
distribution: 'temurin'
- name: Run unit tests
run: |
make test -i
- name: Install fluvio
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
echo "${HOME}/.fluvio/bin" >> $GITHUB_PATH
- name: Login to fluvio cloud
run: |
fluvio cloud login --email ${FLUVIO_CLOUD_TEST_USERNAME} --password ${FLUVIO_CLOUD_TEST_PASSWORD} --remote 'https://dev.infinyon.cloud'
# setup profile
fluvio cloud cluster sync
env:
FLUVIO_CLOUD_TEST_USERNAME: ${{ secrets.FLUVIO_CLOUD_TEST_USERNAME }}
FLUVIO_CLOUD_TEST_PASSWORD: ${{ secrets.FLUVIO_CLOUD_TEST_PASSWORD }}
- name: Run examples
run: |
make examples
- name: Slack Notification
uses: 8398a7/action-slack@v3
if: failure()
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}