Skip to content

test: update admin panel tests organization, update url to pending items #24

test: update admin panel tests organization, update url to pending items

test: update admin panel tests organization, update url to pending items #24

Workflow file for this run

name: Deploy to NuxtHub
on: push
jobs:
deploy:
name: 'Deploy to NuxtHub'
runs-on: ubuntu-latest
environment:
# Ternary operator (see https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#example)
name: ${{ github.ref == 'refs/heads/master' && 'production' || 'preview' }}
url: ${{ steps.deploy.outputs.deployment-url }}
permissions:
contents: read
id-token: write
outputs:
deployment-url: ${{ steps.deploy.outputs.deployment-url }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build application
run: pnpm build
- name: Deploy to NuxtHub
uses: nuxt-hub/action@v1
id: deploy
with:
project-key: fildb-3jwq
test:
# From GitHub Actions docs: 'A job that is skipped will report its status as "Success".'
if: ${{ github.ref != 'refs/heads/master' }}
uses: ./.github/workflows/playwright.yml
needs: deploy
with:
deployment-url: ${{ needs.deploy.outputs.deployment-url }}
secrets: inherit