-
Notifications
You must be signed in to change notification settings - Fork 1.4k
52 lines (44 loc) · 1.22 KB
/
check-typescript-sdk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Check TypeScript SDK
on:
push:
branches: ['main']
pull_request:
paths: ['typescript-sdk/**']
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
defaults:
run:
shell: bash
working-directory: './typescript-sdk'
env:
NIX_VERSION: nix-2.13.2
NIXPKGS_CHANNEL: nixos-22.11
NODE_OPTIONS: '--no-warnings'
ACTIONS_RUNNER_DEBUG: true
jobs:
test-typescript-sdk:
name: 'Test TypeScript SDK'
runs-on: ['ubuntu-latest']
defaults:
run:
working-directory: './typescript-sdk'
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Setup bun'
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: 'Install Nix'
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:${{ env.NIXPKGS_CHANNEL }}
github_access_token: ${{ github.token }}
- run: |
nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_CHANNEL }} nixpkgs
nix-channel --update
- name: 'Build SDK'
working-directory: './typescript-sdk'
run: |
nix build .#typescript-sdk -o dist