fix: Improve array handling not fully functional (misses item type) #215 #216
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
# File for Pull Request on main branch | |
name: PR on main | |
# When a PR is opened to main | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [opened, reopened, synchronize] | |
env: | |
BEFORE_SHA: ${{ github.event.before }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
jobs: | |
build: | |
# Setup OS and Node Version | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Latest nodes only | |
node-version: [18] | |
# Define Steps | |
steps: | |
# Checkout code | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Make sure we have all branches | |
- name: Fetch other branches | |
run: git fetch --no-tags --prune --depth=5 origin main | |
- name: Install environment | |
run: npm install | |
- name: Run lint | |
run: npm run affected:lint -- --base="origin/main" | |
- name: Tests coverage | |
run: npm run affected:test -- --base="origin/main" --codeCoverage |