Skip to content

Rearrange gitignore setup #306

Rearrange gitignore setup

Rearrange gitignore setup #306

Workflow file for this run

name: CI
on:
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: ./.github/actions/pnpm
- 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: ./.github/actions/pnpm
- 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.
#
# 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:
- defaults with npm
- defaults with yarn
- defaults with pnpm
# flags
- addon-location
- test-app-location
- typescript
- addon-only
# existing monorepo
- monorepo with npm
- monorepo with yarn
- monorepo with pnpm
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- run: pnpm add --global ember-cli yarn
- run: pnpm vitest --testNamePattern "${{ matrix.slow-test }}"
working-directory: tests