Skip to content

Commit

Permalink
Add a workflow file to run a CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops committed Sep 22, 2023
1 parent d814053 commit f33d1f5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
run-ci:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
check-latest: true
cache: npm

- name: Install dependencies
run: npm ci

- name: Run 'lint' task
run: npm run lint

- name: Run 'test' task
run: npm run test

0 comments on commit f33d1f5

Please sign in to comment.