Skip to content

Commit

Permalink
Update github test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dstoc committed May 6, 2024
1 parent 2aead9b commit ab3a7a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,34 @@ jobs:
uses: actions/checkout@main
with:
persist-credentials: false
submodules: recursive
- name: Install pnpm
uses: pnpm/[email protected]
- 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()
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "third_party/tree-sitter"]
path = third_party/tree-sitter
url = https://github.com/tree-sitter/tree-sitter
1 change: 0 additions & 1 deletion third_party/tree-sitter
Submodule tree-sitter deleted from 6bbb50

0 comments on commit ab3a7a2

Please sign in to comment.