From a910c1432ae84857f10bfb349a89adf1a575512c Mon Sep 17 00:00:00 2001 From: Alexander Lang <2173+langalex@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:23:19 +0100 Subject: [PATCH] add CI and dependabot config (#1) --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..406baea --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1d104c3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Test + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: yarn + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run tests + run: | + yarn build + yarn test