From 6d03b1868311fc6122f394e8e3abf29b15078a79 Mon Sep 17 00:00:00 2001 From: Thomas Hunter II Date: Mon, 28 Aug 2023 17:02:06 -0700 Subject: [PATCH] enable pull request tests (#20) --- .github/workflows/pull-request.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..bb3432b --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,32 @@ +name: Tests + +on: + pull_request: + branches: + - main + +jobs: + test-unit: + name: "Unit Tests" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: 1.21.0 + - run: make test + + test-sqlite: + name: "SQLite Integration Tests" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.17.1 + - uses: actions/setup-go@v4 + with: + go-version: 1.21.0 + - run: npm install -g zx + - run: make build + - run: cd tests/sqlite && ../test.mjs \ No newline at end of file