Skip to content

feat: add opentelemetry-collector service #2

feat: add opentelemetry-collector service

feat: add opentelemetry-collector service #2

name: ci
on:
push:
branches:
- main
paths:
- opentelemetry-collector/**
- .github/workflows/opentelemetry-collector.yml
jobs:
opentelemetry-collector-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: rust
args: |
target_add wasm32-unknown-unknown
build --release --target wasm32-unknown-unknown
working-directory: opentelemetry-collector
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Start opentelemetry-collector Server
run: |
fluentci run target/wasm32-unknown-unknown/release/opentelemetry_collector.wasm start
fluentci run target/wasm32-unknown-unknown/release/opentelemetry_collector.wasm stop
working-directory: opentelemetry-collector
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NIX_CONFIG: extra-access-tokens = github.com=${{ secrets.GH_ACCESS_TOKEN }}