Skip to content

docs: add AI Foundations skill guide (NES-1501) #46658

docs: add AI Foundations skill guide (NES-1501)

docs: add AI Foundations skill guide (NES-1501) #46658

Workflow file for this run

name: Main
on:
push:
branches: [main]
pull_request:
branches: [main, feature/*]
merge_group:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: blacksmith-4vcpu-ubuntu-2204
strategy:
matrix:
node-version: [22]
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch other branches
if: ${{ github.event_name == 'pull_request' }}
run: git fetch --no-tags --prune --depth=5 origin $GITHUB_BASE_REF
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: generate prisma imports
uses: mansagroup/nrwl-nx-action@v3
with:
targets: prisma-generate
all: true
env:
DISABLE_ERD: true
- name: Install Doppler
uses: dopplerhq/cli-action@v3
- name: fetch-secrets and build
uses: mansagroup/nrwl-nx-action@v3
env:
DOPPLER_API_ANALYTICS_TOKEN: ${{ secrets.DOPPLER_API_ANALYTICS_TOKEN }}
DOPPLER_API_GATEWAY_TOKEN: ${{ secrets.DOPPLER_API_GATEWAY_TOKEN }}
DOPPLER_API_JOURNEYS_TOKEN: ${{ secrets.DOPPLER_API_JOURNEYS_TOKEN }}
DOPPLER_API_LANGUAGES_TOKEN: ${{ secrets.DOPPLER_API_LANGUAGES_TOKEN }}
DOPPLER_API_USERS_TOKEN: ${{ secrets.DOPPLER_API_USERS_TOKEN }}
DOPPLER_API_MEDIA_TOKEN: ${{ secrets.DOPPLER_API_MEDIA_TOKEN }}
DOPPLER_ARCLIGHT_TOKEN: ${{ secrets.DOPPLER_ARCLIGHT_TOKEN }}
DOPPLER_CMS_TOKEN: ${{ secrets.DOPPLER_CMS_TOKEN }}
DOPPLER_DOCS_TOKEN: ${{ secrets.DOPPLER_DOCS_TOKEN }}
DOPPLER_JOURNEYS_TOKEN: ${{ secrets.DOPPLER_JOURNEYS_TOKEN }}
DOPPLER_JOURNEYS_ADMIN_TOKEN: ${{ secrets.DOPPLER_JOURNEYS_ADMIN_TOKEN }}
DOPPLER_PLAYER_TOKEN: ${{ secrets.DOPPLER_PLAYER_TOKEN }}
DOPPLER_SHORT_LINKS_TOKEN: ${{ secrets.DOPPLER_SHORT_LINKS_TOKEN }}
DOPPLER_WATCH_TOKEN: ${{ secrets.DOPPLER_WATCH_TOKEN }}
DOPPLER_WATCH_MODERN_TOKEN: ${{ secrets.DOPPLER_WATCH_MODERN_TOKEN }}
DOPPLER_WATCH_ADMIN_TOKEN: ${{ secrets.DOPPLER_WATCH_ADMIN_TOKEN }}
DOPPLER_RESOURCES_TOKEN: ${{ secrets.DOPPLER_RESOURCES_TOKEN }}
DOPPLER_VIDEOS_ADMIN_TOKEN: ${{ secrets.DOPPLER_VIDEOS_ADMIN_TOKEN }}
DOPPLER_VIDEO_IMPORTER_TOKEN: ${{ secrets.DOPPLER_VIDEO_IMPORTER_TOKEN }}
DOPPLER_GITHUB_SERVICE_TOKEN: ${{ secrets.DOPPLER_GITHUB_SERVICE_TOKEN }}
DOPPLER_CONFIG: stg
with:
targets: fetch-secrets,build
test:
runs-on: blacksmith-4vcpu-ubuntu-2204
strategy:
fail-fast: false
matrix:
node-version: [22]
# https://jestjs.io/docs/cli#--shard
shard: ['1/3', '2/3', '3/3']
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch other branches
if: ${{ github.event_name == 'pull_request' }}
run: git fetch --no-tags --prune --depth=5 origin $GITHUB_BASE_REF
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: generate prisma imports
uses: mansagroup/nrwl-nx-action@v3
with:
targets: prisma-generate
all: true
env:
DISABLE_ERD: true
- name: Get number of CPU cores
id: cpu-cores
uses: SimenB/github-actions-cpu-cores@v2
- name: run tests
uses: mansagroup/nrwl-nx-action@v3
with:
targets: test
args: --ci --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }}
parallel: 1
- name: download codecov
run: |
curl -o /usr/local/bin/codecov https://uploader.codecov.io/latest/linux/codecov
chmod +x /usr/local/bin/codecov
- name: upload coverage to codecov
uses: mansagroup/nrwl-nx-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
targets: codecov