Skip to content

🚿

🚿 #33

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "build"
on:
push:
branches:
- main
jobs:
build:
name: "build"
runs-on: ubuntu-latest
steps:
- name: "checkout sources"
uses: actions/checkout@v4
- name: "install dependencies"
run: npm install
- name: "run eslint"
run: npm run lint
- name: "run mocha tests (with coverage)"
run: npm run test-with-coverage
- name: "build"
run: npm run build
- name: "build-src"
run: npm run build-src
- name: "send code coverage report to codecov.io"
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .build/coverage/clover.xml
- name: "build docs"
run: npm run jsdoc
- name: "publish docs to gh-pages"
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: doc
clean: true
- name: "upload artifacts"
uses: actions/upload-artifact@v4
with:
name: js-qrcode-${{ github.sha }}
path: ./dist