feat: introduce initialIndex
callback which navigates carousel to p…
#89
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: Development CI | |
on: | |
push: | |
branches: [ development ] | |
pull_request: | |
branches: [ development ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CHROME_BIN: /usr/bin/chromium-browser | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Install NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Clean install | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Install Chromium | |
run: | | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-get update | |
sudo apt-get install google-chrome-stable | |
- name: Test library | |
run: npm run test:lib:once | |
- name: Test showcase | |
run: npm run test:showcase:once | |
- name: Build library | |
run: npm run build:lib | |
- name: Build Github Pages | |
run: npm run build:gh | |
- name: Publish Github Pages | |
run: npm run publish-demo | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |