Fluvio Cloud CI #1452
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: Fluvio Cloud CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
schedule: | |
- cron: "0 14 * * *" | |
concurrency: | |
group: cloud-ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
smoke_test: | |
name: Smoke test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: [stable] | |
node: ["18", "20"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ${{ matrix.rust }} | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install fluvio | |
run: | | |
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash | |
echo "${HOME}/.fluvio/bin" >> $GITHUB_PATH | |
- uses: actions-rs/[email protected] | |
with: | |
crate: nj-cli | |
version: latest | |
use-tool-cache: true | |
- name: Login to fluvio cloud | |
run: | | |
fluvio cloud login --email ${FLUVIO_CLOUD_TEST_USERNAME} --password ${FLUVIO_CLOUD_TEST_PASSWORD} --remote 'https://dev.infinyon.cloud' | |
fluvio cloud cluster sync # setup profile | |
env: | |
FLUVIO_CLOUD_TEST_USERNAME: ${{ secrets.FLUVIO_CLOUD_TEST_USERNAME }} | |
FLUVIO_CLOUD_TEST_PASSWORD: ${{ secrets.FLUVIO_CLOUD_TEST_PASSWORD }} | |
- name: Run unit tests | |
run: | | |
make test_all | |
- 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 }} |