Merge pull request #63 from strapi-community/dependabot/npm_and_yarn/… #171
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
lint: | |
name: 'lint' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18, 20] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'yarn' | |
- name: Install dependencies | |
# We set production to false since we need dev dependencies for building | |
run: yarn install --production=false --frozen-lockfile | |
- name: Compile typescript | |
run: yarn run build | |
- name: Run eslint | |
run: yarn run eslint | |
# unit: | |
# name: 'unit' | |
# needs: [lint] | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# node: [18, 20] | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: actions/setup-node@v2 | |
# with: | |
# node-version: ${{ matrix.node }} | |
# cache: 'yarn' | |
# - name: Install dependencies | |
# run: yarn --ignore-scripts --frozen-lockfile | |
# - name: Run test | |
# run: yarn run -s test:unit |