From 6463efcf3b8e8034f03383bdf98a8e4a6c7203dd Mon Sep 17 00:00:00 2001 From: Russell Mull Date: Fri, 24 May 2024 13:40:19 -0700 Subject: [PATCH] Add CI config --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4fd54eb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Auth to GHCR + env: + AUXON_GHCR_TOKEN_RO: ${{ secrets.AUXON_GHCR_TOKEN_RO }} + run: | + echo $AUXON_GHCR_TOKEN_RO | docker login ghcr.io -u ${{ github.actor }} --password-stdin + + - name: Check and lint + run: | + cargo check + cargo clippy + + - name: Integration test + env: + MODALITY_LICENSE_KEY: ${{ secrets.MODALITY_LICENSE_KEY }} + run: | + cd integration-test + ./go.sh