Skip to content

Bump actions/setup-node from 1 to 4 #2

Bump actions/setup-node from 1 to 4

Bump actions/setup-node from 1 to 4 #2

name: Nx Affected CI
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: git fetch origin main
- run: yarn install
- name: Run Affected Tests
shell: bash
run: npx nx affected --target=test --base=remotes/origin/main --head=HEAD