👷 Generate test summaries from tap scripts #83
Workflow file for this run
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: CI | |
on: | |
push: | |
jobs: | |
license_check: | |
name: License Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies & RT | |
run: pnpm install | |
- name: Check licenses | |
run: pnpm script:license-check | |
build: | |
name: Build | |
needs: [license_check] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies & RT | |
run: pnpm install | |
- name: Build | |
run: pnpm build | |
- name: Run tests | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: pnpm script:unit-test | |
- name: Create test summary | |
uses: test-summary/action@v2 | |
with: | |
paths: '.store/*.tap' | |
if: always() | |
- name: De-symlink | |
run: rsync .store/rt/ rt_dist/ -a --copy-links | |
- name: Compress artifact | |
run: tar -cvjSf testing-browser.tar.bz2 rt_dist/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: testing_browser | |
path: testing-browser.tar.bz2 |