From b76e7e03e7e9d7c5a4d52efe626f00a9659d48a3 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 27 Feb 2024 13:08:40 +0100 Subject: [PATCH] added ci Signed-off-by: Matteo Collina --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bd90be9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: ci + +on: + push: + paths-ignore: + - 'docs/**' + - '*.md' + pull_request: + paths-ignore: + - 'docs/**' + - '*.md' + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - uses: ikalnytskyi/action-setup-postgres@v4 + + - name: Install + run: | + npm ci + + - name: Run tests + run: | + npm run test