Skip to content

Commit

Permalink
Test out building on github actions (#1)
Browse files Browse the repository at this point in the history
* Test out building on github actions

* No cache for now

* more allows

* Add more to post-bundle
  • Loading branch information
danopia authored May 11, 2024
1 parent f341014 commit 2a3d69f
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/bundle-otel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Bundle OpenTelemetry

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

jobs:

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

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

- name: Status
run: git status

- name: Check demo.ts
run: time deno check --unstable demo.ts

0 comments on commit 2a3d69f

Please sign in to comment.