Skip to content

Commit

Permalink
Added GitHub Actions workflow to lint and compile code - main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BeardedFish committed Aug 14, 2023
1 parent e7610ee commit 4d2d924
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Lint and Compile Code

on:
push:
branches:
- '*'
tags-ignore:
- 'release-*'
pull_request:
branches:
- '*'

jobs:
lint:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Cache npm Dependencies
uses: actions/cache@v3
with:
path: ./
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- name: Install npm Dependencies
run: npm install

- name: Lint Code
run: npm run lint

- name: Compile Code
run: npm run compile

0 comments on commit 4d2d924

Please sign in to comment.