Skip to content

Test commit 2

Test commit 2 #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
NODE_VERSION: '18.x'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: Generate coverage badges
if: ${{ hashFiles('./coverage') != '' }}
continue-on-error: true
run: |
npm run cov-badges
ls -l ./badges
- name: Upload coverage badges
id: upload-coverage-badges
if: ${{ hashFiles('./badges') != '' }}
uses: peaceiris/actions-gh-pages@v3
continue-on-error: true
with:
deploy_key: ${{ secrets.GH_PAGES_DEPLOY_KEY }}
external_repository: will8ug/will8ug.github.io
publish_dir: ./badges
publish_branch: main
destination_dir: refactoring-2-javascript/badges