Skip to content

Use strict .npmrc #3358

Use strict .npmrc

Use strict .npmrc #3358

Workflow file for this run

name: CI Build
on:
push:
branches:
- master
- "v*"
pull_request:
schedule:
- cron: "0 3 * * *" # daily, at 3am
jobs:
lint:
timeout-minutes: 5
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
- name: Install Dependencies
run: pnpm install
- run: pnpm lint
test:
timeout-minutes: 5
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
- name: Install Dependencies
run: pnpm install
- run: |
google-chrome --version
- name: Build addon
working-directory: addon
run: pnpm build
- run: pnpm i -f # sync injected dependencies
- run: pnpm test
working-directory: test-app
- name: own types
working-directory: addon
run: pnpm tsc --noEmit
floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
- name: Install Dependencies
run: pnpm install --no-lockfile
- name: Build addon
working-directory: addon
run: pnpm build
- run: pnpm i -f # sync injected dependencies
- name: Run Tests
working-directory: test-app
run: pnpm test
- name: own types
working-directory: addon
run: pnpm tsc --noEmit
try-scenarios:
timeout-minutes: 10
name: "Try: ${{ matrix.ember-try-scenario }}"
runs-on: ubuntu-latest
needs: test
strategy:
fail-fast: false
matrix:
ember-try-scenario:
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-lts-5.4
- ember-lts-5.8
- ember-release
- ember-beta
- ember-canary
- ember-default
- embroider-safe
# - embroider-optimized # see comments in ember-try.js
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Build addon
working-directory: addon
run: pnpm build
- run: pnpm i -f # sync injected dependencies
- name: test
working-directory: test-app
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
- name: types compatibility
working-directory: addon
run: pnpm lint:ts
types:
runs-on: ubuntu-latest
needs: test
strategy:
fail-fast: false
matrix:
ts-version:
- 4.7
- 4.8
- 4.9
- 5.0
- 5.1
- 5.2
- 5.3
- 5.4
- 5.5
- next
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Build types for addon
working-directory: addon
run: pnpm build
- name: install TS version
working-directory: type-tests
run: pnpm add --save-dev typescript@${{matrix.ts-version}}
- name: public types
working-directory: type-tests
run: pnpm test