Skip to content

update vite config for native build #1105

update vite config for native build

update vite config for native build #1105

Workflow file for this run

name: Checks and Tests
on:
push:
pull_request:
jobs:
checks:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
uses: ./.github/actions/install
- name: Check
run: yarn check
- name: Lint
run: yarn lint
tests:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
uses: ./.github/actions/install
- name: Build
run: yarn build
- name: Build vxrn
run: cd packages/vxrn && yarn build
- name: Test
run: yarn test
notify:
needs: [checks, tests]
runs-on: ubuntu-latest
if: failure()
steps:
- name: Notify Discord on failure
run: |
echo "Checks or tests failed, sending message to Discord..."
curl -H "Content-Type: application/json" \
-X POST \
-d '{
"content": "🚨 Checks or tests failed for commit `${{ github.sha }}` in [${{ github.repository }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}).\nSee the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})."
}' \
${{ secrets.DISCORD_WEBHOOK_URL }}