Skip to content

3.0.1

3.0.1 #5

Workflow file for this run

name: CI
# test, build documentation and publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-in-maintained-versions:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: ${{ matrix.node-version }}
- run: npm ci --verbose
- run: npm test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: latest
- run: npm ci --verbose
- run: npm test -- --coverageReporters=json-summary
- name: "Get total tests coverage"
run: |
export TOTAL=$(cat coverage/coverage-summary.json | jq .total.statements.pct)
echo "total=$TOTAL" >> $GITHUB_ENV
echo "### Total coverage: ${TOTAL}%" >> $GITHUB_STEP_SUMMARY
- name: Dynamic Badges
uses: Schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
filename: ${{ github.event.repository.name }}.json
gistID: 27d772a9a3a8a945b34fd9676de40486
label: Coverage
minColorRange: 50
message: ${{ env.total }}%
maxColorRange: 90
namedLogo: Jest
valColorRange: ${{ env.total }}
publish-docs:
needs: [build-in-maintenance-versions, build]

Check failure on line 70 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 70, Col: 13): Job 'publish-docs' depends on unknown job 'build-in-maintenance-versions'.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: latest
- run: npm ci --verbose
- run: npm run docs
- uses: cpina/[email protected]
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
destination-github-username: Mafalda-SFU
destination-repository-name: Mafalda-SFU.github.io
source-directory: docs
target-directory: docs/${{ github.event.repository.name }}
user-email: [email protected]
user-name: Mafalda bot