Clean build artifacts before running strapi build (#648) #2826
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: Lint & Test CI | |
on: [push] | |
jobs: | |
lint_bp_gallery: | |
name: Lint bp-gallery | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./projects/bp-gallery | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install bp-gallery dependencies | |
run: yarn install --frozen-lockfile | |
- name: Install bp-graphql dependencies | |
working-directory: ./projects/bp-graphql | |
run: yarn install --frozen-lockfile && tsc | |
- name: Generate APIConnector | |
run: yarn generate-api | |
- name: Lint bp-gallery | |
run: yarn lint |