-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test out building on github actions (#1)
* Test out building on github actions * No cache for now * more allows * Add more to post-bundle
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
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 |