Skip to content

Commit

Permalink
build: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
killmenot committed Dec 19, 2023
1 parent 3ffc21e commit 74ccbe7
Showing 3 changed files with 14,125 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Status

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm test

coverage:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 20.x
- run: npm ci
- run: npm run test-coverage
- run: npm run test-coveralls

- name: Coveralls
uses: coverallsapp/github-action@v2
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@ build/Release
# Dependency directory
node_modules
yarn.lock
package-lock.json

# Optional npm cache directory
.npm
Loading

0 comments on commit 74ccbe7

Please sign in to comment.