This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
chore(deps): bump word-wrap from 1.2.3 to 1.2.4 #97
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: Run VSF1 tests | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- 'release/v**' | |
- 'hotfix/v**' | |
pull_request: | |
branches: | |
- master | |
- develop | |
- 'release/v**' | |
- 'hotfix/v**' | |
jobs: | |
prepare_dependencies: | |
name: Prepare dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10' | |
- name: Clone default theme | |
run: git clone --quiet --single-branch --branch master https://github.com/vuestorefront/vsf-default.git ./src/themes/default | |
- name: Get cached dependencies | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
lint: | |
name: Lint | |
needs: prepare_dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10' | |
- name: Get cached dependencies | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Run linter | |
run: yarn lint | |
unit_tests: | |
name: Unit tests | |
needs: prepare_dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10' | |
- name: Get cached dependencies | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Run unit tests | |
run: yarn test:unit | |
build: | |
name: Build | |
needs: prepare_dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10' | |
- name: Clone default theme | |
run: git clone --quiet --single-branch --branch master https://github.com/vuestorefront/vsf-default.git ./src/themes/default | |
- name: Get cached dependencies | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Run build | |
run: yarn build |