This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Bump the minor group across 1 directory with 15 updates #1484
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: Frontend Code | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
# Deduplicate jobs from pull requests and branch pushes within the same repo. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
name: Frontend Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4.1.4 | |
- name: Node Action | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
cache-dependency-path: frontend/ | |
- name: yarn install | |
uses: borales/actions-yarn@v5.0.0 | |
with: | |
cmd: install | |
dir: "frontend" | |
- name: yarn test | |
uses: borales/actions-yarn@v5.0.0 | |
with: | |
cmd: test --passWithNoTests | |
dir: "frontend" | |
lint: | |
# Deduplicate jobs from pull requests and branch pushes within the same repo. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
name: Lint and Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4.1.4 | |
- name: Node Action | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
cache-dependency-path: frontend/ | |
- name: yarn install | |
uses: borales/actions-yarn@v5.0.0 | |
with: | |
cmd: install | |
dir: "frontend" | |
- name: yarn eslint-lint | |
uses: borales/actions-yarn@v5.0.0 | |
with: | |
cmd: eslint-lint | |
dir: "frontend" | |
- name: yarn format | |
uses: borales/actions-yarn@v5.0.0 | |
with: | |
cmd: format | |
dir: "frontend" |