From 02bb11f9b5e9a6a7f2a3f34d9cf906f7ba4ad766 Mon Sep 17 00:00:00 2001 From: iChenLei Date: Tue, 31 May 2022 14:17:57 +0800 Subject: [PATCH 1/3] 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:../../" + } +} From 87e67369823206ae906eba9aba40bf514c9cd9a4 Mon Sep 17 00:00:00 2001 From: iChenLei Date: Tue, 31 May 2022 14:19:51 +0800 Subject: [PATCH 2/3] fix: ci yaml config --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 047fcb7f3..0c8297cd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,9 +95,7 @@ jobs: - name: Install yarn global run: npm install -g yarn - name: Run Yarn - run: cd ./test/yarn - run: yarn install - run: yarn run stylus --version + run: cd ./test/yarn && yarn install && yarn run stylus --version coverage: name: 'Run nyc for code coverage' From b372e8594d07226809bf2a61f49192db6dec71c0 Mon Sep 17 00:00:00 2001 From: iChenLei Date: Tue, 31 May 2022 14:39:48 +0800 Subject: [PATCH 3/3] fix: make it crash --- .github/workflows/ci.yml | 6 +++--- test/yarn/package.json | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c8297cd6..bb67dafed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,14 +88,14 @@ jobs: - 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: open a new folder + run: cd ./test/yarn - name: Run Yarn - run: cd ./test/yarn && yarn install && yarn run stylus --version + run: yarn install && yarn add stylus@latest && yarn run stylus coverage: name: 'Run nyc for code coverage' diff --git a/test/yarn/package.json b/test/yarn/package.json index cecae0968..e4055e735 100644 --- a/test/yarn/package.json +++ b/test/yarn/package.json @@ -1,6 +1,4 @@ { "name": "yarn-regression", - "dependencies": { - "stylus": "file:../../" - } + "dependencies": {} }