Skip to content

test: playwright

test: playwright #3511

Workflow file for this run

name: Node
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout 🧬
uses: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false
- name: Setup node env 🟨
uses: actions/[email protected]
with:
node-version: 16
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn install
- name: Lint ✨
run: yarn run lint
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout 🧬
uses: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false
- name: Setup node env 🟨
uses: actions/[email protected]
with:
node-version: 16
- name: Copy .env πŸ“‹
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn install
- name: Build πŸ”¨
run: yarn run build
- name: Test πŸ§ͺ
run: yarn run test
- name: Run Lighthouse πŸ’‘
run: yarn run lhci:autorun
release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
needs: build
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout 🧬
uses: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js 🟨
uses: actions/[email protected]
with:
node-version: 16
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn install
- name: Release πŸš€
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx -p @semantic-release/changelog@5 -p @semantic-release/git@9 -p semantic-release@17 semantic-release