Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
chore: setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kawacrepe committed Oct 1, 2021
1 parent a6b75d9 commit 71a5ee5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Node.js CI

on:
push:
branches: main
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "node index.js",
"lint": "eslint index.js",
"test": "cross-env esm-tape-runner 'test/**/*.test.js' | tap-monkey",
"test": "cross-env esm-tape-runner 'tests/**/*.test.js' | tap-monkey",
"coverage": "c8 -r html npm test"
},
"repository": {
Expand Down

0 comments on commit 71a5ee5

Please sign in to comment.