feat: update to svelte 5 and add a couple of components #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: Codecov | |
on: | |
push: | |
branches: ['main', 'dev'] | |
pull_request: | |
types: [opened, synchronize] | |
env: | |
MOONBASE_SECRET_KEY: ${{ secrets.MOONBASE_SECRET_KEY }} | |
DO_NOT_TRACK: 1 | |
jobs: | |
codecov: | |
name: Test and Codecov | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache Rust | |
uses: Swatinem/rust-cache@v2 | |
- name: Install binstall | |
uses: cargo-bins/cargo-binstall@main | |
- uses: 'moonrepo/setup-toolchain@v0' | |
with: | |
auto-install: true | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: Cache Pnpm | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install playwright | |
run: pnpm dlx playwright install --with-deps | |
- name: install tauri dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Test and Codecov | |
run: 'pnpm moon run :coverage' | |
- name: report to moon app | |
uses: 'moonrepo/run-report-action@v1' | |
if: success() || failure() | |
with: | |
access-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |