Skip to content

Add GJS to the default addon blueprint #419

Add GJS to the default addon blueprint

Add GJS to the default addon blueprint #419

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
# TypeScript
- typescript with npm
- typescript with yarn
- typescript with pnpm
# flags
- addon-location
- test-app-location
- 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