Skip to content

Commit

Permalink
action for build and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmohanty11 committed Feb 17, 2024
1 parent 2931bfd commit 8e0b2d4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-and-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Lint

on:
push:
branches:
- main
- develop

jobs:
build-and-lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.19.0

- name: Set up Yarn
uses: actions/setup-node@v3
with:
node-version: 16.19.0
cache: 'yarn'

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn

- name: Build
run: yarn build

- name: Lint
run: yarn lint

0 comments on commit 8e0b2d4

Please sign in to comment.