feat: Update test runners and CI/CD scripts #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Web Kit Build & Test | |
on: pull_request | |
jobs: | |
build-and-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: NPM install | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Run NPM CI | |
run: npm ci | |
- name: Build Files | |
run: npm run build | |
- name: Run Core tests | |
run: npm run test | |
- name: Archive npm failure logs | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: npm-logs | |
path: ~/.npm/_logs |