diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..119e14c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: CI Tests + +on: [push, pull_request, pull_request_target] + +env: + SCARB_VERSION: 2.8.4 + +jobs: + scarb-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install scarb + run: | + curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v $SCARB_VERSION + + - name: Install project dependencies + run: scarb fetch + + - name: Compile smart contracts + run: scarb build + + - name: Run scarb tests + run: scarb test -p utu_relay