From ad8b1b311ab23603717927612e0157a4ae01e1fc Mon Sep 17 00:00:00 2001 From: prabhanshuguptagit Date: Thu, 2 Nov 2023 22:15:15 +0530 Subject: [PATCH] Add a github action to run tests --- .github/workflows/bean-tests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/bean-tests.yml diff --git a/.github/workflows/bean-tests.yml b/.github/workflows/bean-tests.yml new file mode 100644 index 0000000..7f06857 --- /dev/null +++ b/.github/workflows/bean-tests.yml @@ -0,0 +1,20 @@ +name: Bean tests +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + node-version: 18.x + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ node-version }} + cache: 'npm' + - run: npm install + - run: npx shadow-cljs compile test && node tests.js