From ab3a7a27fe1b4d6d3e34ad95e90b8f95878eeff6 Mon Sep 17 00:00:00 2001 From: dstoc <539597+dstoc@users.noreply.github.com> Date: Tue, 7 May 2024 09:47:53 +1000 Subject: [PATCH] Update github test workflow --- .github/workflows/test.yml | 24 ++++++++++++------------ .gitmodules | 3 --- third_party/tree-sitter | 1 - 3 files changed, 12 insertions(+), 16 deletions(-) delete mode 160000 third_party/tree-sitter diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 817a6927..88784e92 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,34 +31,34 @@ jobs: uses: actions/checkout@main with: persist-credentials: false - submodules: recursive + - name: Install pnpm + uses: pnpm/action-setup@v3.0.0 - uses: actions/setup-node@v3 with: node-version: 18 - cache: 'npm' + cache: 'pnpm' - name: Cache build id: cache-build uses: actions/cache@v3 with: - key: build-${{ hashFiles('package-lock.json', 'build-wasm.sh') }} + key: build-${{ hashFiles('pnpm-lock.json', 'build-wasm.sh') }} path: build - name: install - run: npm install - - if: ${{ steps.cache-build.outputs.cache-hit == 'true' }} - name: build (cached) - run: npm run build-cached + run: pnpm install - if: ${{ steps.cache-build.outputs.cache-hit != 'true' }} - name: build - run: npm run build + name: update-deps + run: pnpm run update-deps - uses: browser-actions/setup-chrome@latest with: chrome-version: stable id: setup-chrome - - name: test + - name: Unit Tests + run: CHROMIUM_BIN=$(which chrome) pnpm run unittest + - name: Automation Tests run: | - npm run serve & + pnpm run preview & sleep 5 && - CHROMIUM_BIN=$(which chrome) npm run test + CHROMIUM_BIN=$(which chrome) pnpm run test - name: 'Upload test logs' uses: actions/upload-artifact@v3 if: always() diff --git a/.gitmodules b/.gitmodules index 3ba2e00f..e69de29b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "third_party/tree-sitter"] - path = third_party/tree-sitter - url = https://github.com/tree-sitter/tree-sitter diff --git a/third_party/tree-sitter b/third_party/tree-sitter deleted file mode 160000 index 6bbb50be..00000000 --- a/third_party/tree-sitter +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6bbb50bef8249e6460e7d69e42cc8146622fa4fd