forked from esm-dev/esm.sh
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 873 Bytes
/
test.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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test All
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.x
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: v1.x
- name: Run Unit Tests
run: go test ./server ./server/storage -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 }}
- name: Run Integration Tests
run: test/bootstrap.ts -q