Bump chai from 4.3.7 to 4.3.8 #963
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
push: | |
branches: "*" | |
pull_request: | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup node" | |
uses: actions/setup-node@v3.8.1 | |
- name: "Cache NPM dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: | | |
"~/.npm" | |
"~/.cache/puppeteer" | |
key: npm-dependencies-${{ runner.os }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-dependencies-${{ runner.os }}-${{ hashFiles('package.json') }} | |
npm-dependencies-${{ runner.os }}- | |
- name: "Install NPM dependencies" | |
run: | | |
npm ci | |
- name: "Build" | |
run: | | |
npm run build | |
- name: "Upload artifact" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "build-artifact" | |
path: dist | |
test: | |
name: "Test" | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup node" | |
uses: actions/setup-node@v3.8.1 | |
- name: "Cache NPM dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: | | |
"~/.npm" | |
"~/.cache/puppeteer" | |
key: npm-dependencies-${{ runner.os }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-dependencies-${{ runner.os }}-${{ hashFiles('package.json') }} | |
npm-dependencies-${{ runner.os }}- | |
- name: "Install NPM dependencies" | |
run: | | |
npm ci | |
- name: "Download build artifact" | |
uses: actions/download-artifact@v3 | |
with: | |
name: "build-artifact" | |
path: dist | |
- name: "Copy over build artifacts" | |
run: | | |
cp dist/imagelightbox.css docs/stylesheets/ | |
cp dist/imagelightbox.min.js docs/javascripts/ | |
- name: "Test" | |
run: | | |
npm run test | |
lint: | |
name: "Lint" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup node" | |
uses: actions/setup-node@v3.8.1 | |
- name: "Cache NPM dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: | | |
"~/.npm" | |
"~/.cache/puppeteer" | |
key: npm-dependencies-${{ runner.os }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-dependencies-${{ runner.os }}-${{ hashFiles('package.json') }} | |
npm-dependencies-${{ runner.os }}- | |
- name: "Install NPM dependencies" | |
run: | | |
npm ci | |
- name: "Lint" | |
run: | | |
npm run lint |