-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf34b05
commit bc87004
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Integration Tests | ||
#on: [workflow_dispatch] | ||
on: [push] | ||
|
||
env: | ||
MODALITY_URL: "http://localhost:14181/v1/" | ||
MODALITY_WORKSPACE: "ci-tests" | ||
|
||
jobs: | ||
demo: | ||
name: Run, collect, and test | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Print Environment | ||
run: | | ||
echo "GITHUB_WORKFLOW=$GITHUB_WORKFLOW" | ||
echo "GITHUB_RUN_ID=$GITHUB_RUN_ID" | ||
echo "GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER" | ||
echo "GITHUB_JOB=$GITHUB_JOB" | ||
echo "GITHUB_ACTION=$GITHUB_ACTION" | ||
echo "GITHUB_ACTOR=$GITHUB_ACTOR" | ||
echo "GITHUB_REF=$GITHUB_REF" | ||
echo "GITHUB_SHA=$GITHUB_SHA" | ||
docker --version | ||
- name: Checkout Sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install system packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libusb-1.0-0-dev libftdi1-dev libudev-dev bridge-utils | ||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy, rustfmt | ||
toolchain: ${{ matrix.rust }} | ||
|
||
- name: Build release binary | ||
run: cargo build --release | ||
|
||
- name: Install Auxon Packages | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
wget --no-verbose --quiet https://get.keygen.sh/auxon-io/auxon.deb -O /tmp/auxon.deb | ||
sudo apt-get install -y /tmp/auxon.deb | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends modalityd modality-client modality-reflector conform deviant | ||
- name: Setup Modality Server | ||
run: | | ||
sudo systemctl stop modalityd | ||
echo 'license-key = "'"${{secrets.MODALITY_LICENSE_KEY}}"'"' | sudo tee -a /etc/modalityd/config.toml | ||
sudo systemctl start modalityd | ||
sudo systemctl status modalityd --no-pager --full | ||
- name: Setup Initial Modality Configuration | ||
run: | | ||
modality config --modalityd ${{env.MODALITY_URL}} | ||
modality user create admin | ||
modality user create --use ci | ||
modality user mint-auth-token --allow-http-api --allow-ingest --allow-mutation /tmp/auth-token | ||
echo "MODALITY_AUTH_TOKEN=$(cat /tmp/auth-token)" >> $GITHUB_ENV | ||
modality workspace create --use ${{env.MODALITY_WORKSPACE}} config/workspace.toml |