From 7034036fcb1c93e0ed5d73499c2728a43c0f571d Mon Sep 17 00:00:00 2001 From: Jesse Portnoy Date: Fri, 25 Aug 2023 21:44:22 +0100 Subject: [PATCH] CI (#1654) * CI * npx browserslist@latest --update-db * Disbale build:demo for now as it always seems to fail. * With node 16, all jobs run for me, so, let's try with that. --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ yarn.lock | 6 +++--- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..57e1d07c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Node.js CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + # node-version: [16.x, 18.x, 20.x] + node-version: [16.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install + - run: yarn lint + - run: yarn test:coverage -v + - run: yarn build:lib + - run: yarn build:demo + - run: yarn build:dist + - run: yarn build:standalone + diff --git a/yarn.lock b/yarn.lock index c3fd3fb9..d398efde 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2326,9 +2326,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001317: - version "1.0.30001402" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001402.tgz" - integrity sha512-Mx4MlhXO5NwuvXGgVb+hg65HZ+bhUYsz8QtDGDo2QmaJS2GBX47Xfi2koL86lc8K+l+htXeTEB/Aeqvezoo6Ew== + version "1.0.30001517" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz" + integrity sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA== chalk@^2.0.0, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2"