Skip to content

Update babel monorepo - abandoned #55

Update babel monorepo - abandoned

Update babel monorepo - abandoned #55

Workflow file for this run

name: CI
# Variables
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
# Triggering the workflow on PRs and pushes to relevant branches
on:
pull_request:
branches:
- main
- feature/**
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
# Defining what Node.js version to use
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
# Installing node dependencies using Yarn
- name: Yarn install
run: yarn install
# Linting the application
- name: Yarn lint
run: yarn lint
# Persisting Next.js' cache across builds
- name: Use Next.js cache
uses: actions/[email protected]
with:
path: ${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
# Building the application
- name: Yarn build
run: yarn build
# Installing Playwright's browsers
- name: Install Playwright's browsers
run: npx playwright install --with-deps
# Running application tests
- name: Yarn test
run: yarn test
# Running E2E screenshots check
- name: E2E check
run: yarn e2e-check
# Committing E2E screenshot changes
- name: Commit E2E changes
uses: EndBug/[email protected]
with:
message: "[skip ci] [e2e-check] Automated Playwright E2E screenshot changes commit"
new_branch: ${{ env.BRANCH_NAME }}
# Running Storybook story screenshots check
- name: Run stories-check
run: yarn stories-check
# Committing Storybook story screenshot changes
- name: Commit Storybook changes
uses: EndBug/[email protected]
with:
message: "[skip ci] [storybook-check] Automated Storybook screenshot changes commit"
new_branch: ${{ env.BRANCH_NAME }}