dependabot[bot] is testing frontend code 🪲 #83
This file contains hidden or 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 CI | |
run-name: ${{ github.actor }} is testing frontend code 🪲 | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
paths: | |
- "client/**" | |
pull_request: | |
branches: | |
- main | |
- develop | |
paths: | |
- "client/**" | |
jobs: | |
pipeline: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Starting Node.JS ${{matrix.node-version}} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{matrix.node-version}} | |
- name: Cache Yarn dependencies | |
uses: actions/cache@v2.1.6 | |
with: | |
path: ./client/node_modules | |
key: ${{ runner.os }}-yarn-${{ hashFiles('./client/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: install yarn | |
run: npm install --global yarn | |
- name: Install dependencies | |
working-directory: ./client | |
run: yarn install --frozen-lockfile | |
- name: Run TypeScript Linter | |
working-directory: ./client | |
run: yarn lint:ts | |
- name: Run SCSS Linter | |
working-directory: ./client | |
run: yarn lint:scss | |
- name: Run tests | |
working-directory: ./client | |
run: npm test | |
- name: Build project | |
working-directory: ./client | |
run: yarn build |