build(deps-dev): Bump @types/node in /washboard-ui #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: washboard | |
on: | |
push: | |
paths: | |
- 'washboard-ui/**' | |
branches: | |
- main | |
tags: | |
- 'washboard-ui-v*' | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: washboard-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./washboard-ui | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ./washboard-ui/.tool-versions | |
cache-dependency-path: ./washboard-ui/yarn.lock | |
- name: Setup Yarn | |
run: | | |
corepack enable | |
yarn --version | |
- name: Cache turbo build setup | |
uses: actions/cache@v4 | |
with: | |
path: ./washboard-ui/.turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-turbo- | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Prettier | |
run: yarn run turbo:format:prettier:check | |
- name: ESLint | |
run: yarn run turbo:lint:eslint | |
- name: Vitest | |
run: yarn run turbo:test:vitest | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps chromium | |
- name: Playwright Tests | |
run: yarn run test:playwright:headless | |
- name: Build | |
run: yarn run turbo:build | |
- name: Compress | |
run: tar -C ./packages/washboard-ui/dist -zcvf washboard.tar.gz . | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: washboard | |
path: ./washboard-ui/washboard.tar.gz | |
- name: Upload Playwright Report | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
retention-days: 30 | |
path: | | |
washboard-ui/packages/washboard-ui/playwright-report | |
washboard-ui/packages/washboard-ui/test-results | |
release: | |
runs-on: ubuntu-latest | |
needs: build | |
if: startsWith(github.ref, 'refs/tags/washboard-ui-v') | |
steps: | |
- name: Download Asset | |
uses: actions/download-artifact@v4 | |
with: | |
name: washboard | |
- name: Create Release | |
uses: ncipollo/release-action@v1.13.0 | |
with: | |
draft: false | |
prerelease: false | |
makeLatest: false | |
artifacts: washboard.tar.gz |