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

Version 1.0.10

Version 1.0.10 #30

Workflow file for this run

name: "Node.js"
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ develop ]
schedule:
- cron: '42 18 * * 6'
jobs:
lts_versions:
name: "Get versions"
runs-on: ubuntu-latest
steps:
- id: set-matrix
run: echo "matrix=$(curl -s https://raw.githubusercontent.com/fvdm/nodejs-versions/main/lts-current.json)" >> $GITHUB_OUTPUT
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
build:
name: "Node"
needs: lts_versions
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ${{ fromJson(needs.lts_versions.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- name: Test on Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
PIWIK_URL: ${{ secrets.PIWIK_URL }}
PIWIK_TOKEN: ${{ secrets.PIWIK_TOKEN }}
PIWIK_SITEID: ${{ secrets.PIWIK_SITEID }}
PIWIK_TIMEOUT: ${{ secrets.PIWIK_TIMEOUT }}
DOTEST_NOCOV: ${{ secrets.DOTEST_NOCOV }}
DOTEST_MINCOV: ${{ secrets.DOTEST_MINCOV }}
DOTEST_COVFUNCTIONS: 100
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
if: always()
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node-version }}
parallel: true
good_build:
name: "Good build"
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "Build was sucessfull"
finish:
name: "Upload coverage"
needs: build
if: always()
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true