Skip to content

[do not review] upload artifacts #3382

[do not review] upload artifacts

[do not review] upload artifacts #3382

Workflow file for this run

name: CI
env:
DO_NOT_TRACK: 1
on:
push:
branches:
- main
- release/*
- next
pull_request:
types: [opened, synchronize, reopened]
jobs:
cspell:
name: Check spelling
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Check spelling
run: pnpm exec turbo run ci:cspell
changesets:
name: Check for changesets
if: ${{ github.event_name == 'pull_request' }}
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Check for changesets
run: |
git fetch origin main:main
git checkout ${GITHUB_HEAD_REF}
pnpm exec changeset status --since=main
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
strategy:
matrix:
node: [18, 20, 22]
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: pnpm/action-setup@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Transpile, typecheck, Lint and test
run: pnpm check
# catches some of the examples that don't have transpile/typecheck tasks
- name: Build
run: pnpm build
- name: Verify nothing changed
run: git diff --exit-code
- name: Verify nothing added
run: u="$(git ls-files --others --exclude-standard)" && test -z "$u"
- name: TEMPORARY - pnpm pack API package for use
run: cd packages/widget.api.unstable && pnpm pack
- name: Archive NPM packages
uses: actions/upload-artifact@v4
with:
name: npm-packages
path: |
packages/widget.api.unstable/osdk-widget-api.unstable-*.tgz
- name: TEMPORARY - zip e2e bundle for use
run: cd packages/e2e.sandbox.todowidget && zip -r e2e.sandbox.todowidget.zip dist/
- name: Archive E2E bundle
uses: actions/upload-artifact@v4
with:
name: e2e-bundle
path: |
packages/e2e.sandbox.todowidget/e2e.sandbox.todowidget.zip