main-updated #572
This file contains 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: Netlify Server | |
on: | |
push: | |
repository_dispatch: | |
types: [main-updated] | |
jobs: | |
test: | |
name: Test Netlify Server | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install NPM Dependencies | |
run: npm install | |
- name: Deploy to Netlify | |
run: npm run deploy.netlify | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
- name: Install Playwright | |
run: npx playwright install chromium --with-deps | |
- name: Test Netlify Server MPA | |
run: npm run test.netlify.mpa | |
- name: Test Netlify Server SPA | |
run: npm run test.netlify.spa |