Test JS SDK (started by @frankiebee) #438
Workflow file for this run
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
--- | |
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 |