ENG-4697 feat(data-populator): Complete New Requirements And Polish #2857
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
# Needed for nx-set-shas when run on the main branch | |
permissions: | |
actions: read | |
contents: read | |
jobs: | |
build-test-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9.0.6 | |
# Foundry setup for protocol | |
- name: Setup foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Cache pnpm store | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.pnpm-store | |
**/node_modules/.pnpm | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- run: pnpm install --frozen-lockfile | |
- name: Set SHAs | |
uses: nrwl/nx-set-shas@v4 | |
- name: Run Affected Targets | |
run: npx nx affected -t lint test build |