Skip to content

build(nix): update dependencies #2633

build(nix): update dependencies

build(nix): update dependencies #2633

Workflow file for this run

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
strategy:
matrix:
wash-version:
- 0.27.0
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
- name: ESLint
run: yarn run turbo:lint
- name: Unit Tests
run: yarn run turbo:test:unit
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Install wash
uses: taiki-e/install-action@v2
with:
tool: wash-cli@${{ matrix.wash-version }}
- name: E2E Tests
run: yarn run turbo:test:e2e
- 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.14.0
with:
draft: false
prerelease: false
makeLatest: false
artifacts: washboard.tar.gz