Skip to content

Commit

Permalink
Create test and lint Workflows (#8)
Browse files Browse the repository at this point in the history
* create test and lint workflows

* use setup-node w/ LTS version, use clean install

* fix missing newline

* checkout repo before node setup

* remove extra spaces from lint workflow end
  • Loading branch information
angel1254mc authored Oct 12, 2023
1 parent b833280 commit 63375a9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
branches-ignore:
- master
- gh-pages

jobs:
lint:
runs-on: ubuntu-latest

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

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

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint
24 changes: 24 additions & 0 deletions .github/workflows/test.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
branches-ignore:
- master
- gh-pages

jobs:
test:
runs-on: ubuntu-latest

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

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

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test

0 comments on commit 63375a9

Please sign in to comment.