Skip to content

Commit

Permalink
Test out building on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed May 3, 2024
1 parent e112adf commit 1eb383f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/bundle-otel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches: [ main ]
pull_request: {}

jobs:

bundle:
runs-on: ubuntu-latest
name: Rebundle opentelemetry-js

steps:
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: true

- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.40

# "https" cache: code from the Internet
# External sources won't change much so we use less precise keys
- name: Cache https://
uses: actions/cache@v3
with:
path: ~/.cache/deno/deps/https
key: deno-https/v1-${{ github.sha }}
restore-keys: deno-https/v1-

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
cache: 'yarn'

- name: Build
run: time hack/bundle-opentelemetry.ts

0 comments on commit 1eb383f

Please sign in to comment.