Skip to content

πŸ§ͺ test: Allow CommonJS tests to run. #1

πŸ§ͺ test: Allow CommonJS tests to run.

πŸ§ͺ test: Allow CommonJS tests to run. #1

Workflow file for this run

name: ci
on:
push:
branches:
main
pull_request:
jobs:
build:
name: Continuous integration (build)
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- name: Install πŸ“¦
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true
- name: Build πŸ—οΈ
run: yarn build
- name: Archive build πŸ’½
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
retention-days: 1
test:
needs: ["build"]
name: Continuous integration (tests)
runs-on: ubuntu-latest
strategy:
matrix:
bundle: ["modern", "module", "cjs"]
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- name: Install πŸ“¦
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-scripts
useRollingCache: true
- name: Load build πŸ’½
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Test πŸ”¬
run: yarn test:${{ matrix.bundle }}