From b3e778c223d6dd45cfdd4b3fb15a01eb66d8db5f Mon Sep 17 00:00:00 2001 From: dafuga Date: Thu, 27 Jun 2024 19:40:37 -0700 Subject: [PATCH] chore: added github checks --- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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 0000000..b3cd44e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Tests +on: push +jobs: + test-node-js: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [14, 16, 18] + name: Node.js v${{ matrix.node-version }} + steps: + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Bun + run: | + curl -fsSL https://bun.sh/install | bash + echo 'export BUN_INSTALL="$HOME/.bun"' >> $GITHUB_ENV + echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $GITHUB_ENV + source $GITHUB_ENV + + - name: Verify Bun installation + run: bun --version + + - name: Install dependencies + run: bun install + + - name: Run checks + run: bun run make check + + - name: Run tests + run: bun run make test