Skip to content

Add extraAttributes to action defintion (#47) #112

Add extraAttributes to action defintion (#47)

Add extraAttributes to action defintion (#47) #112

Workflow file for this run

name: "Build"
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- name: Install Dependencies
run: npm ci
- name: Run Biome (format + lint + import sorting)
run: npm run biome:ci
- name: Build
run: npm run build
- name: Validate dist
run: |
git diff
exit $(git status --porcelain | wc -l)
tests:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- name: Install Dependencies
run: npm ci
- name: run tests
run: npm run test:ci
otel-cicd:
needs: [tests, build]
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Export workflow
uses: ./
with:
otlpEndpoint: "test"
otlpHeaders: "test"
githubToken: ${{ secrets.GITHUB_TOKEN }}
env:
OTEL_CONSOLE_ONLY: "true" # Internal flag used to disable sending data to the collector