-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 982 Bytes
/
test.yaml
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
---
name: Build, lint, test
run-name: Test JS SDK (started by @${{ github.triggering_actor }})
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build_test_lint:
name: Build, test, and lint
permissions:
contents: read
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.10.0
- name: Install
run: yarn --network-timeout 180000
- name: Typecheck
run: yarn run test:types
- name: Build
run: yarn run build
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_CI_TOKEN }}
- name: Add TSS server host mappings
run: |
echo "127.0.0.1 alice-tss-server bob-tss-server" | sudo tee -a /etc/hosts
- name: Test
run: yarn run test