From 0d30966dddfa627496ee2bb6a31ab89f42af7d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Thu, 15 Feb 2024 16:55:03 +0000 Subject: [PATCH 1/2] Add GitHub Actions workflow file to run CI --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 00000000..781defbf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Run tests + +on: + push: + branches: + - master + pull_request: + branches: + - master + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + + - uses: actions/setup-node@v4.0.1 + with: + node-version: 18 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test From dfe8f5763dd0aba9eb28861c4e9e1d84c7fe0424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Thu, 15 Feb 2024 18:04:55 +0100 Subject: [PATCH 2/2] Use Node 10 in CI --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 781defbf..555259d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-node@v4.0.1 with: - node-version: 18 + node-version: 10 cache: 'npm' - name: Install dependencies