From 30afa80c1d94da9f99352e028c138e201763779a Mon Sep 17 00:00:00 2001 From: Nayyir Jutha Date: Fri, 21 Jun 2024 17:49:14 -0400 Subject: [PATCH] adding actions --- .github/workflows/test.yaml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..2b06610f --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,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