Skip to content

Commit

Permalink
Adds GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrmnn committed Mar 30, 2023
1 parent 57cc96f commit 4f36852
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Collect.js CI

on:
push:
branches:
- main
- 'feature/*'
- 'hotfix/*'
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18', '16', '14', '12', '10', '8', '6']

steps:
- name: Checkout code
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 install

- name: Run Linter and Tests
run: |
npm run eslint:strict
npm run coverage

0 comments on commit 4f36852

Please sign in to comment.