From e93791b8b85016d393e241d8898269e9fb30f8ea Mon Sep 17 00:00:00 2001 From: PacificYield <173040337+PacificYield@users.noreply.github.com> Date: Tue, 26 Nov 2024 09:21:57 +0100 Subject: [PATCH] ci: test workflows --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..ea14a3ee --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Pull request tests (contracts) + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: large_ubuntu_32 + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version: ${{ matrix.node-version }} + - run: cp ./contracts/.env.example ./contracts/.env + - run: npm --prefix ./contracts ci --include=optional + - run: npm --prefix ./contracts run prettier:check + - name: "npm CI test" + run: npm --prefix ./contracts run test:mock