From bf3d169fdbc552623d024af7da554ab894be5b45 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Tue, 31 May 2022 14:48:23 +0800 Subject: [PATCH] ci: yarn bin execute regression (#2692) * fix: yarn exec regession * fix: ci yaml config * fix: make it crash --- .github/workflows/ci.yml | 17 +++++++++++++++++ test/yarn/package.json | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 test/yarn/package.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 983004887..cd22464c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,6 +65,23 @@ 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: 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: yarn install && yarn add stylus@latest && yarn run stylus + 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..e4055e735 --- /dev/null +++ b/test/yarn/package.json @@ -0,0 +1,4 @@ +{ + "name": "yarn-regression", + "dependencies": {} +}