diff --git a/.gitea/workflows/playwright.yml b/.gitea/workflows/playwright.yml new file mode 100644 index 0000000..0404c10 --- /dev/null +++ b/.gitea/workflows/playwright.yml @@ -0,0 +1,27 @@ +name: Playwright Tests +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] +jobs: + test: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install dependencies + run: npm install -g pnpm && pnpm install + - name: Install Playwright Browsers + run: pnpm exec playwright install --with-deps + - name: Run Playwright tests + run: pnpm exec playwright test + - uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..0d3a3a7 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,33 @@ +name: 'Publish to Netlify' +on: + push: + branches: [ prod, deploy ] + pull_request: + branches: [ prod, deploy ] +jobs: + publish: + timeout-minutes: 10 + runs-on: debian-latest + steps: + - uses: actions/checkout@v3 + name: Checkout + - name: Build + run: | + npm --version && node --version + npm ci --no-update-notifier + npm run build + - uses: https://github.com/nwtgck/actions-netlify@v2.0 + name: Deploy + with: + publish-dir: './dist' + production-deploy: true + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "Deployed from Gitea Action" + enable-commit-comment: false + enable-pull-request-comment: false + overwrites-pull-request-comment: true + enable-github-deployment: false + env: + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + timeout-minutes: 1