chore: Update dev deps to latest versions (#49) #113
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: 'Build & Test' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version-file: 'package.json' | |
- name: Install | |
run: yarn install | |
- name: Lint | |
run: yarn lint | |
- name: Build | |
run: yarn build | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.sha }} | |
path: ./packages/**/dist/**/* | |
test_node: | |
name: Test Node.js v${{ matrix.version }} | |
runs-on: ubuntu-latest | |
needs: build | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [18, 20, 22] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: ${{ matrix.version }} | |
- name: Install | |
run: yarn install | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: ./packages | |
merge-multiple: true | |
- name: Run Unit Tests | |
run: yarn test:node | |
test_browser: | |
name: Test Browser | |
runs-on: macos-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version-file: 'package.json' | |
- name: Install | |
run: yarn install | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: ./packages | |
merge-multiple: true | |
- name: Run Unit Tests | |
run: yarn playwright install && yarn test:browser |