Skip to content

fix indentation in GitHub CI workflow #698

fix indentation in GitHub CI workflow

fix indentation in GitHub CI workflow #698

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 3 * * 0' # every Sunday at 3am
env:
CI: true
jobs:
lint_js:
name: Lint JS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- name: ESLint
run: pnpm lint
test_type_checking:
name: 'Tests: Type Check'
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- run: pnpm tsc --noEmit
working-directory: tests
tests:
name: Tests
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# how to say "not these" so we don't miss anything?
# waiting on a an api from vitest for querying
# the list of tests ahead of time before running them.
#
# https://github.com/vitest-dev/vitest/issues/2901
#
# It would be great if vitest had a flag to give us the JSON of all the tests,
# so we could be sure we don't miss anything
# and then generate this list from a previous C.I. job
slow-test:
# flags
- addon-location
- test-app-location
- addon-only
# existing monorepo
- monorepo with npm
- monorepo with yarn
- monorepo with pnpm
# build-only tests for testing if the rollup config works at all
- rollup-build
- declarations-configuration
steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- run: pnpm add --global ember-cli yarn
- run: pnpm vitest --testNamePattern "${{ matrix.slow-test }}"
working-directory: tests
defaults_tests:
name: "ember-cli@${{ matrix.ember-cli }} : ${{ matrix.slow-test }}"
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ember-cli:
- 5.4.1
- 5.3.0
slow-test:
- defaults with npm
- defaults with yarn
- defaults with pnpm
steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- run: pnpm add --global ember-cli@${{ matrix.ember-cli }} yarn
- run: pnpm vitest --testNamePattern "${{ matrix.slow-test }}"
working-directory: tests
typescript_tests:
name: "ember-cli@${{ matrix.ember-cli }} : ${{ matrix.slow-test }}"
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ember-cli:
- 5.4.1
# Not testing against 5.3.0, because it has non-passing typechecking
# - 5.3.0
slow-test:
- typescript with npm
- typescript with yarn
- typescript with pnpm
steps:
- uses: actions/checkout@v3
- uses: wyvox/action-setup-pnpm@v2
- run: pnpm add --global ember-cli@${{ matrix.ember-cli }} yarn
- run: pnpm vitest --testNamePattern "${{ matrix.slow-test }}"
working-directory: tests