diff options
| author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2023-03-09 04:48:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-09 12:48:39 +0900 |
| commit | 4835f0fb4305c43bc0313c7e343c3863b17f435b (patch) | |
| tree | ec10998e9c9b7b8d4388cad69d819514843b39a6 /.github/workflows/test-frontend.yml | |
| parent | fix(client): ロールで広告を無効にするとadmin/adsでプレビュ... (diff) | |
| download | sharkey-4835f0fb4305c43bc0313c7e343c3863b17f435b.tar.gz sharkey-4835f0fb4305c43bc0313c7e343c3863b17f435b.tar.bz2 sharkey-4835f0fb4305c43bc0313c7e343c3863b17f435b.zip | |
fix(frontend): GIFバナーの復活など (#10247)
* Restore GIF banner
* Add ALT banner, detect APNG too
* Add vitest
* Add CI for vitest
* Upload coverage?
* frontend
Diffstat (limited to '.github/workflows/test-frontend.yml')
| -rw-r--r-- | .github/workflows/test-frontend.yml | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/.github/workflows/test-frontend.yml b/.github/workflows/test-frontend.yml index c0753b8fb5..18c1a31aee 100644 --- a/.github/workflows/test-frontend.yml +++ b/.github/workflows/test-frontend.yml @@ -8,7 +8,44 @@ on: pull_request: jobs: - cypress: + vitest: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v3.3.0 + with: + submodules: true + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 7 + run_install: false + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3.6.0 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - run: corepack enable + - run: pnpm i --frozen-lockfile + - name: Check pnpm-lock.yaml + run: git diff --exit-code pnpm-lock.yaml + - name: Copy Configure + run: cp .github/misskey/test.yml .config + - name: Build + run: pnpm build + - name: Test + run: pnpm --filter frontend test-and-coverage + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./packages/frontend/coverage/coverage-final.json + + e2e: runs-on: ubuntu-latest strategy: |