feat(wash-lib)!: add custom rust provider template #2
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 | |
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 |