fixup #12
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- ci-test | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
- name: Install Java 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Install Lingua Franca | |
run: curl -Ls https://install.lf-lang.org | bash -s cli | |
- name: Generate C Test Publisher | |
working-directory: InfluxPublisher/c | |
run: lfc --no-compile src/InfluxPublisher.lf | |
- name: Generate Python Test Publisher | |
working-directory: InfluxPublisher/py | |
run: lfc --no-compile src/InfluxPublisher.lf | |
- name: Build Test Publisher docker images | |
working-directory: InfluxPublisher | |
run: docker compose up -d --build | |
test: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
platform: | |
- amd64 | |
- arm64 | |
steps: | |
- name: Run E2E Tests | |
working-directory: InfluxPublisher/tests | |
run: bash test_publisher_e2e.sh | |
- name: Tear down Docker containers | |
run: | | |
docker compose -f docker-compose.yml down | |
docker compose -f ./InfluxPublisher/docker-compose.yml down |