From 4954837fc6736aaa60319a9027ccaf53169be855 Mon Sep 17 00:00:00 2001 From: Felipe Forbeck Date: Tue, 7 Sep 2021 10:00:50 -0300 Subject: [PATCH] chore: added basic build workflow --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fa612ff --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Build +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: "14.17.0" + + - name: Setup SSH to install dependencies + uses: webfactory/ssh-agent@v0.5.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: Install dependencies + run: npm ci + + - name: Build contracts to get the ABIs + run: npm run build + + # TODO + # - name: Run tests + # run: npm test