feat(web): migrate frontend to Nuxt 4 + Vue 3 + Vuetify 4 #47
This file contains hidden or 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: web | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| deployments: write | |
| defaults: | |
| run: | |
| working-directory: ./web | |
| jobs: | |
| validate: | |
| name: Validate | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: [20] | |
| steps: | |
| - name: Checkout 🛎 | |
| uses: actions/checkout@master | |
| - uses: pnpm/action-setup@v6 | |
| name: Install pnpm | |
| with: | |
| version: 10 | |
| - name: Install dependencies 📦 | |
| run: pnpm install | |
| - name: Run linter 👀 | |
| run: pnpm lint | |
| - name: Run tests 🧪 | |
| run: pnpm test | |
| - name: Build 🏗️ | |
| run: pnpm run build | |
| deploy: | |
| name: Deploy | |
| needs: validate | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎 | |
| uses: actions/checkout@master | |
| - uses: pnpm/action-setup@v6 | |
| name: Install pnpm | |
| with: | |
| version: 10 | |
| - name: Install dependencies 📦 | |
| run: pnpm install | |
| - name: Build 🏗️ | |
| run: pnpm run build | |
| - name: Cloudflare Deploy 🚀 | |
| uses: cloudflare/pages-action@1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: httpsms | |
| directory: web/.output/public | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Firebase Deploy 🚀 | |
| uses: FirebaseExtended/action-hosting-deploy@v0 | |
| with: | |
| repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
| channelId: live | |
| entryPoint: "./web" | |
| firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HTTPSMS_86C51 }}" | |
| projectId: httpsms-86c51 |