From b5766c4d6a4291c9f1b7b0b65d022110876e87cf Mon Sep 17 00:00:00 2001 From: Jonathan Stacks Date: Mon, 16 Dec 2024 15:23:53 -0600 Subject: [PATCH] feat(ci): Add CI tests --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..5a6a5ab --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI +on: + push: + pull_request: + +jobs: + test: + name: "Test (Node: ${{matrix.node-version}})" + runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + fail-fast: false + matrix: + node-version: + - 18 + - 20 + - 22 + env: + NGROK_API_KEY: dummy-api-key # The tests crash if NGROK_API_KEY is not set + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build + - run: npm run test