From 02bb11f9b5e9a6a7f2a3f34d9cf906f7ba4ad766 Mon Sep 17 00:00:00 2001 From: iChenLei Date: Tue, 31 May 2022 14:17:57 +0800 Subject: [PATCH] fix: yarn exec regession --- .github/workflows/ci.yml | 19 +++++++++++++++++++ test/yarn/package.json | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100644 test/yarn/package.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7212ce9b..047fcb7f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,6 +80,25 @@ jobs: - name: Run Benchmark run: node ./bm.js + yarn-regression: + name: 'yarn exec stylus regression test' + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '18' + - name: Install npm dependencies + run: npm install + - name: Print put node & npm version + run: node --version && npm --version + - name: Install yarn global + run: npm install -g yarn + - name: Run Yarn + run: cd ./test/yarn + run: yarn install + run: yarn run stylus --version + coverage: name: 'Run nyc for code coverage' runs-on: ubuntu-latest diff --git a/test/yarn/package.json b/test/yarn/package.json new file mode 100644 index 000000000..cecae0968 --- /dev/null +++ b/test/yarn/package.json @@ -0,0 +1,6 @@ +{ + "name": "yarn-regression", + "dependencies": { + "stylus": "file:../../" + } +}