Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Apr 8, 2023
1 parent c819d0f commit 5d7be21
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: Tests
on: [push, pull_request]

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:

env:
CI: true
FORCE_COLOR: 2

jobs:
test:
Expand All @@ -11,17 +18,20 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
node: [10, 12, 14, 16, 18]
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set Node.js version
uses: actions/setup-node@v1
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install npm dependencies
run: npm ci
Expand All @@ -30,7 +40,7 @@ jobs:
run: npm run test:cov

- name: Run Coveralls
uses: coverallsapp/github-action@master
if: matrix.node == 10 && startsWith(matrix.os, 'ubuntu')
uses: coverallsapp/github-action@v2
if: matrix.node == 12 && startsWith(matrix.os, 'ubuntu')
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 5d7be21

Please sign in to comment.