Skip to content

Commit

Permalink
feat: add github workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saba-Var authored Sep 22, 2023
1 parent 9ded607 commit d6c0c56
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build/Lint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

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

- name: Cache Node.js dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install

- name: Run linting
run: npm run lint

- name: Build
run: npm run build

0 comments on commit d6c0c56

Please sign in to comment.