-
-
Notifications
You must be signed in to change notification settings - Fork 205
74 lines (59 loc) · 1.71 KB
/
test.yml
File metadata and controls
74 lines (59 loc) · 1.71 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
server_integration_test:
name: Server Integration Test
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [1.x, 2.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.26.x
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: ${{ matrix.deno-version }}
- name: Run Unit Tests
run: go test ./server ./internal/* -v
env:
GO_TEST_S3_ENDPOINT: ${{ secrets.GO_TEST_S3_ENDPOINT }}
GO_TEST_S3_REGION: ${{ secrets.GO_TEST_S3_REGION }}
GO_TEST_S3_ACCESS_KEY_ID: ${{ secrets.GO_TEST_S3_ACCESS_KEY_ID }}
GO_TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.GO_TEST_S3_SECRET_ACCESS_KEY }}
GO_TEST_S3_ROOTDIR: test-d-${{ matrix.deno-version }}
- name: Run Integration Tests
run: test/bootstrap.ts -q
cli_test:
name: CLI Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
ext: ''
- os: ubuntu-latest
ext: ''
- os: windows-latest
ext: '.exe'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.26.x
- name: Build CLI
run: go build -o esm.sh${{ matrix.ext }} main.go
- name: Run CLI
run: ./esm.sh${{ matrix.ext }} add --no-prompt react react/jsx-runtime react-dom react-dom/client
- name: Check CLI Output
run: cat index.html