From d64293d240740d515294ec4f1b0f3586b109a088 Mon Sep 17 00:00:00 2001 From: Sander Ploegsma Date: Thu, 2 Nov 2023 15:02:24 +0100 Subject: [PATCH] [Javascript] Set up CI workflow --- .github/workflows/javascript.yml | 31 +++++++++++++++++++++++++++++++ javascript/.gitignore | 1 + javascript/package.json | 11 +++++++++++ javascript/yarn.lock | 4 ++++ 4 files changed, 47 insertions(+) create mode 100644 .github/workflows/javascript.yml create mode 100644 javascript/.gitignore create mode 100644 javascript/package.json create mode 100644 javascript/yarn.lock diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml new file mode 100644 index 0000000..0c6532c --- /dev/null +++ b/.github/workflows/javascript.yml @@ -0,0 +1,31 @@ +name: javascript + +on: + push: + paths: + - ".github/workflows/javascript.yml" + - "javascript/**" + branches: [main] + pull_request: + paths: + - ".github/workflows/javascript.yml" + - "javascript/**" + branches: [main] + +defaults: + run: + working-directory: javascript + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 18.x + - name: Install dependencies + run: yarn + - name: Run tests + run: yarn workspaces run test diff --git a/javascript/.gitignore b/javascript/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/javascript/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/javascript/package.json b/javascript/package.json new file mode 100644 index 0000000..7765bab --- /dev/null +++ b/javascript/package.json @@ -0,0 +1,11 @@ +{ + "name": "exercism-javascript-workspace", + "version": "0.0.0", + "private": true, + "workspaces": [ + "annalyns-infiltration", + "freelancer-rates", + "hello-world", + "lasagna" + ] +} diff --git a/javascript/yarn.lock b/javascript/yarn.lock new file mode 100644 index 0000000..fb57ccd --- /dev/null +++ b/javascript/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + +