Skip to content

Merge pull request #339 from qonto/dependabot/npm_and_yarn/ember-sour… #984

Merge pull request #339 from qonto/dependabot/npm_and_yarn/ember-sour…

Merge pull request #339 from qonto/dependabot/npm_and_yarn/ember-sour… #984

Workflow file for this run

name: CI
on:
push:
branches:
- main
- "v*"
pull_request:
env:
NODE_VERSION: "18.x"
PNPM_VERSION: "9.12.3"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: wyvox/action-setup-pnpm@v3
with:
pnpm-version: "${{ env.PNPM_VERSION }}"
node-version: "${{ env.NODE_VERSION }}"
args: "--frozen-lockfile"
- name: Lint
run: pnpm lint
test:
name: Tests
runs-on: ${{ matrix.os }}
needs: lint
strategy:
matrix:
os: [ubuntu-latest]
browser: [chrome]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: wyvox/action-setup-pnpm@v3
with:
pnpm-version: "${{ env.PNPM_VERSION }}"
node-version: "${{ env.NODE_VERSION }}"
args: "--frozen-lockfile"
- name: Run Tests
run: pnpm test:ember --launch ${{ matrix.browser }}
working-directory: test-app
floating-dependencies:
name: Floating Dependencies
runs-on: ${{ matrix.os }}
needs: lint
strategy:
matrix:
os: [ubuntu-latest]
browser: [chrome]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: wyvox/action-setup-pnpm@v3
with:
pnpm-version: "${{ env.PNPM_VERSION }}"
node-version: "${{ env.NODE_VERSION }}"
args: "--no-lockfile"
- name: Run tests
run: pnpm test:ember
working-directory: test-app
try-scenarios:
name: Tests - ${{ matrix.ember-try-scenario }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow-failure }}
needs: test
strategy:
fail-fast: true
matrix:
ember-try-scenario:
- ember-lts-3.28
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-classic
- ember-release
- ember-beta
- embroider-safe
- embroider-optimized
allow-failure: [false]
include:
- ember-try-scenario: ember-canary
allow-failure: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: wyvox/action-setup-pnpm@v3
with:
pnpm-version: "${{ env.PNPM_VERSION }}"
node-version: "${{ env.NODE_VERSION }}"
args: "--frozen-lockfile"
- name: Run tests
run: pnpm ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
working-directory: test-app
typescript-compatibility:
name: Type checking - ${{ matrix.typescript-scenario }}
runs-on: ubuntu-latest
needs: [test]
strategy:
fail-fast: false
matrix:
typescript-scenario:
- typescript@5.0
- typescript@5.1
- typescript@5.2
- typescript@next
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: wyvox/action-setup-pnpm@v3
with:
pnpm-version: "${{ env.PNPM_VERSION }}"
node-version: "${{ env.NODE_VERSION }}"
args: "--frozen-lockfile"
- name: Update TS version on addon package
run: pnpm add -D ${{ matrix.typescript-scenario }}
working-directory: ember-prismic-dom
- name: Update TS version on test-app package
run: pnpm add -D ${{ matrix.typescript-scenario }}
working-directory: test-app
- name: Type checking
run: pnpm lint:types